Jump to content
Калькуляторы

Kamailio+rtpproxy. Разные IP для signaling и RTP

Доброе время суток всем.

 

Eсть sipproxy kamailio+rtpproxy.

Kamailio отказывается слать sip и rtp пакеты на разные ip адреса (это требует свич, к которому он подключен).

SDP со свича корректные. В полях Owner/Creator, Session Id (o) и Connection Information © он присылает kamailio IP, на которые ждет rtp трафик. Но kamailio упорно продолжает стать rtp на signaling IP.

 

Кто-нибудь с этим сталкивался?

Share this post


Link to post
Share on other sites

Доброе время суток всем.

 

Eсть sipproxy kamailio+rtpproxy.

Kamailio отказывается слать sip и rtp пакеты на разные ip адреса (это требует свич, к которому он подключен).

SDP со свича корректные. В полях Owner/Creator, Session Id (o) и Connection Information © он присылает kamailio IP, на которые ждет rtp трафик. Но kamailio упорно продолжает стать rtp на signaling IP.

 

Кто-нибудь с этим сталкивался?

Логи сильно ускорят ответ. Желательно ещё с wireshark.

Share this post


Link to post
Share on other sites

При попытке приложить *.pcap Ошибка "Вы не можете загружать файлы подобного типа".

 

Что нужно сделать, что бы загрузить файл?

Share this post


Link to post
Share on other sites

При попытке приложить *.pcap Ошибка "Вы не можете загружать файлы подобного типа".

 

Что нужно сделать, что бы загрузить файл?

Подозреваю, что можно добавить его в zip архив или переименовать в jpg.

Share this post


Link to post
Share on other sites

Kamailio:

 

Jun 30 17:43:12 si3000proxy /usr/local/kamailio/sbin/kamailio[5399]: INFO: <script>: LOCATION default handler: M=INVITE RURI=sip:4000@79.141.231.147:1516 F=sip:4001@79.141.231.147:1516 T=sip:4000@79.141.231.147:1516 IP=79.141.231.146

Jun 30 17:43:12 si3000proxy /usr/local/kamailio/sbin/kamailio[5399]: INFO: <script>: PSTN default handler: M=INVITE RURI=sip:4000@79.141.231.147:1516 F=sip:4001@79.141.231.147:1516 T=sip:4000@79.141.231.147:1516 IP=79.141.231.146

Jun 30 17:43:12 si3000proxy /usr/local/kamailio/sbin/kamailio[5399]: INFO: <script>: NAT default handler: M=INVITE RURI=sip:4000@192.168.248.100:1516 F=sip:4001@79.141.231.147:1516 T=sip:4000@79.141.231.147:1516 IP=79.141.231.146

Jun 30 17:43:12 si3000proxy /usr/local/kamailio/sbin/kamailio[5399]: INFO: <script>: RELAY default handler: M=INVITE RURI=sip:4000@192.168.248.100:1516 F=sip:4001@79.141.231.147:1516 T=sip:4000@79.141.231.147:1516 IP=79.141.231.146

Jun 30 17:43:12 si3000proxy /usr/local/kamailio/sbin/kamailio[5395]: INFO: <script>: LOCATION default handler: M=INVITE RURI=sip:4000@192.168.248.62:1516;user=phone F=sip:84954001@192.168.248.100:1516;user=phone;cpc=ordinary T=sip:4000@192.168.248.100:1516;user=phone IP=192.168.248.100

Jun 30 17:43:12 si3000proxy /usr/local/kamailio/sbin/kamailio[5395]: INFO: <script>: NAT2 default handler: M=INVITE RURI=sip:4000@79.141.231.146:5842;rinstance=d17863b6bd244fe3;transport=udp F=sip:84954001@192.168.248.100:1516;user=phone;cpc=ordinary T=sip:4000@192.168.248.100:1516;user=phone IP=192.168.248.100

Jun 30 17:43:12 si3000proxy /usr/local/kamailio/sbin/kamailio[5395]: INFO: <script>: RELAY2 default handler: M=INVITE RURI=sip:4000@79.141.231.146:5842;rinstance=d17863b6bd244fe3;transport=udp F=sip:84954001@192.168.248.100:1516;user=phone;cpc=ordinary T=sip:4000@192.168.248.100:1516;user=phone IP=192.168.248.100

Jun 30 17:43:16 si3000proxy /usr/local/kamailio/sbin/kamailio[5401]: INFO: <script>: LOCATION default handler: M=ACK RURI=sip:4000@192.168.249.26:1516 F=sip:84954001@192.168.248.100:1516;user=phone;cpc=ordinary T=sip:4000@192.168.248.100:1516;user=phone IP=192.168.248.100

