AnnaK Posted June 27, 2014 · Report post Доброе время суток всем. Eсть sipproxy kamailio+rtpproxy. Kamailio отказывается слать sip и rtp пакеты на разные ip адреса (это требует свич, к которому он подключен). SDP со свича корректные. В полях Owner/Creator, Session Id (o) и Connection Information © он присылает kamailio IP, на которые ждет rtp трафик. Но kamailio упорно продолжает стать rtp на signaling IP. Кто-нибудь с этим сталкивался? Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
Mikler Posted June 28, 2014 · Report post Доброе время суток всем. Eсть sipproxy kamailio+rtpproxy. Kamailio отказывается слать sip и rtp пакеты на разные ip адреса (это требует свич, к которому он подключен). SDP со свича корректные. В полях Owner/Creator, Session Id (o) и Connection Information © он присылает kamailio IP, на которые ждет rtp трафик. Но kamailio упорно продолжает стать rtp на signaling IP. Кто-нибудь с этим сталкивался? Логи сильно ускорят ответ. Желательно ещё с wireshark. Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
Mikler Posted June 30, 2014 · Report post Это 5, приложите атачем файл *.pcap :-) Попытка #2 сообщение удаляю. Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
AnnaK Posted June 30, 2014 · Report post При попытке приложить *.pcap Ошибка "Вы не можете загружать файлы подобного типа". Что нужно сделать, что бы загрузить файл? Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
Mikler Posted July 1, 2014 · Report post При попытке приложить *.pcap Ошибка "Вы не можете загружать файлы подобного типа". Что нужно сделать, что бы загрузить файл? Подозреваю, что можно добавить его в zip архив или переименовать в jpg. Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
AnnaK Posted July 1, 2014 · Report post 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 Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
agr Posted July 3, 2014 · Report post 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. Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
AnnaK Posted July 3, 2014 · Report post Спасибо, громадное! Помогло! Буду внимательнее читать документацию...) Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
agr Posted July 3, 2014 · Report post Кстати по дампу видно, что от свича в ответ на INVITE сразу идет обратный вызов, это так просто совпало или какая-то фишка SI3000? Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...