cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
567
Views
0
Helpful
0
Replies

LUA script help

tkm_collab
Level 1
Level 1

Hi 

Im trying to copy an unknown header (x-recording) from one SIP trunk (incoming) to another trunk via UCM, that is a recording server that needs to know if a recording should be recorded or not. Now i have copied a standard script from the UCM that copies the x-recording to CUCM (and it works no sipLUA errors and I can see the info) : 

M = {}

M.allowHeaders = {"x-recording"}

function M.inbound_INVITE(msg)

local ntcorrid = msg:getHeader("x-recording")
if ntcorrid
then
pt = msg:getPassThrough()
pt:addHeader("x-recording", ntcorrid)
end

end
return M

BUT since the call that is going to the recording server is a "new" call (duplicate media stream call) im struggling with getting that "x-recording" value to the other trunk does any one have an idea if at all it is possible to get the x-recording value to the recording sip trunk?

setup is (Contact center - non Cisco) SIP Trunk -> CUCM -> SIP Trunk (Recording server)

THX 

Torben

0 Replies 0