Jun 30 17:43:16 si3000proxy /usr/local/kamailio/sbin/kamailio[5401]: INFO: <script>: NAT2 default handler: M=ACK RURI=sip:4000@79.141.231.146:5842;rinstance=d17863b6bd244fe3;transport=udp F=sip:84954001@192.168.248.100:1516;user=phone;cpc=ordinary T=sip:4000@192.168.248.100:1516;user=phone IP=192.168.248.100

Jun 30 17:43:16 si3000proxy /usr/local/kamailio/sbin/kamailio[5401]: INFO: <script>: RELAY2 default handler: M=ACK RURI=sip:4000@79.141.231.146:5842;rinstance=d17863b6bd244fe3;transport=udp F=sip:84954001@192.168.248.100:1516;user=phone;cpc=ordinary T=sip:4000@192.168.248.100:1516;user=phone IP=192.168.248.100

Jun 30 17:43:16 si3000proxy /usr/local/kamailio/sbin/kamailio[5400]: INFO: <script>: LOCATION default handler: M=ACK RURI=sip:4000@192.168.248.100:1516 F=sip:4001@79.141.231.147:1516 T=sip:4000@79.141.231.147:1516 IP=79.141.231.146

Jun 30 17:43:16 si3000proxy /usr/local/kamailio/sbin/kamailio[5400]: INFO: <script>: PSTN default handler: M=ACK RURI=sip:4000@192.168.248.100:1516 F=sip:4001@79.141.231.147:1516 T=sip:4000@79.141.231.147:1516 IP=79.141.231.146

Jun 30 17:43:16 si3000proxy /usr/local/kamailio/sbin/kamailio[5400]: INFO: <script>: NAT default handler: M=ACK RURI=sip:4000@192.168.248.100:1516 F=sip:4001@79.141.231.147:1516 T=sip:4000@79.141.231.147:1516 IP=79.141.231.146

Jun 30 17:43:16 si3000proxy /usr/local/kamailio/sbin/kamailio[5400]: INFO: <script>: RELAY default handler: M=ACK RURI=sip:4000@192.168.248.100:1516 F=sip:4001@79.141.231.147:1516 T=sip:4000@79.141.231.147:1516 IP=79.141.231.146

Jun 30 17:43:22 si3000proxy /usr/local/kamailio/sbin/kamailio[5399]: INFO: <script>: LOCATION default handler: M=BYE RURI=sip:4000@192.168.248.100:1516 F=sip:4001@79.141.231.147:1516 T=sip:4000@79.141.231.147:1516 IP=79.141.231.146

Jun 30 17:43:22 si3000proxy /usr/local/kamailio/sbin/kamailio[5399]: INFO: <script>: PSTN default handler: M=BYE RURI=sip:4000@192.168.248.100:1516 F=sip:4001@79.141.231.147:1516 T=sip:4000@79.141.231.147:1516 IP=79.141.231.146

Jun 30 17:43:22 si3000proxy /usr/local/kamailio/sbin/kamailio[5399]: INFO: <script>: NAT default handler: M=BYE RURI=sip:4000@192.168.248.100:1516 F=sip:4001@79.141.231.147:1516 T=sip:4000@79.141.231.147:1516 IP=79.141.231.146

Jun 30 17:43:22 si3000proxy /usr/local/kamailio/sbin/kamailio[5399]: INFO: <script>: RELAY default handler: M=BYE RURI=sip:4000@192.168.248.100:1516 F=sip:4001@79.141.231.147:1516 T=sip:4000@79.141.231.147:1516 IP=79.141.231.146

Jun 30 17:43:22 si3000proxy /usr/local/kamailio/sbin/kamailio[5401]: INFO: <script>: LOCATION default handler: M=BYE RURI=sip:4000@192.168.249.26:1516 F=sip:84954001@192.168.248.100:1516;user=phone;cpc=ordinary T=sip:4000@192.168.248.100:1516;user=phone IP=192.168.248.100

Jun 30 17:43:22 si3000proxy /usr/local/kamailio/sbin/kamailio[5401]: INFO: <script>: NAT2 default handler: M=BYE RURI=sip:4000@79.141.231.146:5842;rinstance=d17863b6bd244fe3;transport=udp F=sip:84954001@192.168.248.100:1516;user=phone;cpc=ordinary T=sip:4000@192.168.248.100:1516;user=phone IP=192.168.248.100

Jun 30 17:43:22 si3000proxy /usr/local/kamailio/sbin/kamailio[5401]: INFO: <script>: RELAY2 default handler: M=BYE RURI=sip:4000@79.141.231.146:5842;rinstance=d17863b6bd244fe3;transport=udp F=sip:84954001@192.168.248.100:1516;user=phone;cpc=ordinary T=sip:4000@192.168.248.100:1516;user=phone IP=192.168.248.100

 

