Hi I am using kamailio with rtp proxy module. I have 2 questions /issues .
1. When caller or callee ends the call the other end call is not disocnnecting . UA is pjsip based and behind NAT router. Present call flow is pjsipUA (LAN_ip)----->Router (Publicip)-------->Kamailio_with_RTP proxy----> ThridParty SIP Server UA local ip : 192.168.2.11 UA public IP : 89.78.92.23 Kamailio Public ip: 94.50.203.32 Third party Sip server : 76.42.89.25 Here When I disconnect call from either side , it is not disconnecting other side . 2. My second requirement is , how can I define port of third party server . for example if have 3 or 4 sip servers with different sip registration ports other tahn 5060 How can I route registration requests coming from UAs to different ports of third party servers. Please bear my ignorance I am new to kamailio .Hope some experts will help me here . Attached kamailio config and SIP trace taken from kamailio server Thank you
INVITE sip:18792356789@76.42.89.25:5060 SIP/2.0 Record-Route: <sip:94.50.203.32:8764;lr=on;ftag=bP9Zm5tvFPFiwrGTOXxp6mAZY1L9cBGE;did=691.3f21;nat=yes> Via: SIP/2.0/UDP 94.50.203.32:8764;branch=z9hG4bKf7c3.3c8b946c31cdd32f930549d06acfbe9a.0 Via: SIP/2.0/UDP 192.168.2.11:58429;received=89.78.92.23;rport=58429;branch=z9hG4bKPjUMSliGvGug7LTZQNqrrpmLN7hggWq7p. Max-Forwards: 69 From: sip:test@76.42.89.25;tag=bP9Zm5tvFPFiwrGTOXxp6mAZY1L9cBGE To: sip:18792356789@76.42.89.25 Contact: <sip:test@192.168.2.11:58429;ob;alias=89.78.92.23~58429~1> Call-ID: wjTFhNWrPQu9AUldOZNBSN6peHfp2myz CSeq: 12140 INVITE Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS Supported: replaces, 100rel, timer, norefersub Session-Expires: 1800 Min-SE: 90 User-Agent: Siphon PjSip v2.0.0-beta/arm-apple-darwin9 Content-Type: application/sdp Content-Length: 369 P-hint: outbound v=0 o=- 3620097527 3620097527 IN IP4 94.50.203.32 s=pjmedia c=IN IP4 94.50.203.32 t=0 0 a=X-nat:0 m=audio 60822 RTP/AVP 104 18 0 8 96 c=IN IP4 94.50.203.32 a=rtcp:60823 a=sendrecv a=rtpmap:104 iLBC/8000 a=fmtp:104 mode=30 a=rtpmap:18 G729/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:96 telephone-event/8000 a=fmtp:96 0-15 a=nortpproxy:yes SIP/2.0 407 Proxy Authentication Required CSeq: 12140 INVITE Via: SIP/2.0/UDP 94.50.203.32:8764;branch=z9hG4bKf7c3.3c8b946c31cdd32f930549d06acfbe9a.0 Via: SIP/2.0/UDP 192.168.2.11:58429;branch=z9hG4bKPjUMSliGvGug7LTZQNqrrpmLN7hggWq7p. From: sip:test@76.42.89.25;tag=bP9Zm5tvFPFiwrGTOXxp6mAZY1L9cBGE Call-ID: wjTFhNWrPQu9AUldOZNBSN6peHfp2myz To: sip:18792356789@76.42.89.25;tag=19093814023234994340686221 Contact: <sip:76.42.89.25:5060;transport=udp> Proxy-Authenticate: DIGEST realm="sip.testcalls.com", nonce="141110871219020226209383237537" Content-Length: 0 Record-Route: <sip:94.50.203.32:8764;lr=on;ftag=bP9Zm5tvFPFiwrGTOXxp6mAZY1L9cBGE;did=691.3f21;nat=yes> ACK sip:18792356789@76.42.89.25:5060 SIP/2.0 Via: SIP/2.0/UDP 94.50.203.32:8764;branch=z9hG4bKf7c3.3c8b946c31cdd32f930549d06acfbe9a.0 Max-Forwards: 69 From: sip:test@76.42.89.25;tag=bP9Zm5tvFPFiwrGTOXxp6mAZY1L9cBGE To: sip:18792356789@76.42.89.25;tag=19093814023234994340686221 Call-ID: wjTFhNWrPQu9AUldOZNBSN6peHfp2myz CSeq: 12140 ACK Content-Length: 0 INVITE sip:18792356789@76.42.89.25:5060 SIP/2.0 Record-Route: <sip:94.50.203.32:8764;lr=on;ftag=bP9Zm5tvFPFiwrGTOXxp6mAZY1L9cBGE;did=691.4f21;nat=yes> Via: SIP/2.0/UDP 94.50.203.32:8764;branch=z9hG4bK08c3.4e8266c84727e8ceeaa14c37b4b48ef7.0 Via: SIP/2.0/UDP 192.168.2.11:58429;received=89.78.92.23;rport=58429;branch=z9hG4bKPj.fUOV5Ds9oW3oGonVCpIwM9tEpoNUacJ Max-Forwards: 69 From: sip:test@76.42.89.25;tag=bP9Zm5tvFPFiwrGTOXxp6mAZY1L9cBGE To: sip:18792356789@76.42.89.25 Contact: <sip:test@192.168.2.11:58429;ob;alias=89.78.92.23~58429~1> Call-ID: wjTFhNWrPQu9AUldOZNBSN6peHfp2myz CSeq: 12141 INVITE Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS Supported: replaces, 100rel, timer, norefersub Session-Expires: 1800 Min-SE: 90 User-Agent: Siphon PjSip v2.0.0-beta/arm-apple-darwin9 Proxy-Authorization: Digest username="test", realm="sip.testcalls.com", nonce="141110871219020226209383237537", uri="sip:18792356789@76.42.89.25:5060", response="e98f243028e20a3d864dc54149db8ab1" Content-Type: application/sdp Content-Length: 369 P-hint: outbound v=0 o=- 3620097527 3620097527 IN IP4 94.50.203.32 s=pjmedia c=IN IP4 94.50.203.32 t=0 0 a=X-nat:0 m=audio 47574 RTP/AVP 104 18 0 8 96 c=IN IP4 94.50.203.32 a=rtcp:47575 a=sendrecv a=rtpmap:104 iLBC/8000 a=fmtp:104 mode=30 a=rtpmap:18 G729/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:96 telephone-event/8000 a=fmtp:96 0-15 a=nortpproxy:yes SIP/2.0 183 Session Progress CSeq: 12141 INVITE Via: SIP/2.0/UDP 94.50.203.32:8764;branch=z9hG4bK08c3.4e8266c84727e8ceeaa14c37b4b48ef7.0 Via: SIP/2.0/UDP 192.168.2.11:58429;branch=z9hG4bKPj.fUOV5Ds9oW3oGonVCpIwM9tEpoNUacJ From: sip:test@76.42.89.25;tag=bP9Zm5tvFPFiwrGTOXxp6mAZY1L9cBGE Call-ID: wjTFhNWrPQu9AUldOZNBSN6peHfp2myz To: sip:18792356789@76.42.89.25;tag=19093814023234994340686221 Contact: <sip:76.42.89.25:5060;transport=udp> Content-Type: application/sdp Content-Length: 224 Record-Route: <sip:94.50.203.32:8764;lr=on;ftag=bP9Zm5tvFPFiwrGTOXxp6mAZY1L9cBGE;did=691.3f21;nat=yes> v=0 o=VoipSwitch 6220 7220 IN IP4 76.42.89.25 s=VoipSIP i=Audio Session c=IN IP4 76.42.89.25 t=0 0 m=audio 6220 RTP/AVP 8 96 a=rtpmap:8 PCMA/8000 a=rtpmap:96 telephone-event/8000 a=fmtp:96 0-15 a=sendrecv SIP/2.0 180 Ringing CSeq: 12141 INVITE Via: SIP/2.0/UDP 94.50.203.32:8764;branch=z9hG4bK08c3.4e8266c84727e8ceeaa14c37b4b48ef7.0 Via: SIP/2.0/UDP 192.168.2.11:58429;branch=z9hG4bKPj.fUOV5Ds9oW3oGonVCpIwM9tEpoNUacJ From: sip:test@76.42.89.25;tag=bP9Zm5tvFPFiwrGTOXxp6mAZY1L9cBGE Call-ID: wjTFhNWrPQu9AUldOZNBSN6peHfp2myz To: sip:18792356789@76.42.89.25;tag=19093814023234994340686221 Contact: <sip:76.42.89.25:5060;transport=udp> Content-Type: application/sdp Content-Length: 224 Record-Route: <sip:94.50.203.32:8764;lr=on;ftag=bP9Zm5tvFPFiwrGTOXxp6mAZY1L9cBGE;did=691.3f21;nat=yes> v=0 o=VoipSwitch 6220 7220 IN IP4 76.42.89.25 s=VoipSIP i=Audio Session c=IN IP4 76.42.89.25 t=0 0 m=audio 6220 RTP/AVP 8 96 a=rtpmap:8 PCMA/8000 a=rtpmap:96 telephone-event/8000 a=fmtp:96 0-15 a=sendrecv SIP/2.0 180 Ringing CSeq: 12141 INVITE Via: SIP/2.0/UDP 94.50.203.32:8764;branch=z9hG4bK08c3.4e8266c84727e8ceeaa14c37b4b48ef7.0 Via: SIP/2.0/UDP 192.168.2.11:58429;branch=z9hG4bKPj.fUOV5Ds9oW3oGonVCpIwM9tEpoNUacJ From: sip:test@76.42.89.25;tag=bP9Zm5tvFPFiwrGTOXxp6mAZY1L9cBGE Call-ID: wjTFhNWrPQu9AUldOZNBSN6peHfp2myz To: sip:18792356789@76.42.89.25;tag=19093814023234994340686221 Contact: <sip:76.42.89.25:5060;transport=udp> Content-Type: application/sdp Content-Length: 224 Record-Route: <sip:94.50.203.32:8764;lr=on;ftag=bP9Zm5tvFPFiwrGTOXxp6mAZY1L9cBGE;did=691.3f21;nat=yes> v=0 o=VoipSwitch 6220 7220 IN IP4 76.42.89.25 s=VoipSIP i=Audio Session c=IN IP4 76.42.89.25 t=0 0 m=audio 6220 RTP/AVP 8 96 a=rtpmap:8 PCMA/8000 a=rtpmap:96 telephone-event/8000 a=fmtp:96 0-15 a=sendrecv SIP/2.0 200 OK CSeq: 12141 INVITE Via: SIP/2.0/UDP 94.50.203.32:8764;branch=z9hG4bK08c3.4e8266c84727e8ceeaa14c37b4b48ef7.0 Via: SIP/2.0/UDP 192.168.2.11:58429;branch=z9hG4bKPj.fUOV5Ds9oW3oGonVCpIwM9tEpoNUacJ From: sip:test@76.42.89.25;tag=bP9Zm5tvFPFiwrGTOXxp6mAZY1L9cBGE Call-ID: wjTFhNWrPQu9AUldOZNBSN6peHfp2myz To: sip:18792356789@76.42.89.25;tag=19093814023234994340686221 Contact: <sip:76.42.89.25:5060;transport=udp> Content-Type: application/sdp Content-Length: 224 Record-Route: <sip:94.50.203.32:8764;lr=on;ftag=bP9Zm5tvFPFiwrGTOXxp6mAZY1L9cBGE;did=691.3f21;nat=yes> v=0 o=VoipSwitch 6220 7220 IN IP4 76.42.89.25 s=VoipSIP i=Audio Session c=IN IP4 76.42.89.25 t=0 0 m=audio 6220 RTP/AVP 8 96 a=rtpmap:8 PCMA/8000 a=rtpmap:96 telephone-event/8000 a=fmtp:96 0-15 a=sendrecv ACK sip:76.42.89.25:5060;transport=udp SIP/2.0 Via: SIP/2.0/UDP 94.50.203.32:8764;branch=z9hG4bK08c3.3f67e202ad7510de3a935364e562755c.0 Via: SIP/2.0/UDP 192.168.2.11:58429;received=89.78.92.23;rport=58429;branch=z9hG4bKPjpDeX-U.AQN7jSbWJ7Tqg4Sbl0Lby6nkE Max-Forwards: 69 From: sip:test@76.42.89.25;tag=bP9Zm5tvFPFiwrGTOXxp6mAZY1L9cBGE To: sip:18792356789@76.42.89.25;tag=19093814023234994340686221 Call-ID: wjTFhNWrPQu9AUldOZNBSN6peHfp2myz CSeq: 12141 ACK Content-Length: 0 BYE sip:test@192.168.2.11:58429;ob;alias=89.78.92.23%7E58429%7E1 SIP/2.0 Route: <sip:94.50.203.32:8764;lr=on;ftag=bP9Zm5tvFPFiwrGTOXxp6mAZY1L9cBGE;did=691.3f21;nat=yes> CSeq: 1 BYE Via: SIP/2.0/UDP 76.42.89.25:5060;branch=z9hG4bK190938140255193499457203 From: sip:18792356789@76.42.89.25;tag=19093814023234994340686221 Call-ID: wjTFhNWrPQu9AUldOZNBSN6peHfp2myz To: sip:test@76.42.89.25;tag=bP9Zm5tvFPFiwrGTOXxp6mAZY1L9cBGE Content-Length: 0 Max-Forwards: 70 SIP/2.0 200 OK CSeq: 1 BYE Via: SIP/2.0/UDP 76.42.89.25:5060;branch=z9hG4bK190938140255193499457203;rport=5060 From: sip:18792356789@76.42.89.25;tag=19093814023234994340686221 Call-ID: wjTFhNWrPQu9AUldOZNBSN6peHfp2myz To: sip:test@76.42.89.25;tag=bP9Zm5tvFPFiwrGTOXxp6mAZY1L9cBGE Server: kamailio (4.1.3 (i386/linux)) Content-Length: 0
kamailio.cfg
Description: Binary data
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users