08-16-2019 02:51 PM
This is my normalization script. We are trying to pass the X-ECKOH-CALLID through call manager from the inbound Invite to the outbound invite
M = {}
M.allowHeaders = {"X-ECKOH-CALLID"}
function M.inbound_INVITE(msg)
local eckohcallid = msg:getHeader("X-ECKOH-CALLID")
if eckohcallid
then
pt = msg:getPassThrough()
pt:addHeader("X-ECKOH-CALLID", eckohcallid)
end
end
return M
This is the inbound Invite that has the header
21775952.000 |11:53:03.170 |SdlSig |DbObjectCacheTimer |initialized |Db(2,100,213,1) |SdlTimerService(2,100,3,1) |2,100,150,1.1^*^* |[T:H-H:0,N:0,L:0,V:0,Z:0,D:0] AppCorr: 0
21775953.000 |11:53:04.188 |SdlSig |DbObjectCacheTimer |initialized |Db(2,100,213,1) |SdlTimerService(2,100,3,1) |2,100,150,1.1^*^* |[T:H-H:0,N:0,L:0,V:0,Z:0,D:0] AppCorr: 0
21775954.000 |11:53:04.439 |SdlSig |SIPTimer |wait |SIPHandler(2,100,82,1) |SdlTimerService(2,100,3,1) |2,100,10,1.1897352^10.246.180.99^* |[T:H-H:0,N:0,L:0,V:0,Z:0,D:0] TimerType=SIP_TIMER_REMOVE_TRANSACTION value=32000 numRetries=0
21775954.001 |11:53:04.439 |AppInfo |//SIP/SIPHandler/ccbId=0/scbId=0/wait_SIPTimer: TimerExpired type=SIP_TIMER_REMOVE_TRANSACTION value=32000 retries=0
21775954.002 |11:53:04.439 |AppInfo |//SIP/SIPHandler/ccbId=0/scbId=0/sip_stop_timer: timerContext=0xdddd700 type=SIP_TIMER_REMOVE_TRANSACTION value=32000 retries=0
21775954.003 |11:53:04.439 |AppInfo |//SIP/Stack/Info/0x0xdddc720/sipSPIFlushEventBufferQueue: There are 0 events on the internal queue that are going to be
21775954.004 |11:53:04.439 |AppInfo |//SIP/Stack/Transport/0x0/sipConnectionManagerUnregisterCtxtInCon: gConnTab=0xe118990, addr=10.246.180.99, port=5060, unregistering context=
21775954.005 |11:53:04.439 |AppInfo |//SIP/Stack/Transport/0x0xdddc720/sipSPITransportContextCleanup: Could not purge context gcb=0xdddc720 from the connection; gcb
21775954.006 |11:53:04.439 |AppInfo |//SIP/Stack/Info/0x0xdddc720/sipSPIUfreeOneCCB: Freeing ccb dddc720
21775955.000 |11:53:04.830 |SdlSig |SdlDataInd |wait |SIPUdp(2,100,73,1) |SdlUDPConnection(2,100,10,1) |2,100,10,1.1897368^10.246.180.52^* |*TraceFlagOverrode
21775955.001 |11:53:04.830 |AppInfo |//SIP/Stack/Error/0x0/httpish_cache_header_val: DROPPING unregistered header X-Wireless-Orig: yes
21775955.002 |11:53:04.830 |AppInfo |//SIP/Stack/Error/0x0/httpish_cache_header_val: DROPPING unregistered header Cisco-Gucid: 50C464D001E9C0419FE8000000A63056
21775955.003 |11:53:04.830 |AppInfo |//SIP/Stack/Error/0x0/httpish_cache_header_val: DROPPING unregistered header App-Info: <10.246.178.174:7000:7443>
21775955.004 |11:53:04.830 |AppInfo |//SIP/SIPUdp/wait_SdlDataInd: Incoming SIP UDP message size 1469 from 10.246.180.52:[5060]:
[3794706,NET]
INVITE sip:1811002@10.10.10.10:5060;user=phone SIP/2.0
Via: SIP/2.0/UDP 10.10.10.10:5060;branch=z9hG4bKsik9qi0060bh9vp8tkj0.2
Max-Forwards: 65
To: <sip:1811002@10.10.10.10;transport=udp>
From: 9131111111 <sip:9131111111@10.10.10.10:5060>;tag=SDrk3ba01-dsb4c66d21
Call-ID: SDrk3ba01-f8a9dde999d4787215d566496d0eb711-agt5rg1050
CSeq: 1 INVITE
Content-Length: 252
Contact: <sip:9131111111@10.10.10.10:5060;transport=udp>
Expires: 18
User-Agent: CVP 11.6 (1) ES-7 Build-81
Allow: INVITE,ACK,CANCEL,BYE,REGISTER,REFER,INFO,SUBSCRIBE,NOTIFY,PRACK,UPDATE,OPTIONS,MESSAGE,PUBLISH
Accept: application/sdp, application/isup, application/dtmf, application/dtmf-relay, multipart/mixed
P-Preferred-Identity: <sip:9131111111@10.10.10.10:5060>
X-ECKOH-CALLID: SD3tk3c01-2c5e778c4fabf5817c86c2587bef2e91-v300g00N
X-Wireless-Orig: yes
Session-Expires: 1800
Min-SE: 90
Content-Disposition: session; handling=required
Referred-By: <sip:CVP@10.246.177.176:5060>
Cisco-Guid: 1355048144-0032096321-2682781696-0010891350
Cisco-Gucid: 50C464D001E9C0419FE8000000A63056
Supported: precondition
Supported: replaces
08-19-2019 02:47 PM
Hi Michael,
Your script looks ok to me. You should see the X-ECKOH-CALLID header in the outbound message. If not, you can open a DevNet support ticket and provide appropriate logs so we can investigate.
Regards,
David
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide