[SR-Users] Scripting Issue

aman jeff jeffyarnab at gmail.com
Mon Sep 26 09:08:18 CEST 2016


Hai Team,
I am facing some issues in kamailio scritpts
please check my script file and let me know how to do that.

Issues

1.I can't able to set my maxptime in my script
2.Not able to change contact header
3.

Regards
Arnab


On Mon, Sep 26, 2016 at 12:30 PM, aman jeff <jeffyarnab at gmail.com> wrote:

> Hai Team,
>
> I can't able to set maxptime in SDP
> Please help me
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160926/03eeb127/attachment.html>
-------------- next part --------------


OPENSIPS
=========================
U 2016/09/20 07:17:07.186526 zzz.zzz.zz.zz:5060 -> xxx.xxx.xxx.xx:5060
SIP/2.0 200 OK.
Call-ID: EmlhmZ7Rgo.
CSeq: 21 INVITE.
Record-Route: <sip:zzz.zzz.zz.zz:5060;lr>,<sip:xxx.xx.xxx.xxx;lr;r2=on;ftag=-KAjCGKCS>,<sip:yyy.yy.yyy.yyy:443;transport=tls;lr;r2=on;ftag=-KAjCGKCS>.
Accept: application/sdp,application/isup,application/dtmf,application/dtmf-relay,multipart/mixed.
Allow: INVITE,ACK,CANCEL,BYE,REGISTER,REFER,INFO,SUBSCRIBE,NOTIFY,PRACK,UPDATE,OPTIONS,MESSAGE,PUBLISH.
Content-Disposition: session;handling=required.
Contact: <sip:zzz.zzz.zz.zz:5060>.
Via: SIP/2.0/UDP xxx.xx.xxx.xxx:5060;branch=z9hG4bK3e02.1aa513b.0,SIP/2.0/UDP 192.168.1.125:44717;rport=44717;branch=z9hG4bK.kLqhouqqc;received=aa.aa.aa.aaa.
To: <sip:91480xxxxx at zzz.zzz.zz.zz>;tag=GB-1474369455881.
Content-Type: application/sdp.
From: <sip:249636600 at zzz.zzz.zz.zz>;tag=-KAjCGKCS.
Content-Length: 198.
.
v=0.
o=Sonus_UAC 1133751253 1334703812 IN IP4 bbb.bbb.bb.bb.
s=Nexge.
c=IN IP4 bbb.bbb.bb.bb.
t=0 0.
m=audio 17974 RTP/AVP 18.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=sendrecv.
a=maxptime:20.



KAMAILIO
===========================================================

U 2016/09/21 06:05:48.800528 115.112.144.18:5060 -> 192.69.136.4:5060
INVITE sip:919544678732 at 192.69.136.4 SIP/2.0.
Record-Route: <sip:yyy.yy.yyy.yyy:5060;r2=on;lr;ftag=SRvSyPNQO>.
Record-Route: <sip:115.112.144.18;line=sr-N6IAzBFsMJZ6zmZfMl37MBMwzBP4Ml14NEt7Nw05NhPQpSflzwVLHRQ7z6fLz6g43RNQjue6jwIP.ItH>.
Via: SIP/2.0/UDP yyy.yy.yyy.yyy:5060;branch=z9hG4bKc58b.6f7e9f1ed2bafa5c0f37f17d2a00d3b4.0;i=1.
Via: SIP/2.0/UDP 115.112.144.18;branch=z9hG4bKsr-j4IPOlV7MGQj.tMcM.qLOBF6zGZlOBFfW.vuWxPZW.1LgRWIC9gIgx4fz.V7M.3ZOBM7M.FuzuaVHRaYpB1JNEt736cQkBIvalaJmLZsK.rPPEIrWINXNh05NhPQW.P4zxj*.
From: <sip:376777 at 192.69.136.4>;tag=SRvSyPNQO.
To: "919544678732" <sip:919544678732 at 192.69.136.4>.
CSeq: 21 INVITE.
Call-ID: r9TSan9PpI.
Max-Forwards: 69.
Supported: outbound.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO, UPDATE.
Content-Type: application/sdp.
Content-Length: 186.
sip:376777 at 192.168.3.115:54485;transport=tlsProxy-Authorization:  Digest realm="192.69.136.4", nonce="6be6c6f3181f616a4130987e78f551c2", algorithm=MD5, username="376777",  uri="sip:919544678732 at 192.69.136.4", response="71f678e0f614156c11ea0d5f31810819".
Contact: <sip:115.112.144.18;line=sr-N6IAzBMwWBNwW404g9W4ORW536rYoJsl39Iho6u53EIdgmsBo64-W.y6My**>.
User-Agent: HD Dialer 1.5.1.
.
v=0.
o=376777 1327 2864 IN IP4 192.168.3.115.
s=HD Dialer.
c=IN IP4 192.168.3.115.
b=AS:380.
t=0 0.
m=audio 49288 RTP/AVP 18 101.
a=fmtp:18 annexb=no.
a=rtpmap:101 telephone-event/8000.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kamailio_chk.cfg
Type: application/octet-stream
Size: 23226 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160926/03eeb127/attachment.obj>


More information about the sr-users mailing list