08-21-2015 02:04 AM - edited 03-18-2019 04:53 AM
01-09-2017 12:55 PM
M = {}
function M.outbound_INVITE(msg)
local sdp = msg:getSdp()
if sdp
then
sdp = sdp:removeMediaDescription(3)
msg:setSdp(sdp)
end
end
return M
08-21-2015 04:53 AM
OK after reading the Developer Guide for SIP Transparency and Normalization
I realazied that I just had to change the line:
"function M.inbound_INVITE(msg)"
to
"function M.outbound_INVITE(msg)"
Then I associated the script with the sip trunk to my cube/pstn and now I can call outside with the softclints :D
Thx 4 reading
01-09-2017 12:55 PM
M = {}
function M.outbound_INVITE(msg)
local sdp = msg:getSdp()
if sdp
then
sdp = sdp:removeMediaDescription(3)
msg:setSdp(sdp)
end
end
return M
01-24-2017 01:32 AM
Thanks ryschaef ,
we resolved it with regions. To PSTN we do not allow video.
But if we do, I will use your script :)
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
Hi,
I got a problem with my cisco jabber when I use them as sofphone.
I removed all video sdp-headers but one line I can not remove with sip-profile:
m=application xxxxx RTP/SAVP 125
First my itsp always send me "message too large".
Now just "Not Acceptable Here"
I do not want to disable video for all csf's.
A call with a video telefon like dx80 works with removing all video sdp-headers.
Do you have an idea?
I tried this script on the sip trunk but without succes and I do not found a way to debug it:
M = {}
function M.inbound_INVITE(msg)
local sdp = msg:getSdp()
if sdp
then
sdp = sdp:removeLine("m=", "application")
msg:setSdp(sdp)
end
end