LUA script help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2022 12:32 PM
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
- Labels:
-
UC Manager SIP
