cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
163
Views
0
Helpful
1
Replies

SIP Normalization Script to remove Payload 13 from media offer

aasaadsavola
Level 1
Level 1

Hi 

I am trying to create script  SIP normalization   in order to remove  Payload 13 from media offer but still not work.

Sending To 10.20.20.13:5060 from 172.25.90.5:24618

CALL-ID: call-63002900-0000-0010-1418-13@172.25.90.5

Message Found At Line: 735

INVITE sip:8007860@10.20.20.13:5060;user=phone SIP/2.0
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, OPTIONS, REFER, REGISTER, INFO, UPDATE, PRACK
Call-ID: call-63002900-0000-0010-1418-13@172.25.90.5
Contact: <sip:8007806@172.25.90.5:5060;transport=TCP>
Content-Length: 1087
Content-Type: application/sdp
CSeq: 2 INVITE
From: "Abdulfattah Assaad" <sip:8007806@172.25.90.5:5060;user=phone>;tag=ac195a05-68;sgid=2
Max-Forwards: 69
P-Asserted-Identity: <tel:+8007806>
P-Asserted-Identity: <sip:aasaad@savola.com>
Privacy: id
Supported: replaces,update,100rel
To: <sip:8007860@10.20.20.13:5060;user=phone>
User-Agent: SONUS SBCSWeLite 12.0.1v75 Azure Ribbon
Via: SIP/2.0/TCP 172.25.90.5:5060;branch=z9hG4bK-UX-ac19-5a05-0074
X-Sonus-Diagnostics: SBCInternal;cid=2;media-mode="audio:Proxy video:N/A";egress-resp-code=None;channel="b:0 t:2 g:1 c:2"
v=0
o=- 259636 0 IN IP4 172.25.90.5
s=session
c=IN IP4 172.25.90.5
b=CT:10000000
t=0 0
m=audio 16388 RTP/SAVP 10  4 9 103 111 18 0 8 97 101 13 118
c=IN IP4 172.25.90.5

I have run the following :

M = {}
function M.inbound_INVITE(msg)
local sdp = msg:getSdp()
if sdp
then
local payload_line = sdp:getLine("m=","13")
if payload_line
then

payload_line = payload_line:gsub("13", "")
sdp = sdp:modifyLine("a=", "13", payload_line)
msg:setSdp(sdp)
end
end

 

 

 

1 Reply 1

Hi

If you have a CUBE in front of the CUCM , I suggest you to configure a SIP Profile there.

If you need help on configuring it on the CUBE, please ask.

 

HTH

 

Regards

 

Carlo

Please rate all helpful posts "The more you help the more you learn"