Hi all,
I'm using rtpproxy 1.2.1 and kamailio. RTPproxy is working fine in almost every case. However I have a problem with some call.
When softphone A using sip2sip.info account calls softphone B using my Kamailio server account, the Kamilio receives SIP packets from IP1 (81.23.228.129). The invite packet has IP2 (81.23.228.150) in the conecction information field (c=IN IP4 81.23.228.150):
INVITE sip:12345@xxxxxxxx.xxx;transport=udp SIP/2.0 Record-Route: sip:81.23.228.129;lr;ftag=d9e99adf;did=e81.3538c317 Via: SIP/2.0/UDP 81.23.228.129;branch=z9hG4bKd14b.12802794.0 Via: SIP/2.0/UDP 192.168.xx.xx:7964;received=88.xx.xx.xx;branch=z9hG4bK-d8754z-8ba1b4b47e37bb89-1---d8754z-;rport=7964 Max-Forwards: 69 Contact: sip:54321@88.xxx.xxx.xxx:7964;transport=udp To: "2205"sip:12345@xxxxxxxx.xxx From: "R sip2sip"sip:54321@sip2sip.info;tag=d9e99adf Call-ID: OGE5MTFiMzljZjE0NTYxN2M0N2VkZjgzNDRhMzE2ZTA. CSeq: 2 INVITE Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO Content-Type: application/sdp Supported: replaces User-Agent:xxxxxxxxxxxxxxxxxxxxxxxxx Content-Length: 279
v=0 o=- 12943454020854250 1 IN IP4 192.168.xxx.xx s=xxxxxxxxxxxxxxxxxxxx c=IN IP4 81.23.228.150 t=0 0 m=audio 52854 RTP/AVP 107 0 8 18 101 a=rtpmap:107 BV32/16000 a=rtpmap:18 G729/8000 a=fmtp:18 annexb=yes a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=sendrecv
Then Kamilio translates "c=" IP address to my RTPproxy IPaddress and sends the INVITE to softphone B. After the OK softphone B sends RTP packets to the RTPproxy as specified in the "c=" field, however the RTPproxy sends RTP packets to IP1 instead of send packets to IP2. How can I tell the RTPproxy to send packets to IP2 (the one in the c= field?)
Thanks, Ricardo Dominguez
I have to use "r" flag. Sorry for my quick posting...
De: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] En nombre de Dominguez Jover, Ricardo Enviado el: martes, 01 de marzo de 2011 13:16 Para: sr-users@lists.sip-router.org Asunto: [SR-Users] rtpproxy and connection information field
Hi all,
I'm using rtpproxy 1.2.1 and kamailio. RTPproxy is working fine in almost every case. However I have a problem with some call.
When softphone A using sip2sip.info account calls softphone B using my Kamailio server account, the Kamilio receives SIP packets from IP1 (81.23.228.129). The invite packet has IP2 (81.23.228.150) in the conecction information field (c=IN IP4 81.23.228.150):
INVITE sip:12345@xxxxxxxx.xxx;transport=udp SIP/2.0 Record-Route: sip:81.23.228.129;lr;ftag=d9e99adf;did=e81.3538c317 Via: SIP/2.0/UDP 81.23.228.129;branch=z9hG4bKd14b.12802794.0 Via: SIP/2.0/UDP 192.168.xx.xx:7964;received=88.xx.xx.xx;branch=z9hG4bK-d8754z-8ba1b4b47e 37bb89-1---d8754z-;rport=7964 Max-Forwards: 69 Contact: sip:54321@88.xxx.xxx.xxx:7964;transport=udp To: "2205"sip:12345@xxxxxxxx.xxx From: "R sip2sip"sip:54321@sip2sip.info;tag=d9e99adf Call-ID: OGE5MTFiMzljZjE0NTYxN2M0N2VkZjgzNDRhMzE2ZTA. CSeq: 2 INVITE Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO Content-Type: application/sdp Supported: replaces User-Agent:xxxxxxxxxxxxxxxxxxxxxxxxx Content-Length: 279
v=0 o=- 12943454020854250 1 IN IP4 192.168.xxx.xx s=xxxxxxxxxxxxxxxxxxxx c=IN IP4 81.23.228.150 t=0 0 m=audio 52854 RTP/AVP 107 0 8 18 101 a=rtpmap:107 BV32/16000 a=rtpmap:18 G729/8000 a=fmtp:18 annexb=yes a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=sendrecv
Then Kamilio translates "c=" IP address to my RTPproxy IPaddress and sends the INVITE to softphone B. After the OK softphone B sends RTP packets to the RTPproxy as specified in the "c=" field, however the RTPproxy sends RTP packets to IP1 instead of send packets to IP2. How can I tell the RTPproxy to send packets to IP2 (the one in the c= field?)
Thanks, Ricardo Dominguez