RTPproxy:

 

Jun 30 17:43:12 si3000proxy rtpproxy[5348]: DBUG:get_command: received command "Uc8,18,101 1829851468-1516-6@BJC.BGI.CEJ.GE 79.141.231.146 5004 954479185;1"

Jun 30 17:43:12 si3000proxy rtpproxy[5348]: INFO:handle_command: new session 1829851468-1516-6@BJC.BGI.CEJ.GE, tag 954479185;1 requested, type strong

Jun 30 17:43:12 si3000proxy rtpproxy[5348]: INFO:handle_command: new session on a port 62108 created, tag 954479185;1

Jun 30 17:43:12 si3000proxy rtpproxy[5348]: INFO:handle_command: pre-filling caller's address with 79.141.231.146:5004

Jun 30 17:43:12 si3000proxy rtpproxy[5348]: DBUG:doreply: sending reply "62108#012"

Jun 30 17:43:12 si3000proxy rtpproxy[5348]: DBUG:get_command: received command "Uc8 41801e846ar85y3xa@192.168.248.100 192.168.248.100 17726 iqkqcsh042;1"

Jun 30 17:43:12 si3000proxy rtpproxy[5348]: INFO:handle_command: new session 41801e846ar85y3xa@192.168.248.100, tag iqkqcsh042;1 requested, type strong

Jun 30 17:43:12 si3000proxy rtpproxy[5348]: INFO:handle_command: new session on a port 58658 created, tag iqkqcsh042;1

Jun 30 17:43:12 si3000proxy rtpproxy[5348]: INFO:handle_command: pre-filling caller's address with 192.168.248.100:17726

Jun 30 17:43:12 si3000proxy rtpproxy[5348]: DBUG:doreply: sending reply "58658#012"

Jun 30 17:43:16 si3000proxy rtpproxy[5348]: DBUG:get_command: received command "Uc8 41801e846ar85y3xa@192.168.248.100 79.141.231.146 51238 13b0b17e;1 iqkqcsh0

42;1"

Jun 30 17:43:16 si3000proxy rtpproxy[5348]: INFO:handle_command: adding strong flag to existing session, new=1/0/0

Jun 30 17:43:16 si3000proxy rtpproxy[5348]: INFO:handle_command: lookup on ports 58658/41298, session timer restarted

Jun 30 17:43:16 si3000proxy rtpproxy[5348]: INFO:handle_command: pre-filling callee's address with 79.141.231.146:51238

Jun 30 17:43:16 si3000proxy rtpproxy[5348]: DBUG:doreply: sending reply "41298#012"

Jun 30 17:43:16 si3000proxy rtpproxy[5348]: INFO:rxmit_packets: callee's address filled in: 79.141.231.146:12491 (RTP)

Jun 30 17:43:16 si3000proxy rtpproxy[5348]: INFO:rxmit_packets: callee's address filled in: 79.141.231.146:27855 (RTCP)

Jun 30 17:43:16 si3000proxy rtpproxy[5348]: DBUG:get_command: received command "Uc8 1829851468-1516-6@BJC.BGI.CEJ.GE 192.168.248.100 17720 tsa8jf88l8;1 954479

185;1"

Jun 30 17:43:16 si3000proxy rtpproxy[5348]: INFO:handle_command: adding strong flag to existing session, new=1/0/0

Jun 30 17:43:16 si3000proxy rtpproxy[5348]: INFO:handle_command: lookup on ports 62108/54210, session timer restarted

Jun 30 17:43:16 si3000proxy rtpproxy[5348]: INFO:handle_command: pre-filling callee's address with 192.168.248.100:17720

Jun 30 17:43:16 si3000proxy rtpproxy[5348]: DBUG:doreply: sending reply "54210#012"

Jun 30 17:43:16 si3000proxy rtpproxy[5348]: INFO:rxmit_packets: caller's address filled in: 79.141.231.146:43402 (RTP)

ser_rtpproxy.zip

Share this post


Link to post
Share on other sites

http://kamailio.org/docs/modules/devel/modules/rtpproxy-ng.html#rtpproxy-ng.f.rtpproxy_offer

r - flags that IP address in SDP should be trusted. Without this flag, rtpproxy ignores address in the SDP and uses source address of the SIP message as media address which is passed to the RTP proxy.

Share this post


Link to post
Share on other sites

Кстати по дампу видно, что от свича в ответ на INVITE сразу идет обратный вызов, это так просто совпало или какая-то фишка SI3000?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.