Перейти к содержимому
Калькуляторы

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.

 

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

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

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

 

Eсть sipproxy kamailio+rtpproxy.

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

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

 

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

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

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Это 5, приложите атачем файл *.pcap :-) Попытка #2 сообщение удаляю.

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

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

 

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

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

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

 

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

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

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

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

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

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.

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Спасибо, громадное! Помогло!

 

Буду внимательнее читать документацию...)

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

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

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Join the conversation

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

Гость
Ответить в тему...

×   Вставлено в виде отформатированного текста.   Вставить в виде обычного текста

  Разрешено не более 75 смайлов.

×   Ваша ссылка была автоматически встроена.   Отобразить как ссылку

×   Ваш предыдущий контент был восстановлен.   Очистить редактор

×   Вы не можете вставить изображения напрямую. Загрузите или вставьте изображения по ссылке.