Пожалуйста, войдите здесь. Часто задаваемые вопросы О нас
Задайте Ваш вопрос

asterisk + sipnet + raspberry входящие звонки

0

Исходящие звонки работают на ура. Входящие не проходят. Дебаг показывает вот это.

<--- SIP read from UDP:212.53.40.40:5060 ---> INVITE sip:0041998912@128.68.242.152:5060 SIP/2.0 Via: SIP/2.0/UDP 212.53.40.40:5060;branch=z9hG4bK738198-kmbdctk;cgp=etc.tario.ru;rport P-CGP-Redirector: oriondim@sipnet.ru Record-Route: <sip:212.53.40.40:5060;lr> Record-Route: <sip:192.168.40.72:5060;lr> Record-Route: <sip:rev.845325-192.168.40.72.dialog.cgatepro;lr> Max-Forwards: 10 From: <sip:+79067600406@sipnet.ru>;tag=0DBC9AD4-255884-36F4E3B4_kmbdctk-4D05 To: <sip:0041998912@sipnet.ru> Call-ID: IWF-150b445a0c09ba710c9d245b6180687@trusted Contact: <sip:signode-255884-36F4E3B4_kmbdctk-4D05@212.53.40.40> CSeq: 1 INVITE Supported: 100rel,timer,replaces,histinfo,precondition Session-Expires: 7200 Min-SE: 90 User-Agent: CommuniGatePro-callLeg/6.0.10d Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,INFO,MESSAGE,SUBSCRIBE,NOTIFY,PRACK,UPDATE,REFER Content-Type: application/sdp Content-Length: 461 v=0 o=CGPLeg255884 2030505154 1015252578 IN IP4 212.53.40.72 s=session c=IN IP4 212.53.40.72 t=0 0 a=mediagateway:etc.tario.ru:845325:192.168.40.72 m=audio 24844 RTP/AVP 0 8 18 101 c=IN IP4 212.53.40.72 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:18 G729/8000 a=fmtp:18 annexb=no a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=sendrecv a=ptime:20 a=ice-pwd:7F4DC8870527D79DC45668E8 a=ice-ufrag:pt0921457 a=silenceSupp:off - - - - <-------------> --- (19 headers 19 lines) --- Sending to 212.53.40.40:5060 (no NAT) Sending to 212.53.40.40:5060 (no NAT) Using INVITE request as basis request - IWF-150b445a0c09ba710c9d245b6180687@trusted Found peer 'sipnet' for '+79067600406' from 212.53.40.40:5060 Found RTP audio format 0 Found RTP audio format 8 Found RTP audio format 18 Found RTP audio format 101 Found audio description format PCMU for ID 0 Found audio description format PCMA for ID 8 Found audio description format G729 for ID 18 Found audio description format telephone-event for ID 101 [2014-04-25 13:56:15] NOTICE[2894][C-0000001e]: chan_sip.c:10564 process_sdp: No compatible codecs, not accepting this offer! <--- Reliably Transmitting (no NAT) to 212.53.40.40:5060 ---> SIP/2.0 488 Not acceptable here Via: SIP/2.0/UDP 212.53.40.40:5060;branch=z9hG4bK738198-kmbdctk;cgp=etc.tario.ru;received=212.53.40.40;rport=5060 From: <sip:+79067600406@sipnet.ru>;tag=0DBC9AD4-255884-36F4E3B4_kmbdctk-4D05 To: <sip:0041998912@sipnet.ru>;tag=as506458f3 Call-ID: IWF-150b445a0c09ba710c9d245b6180687@trusted CSeq: 1 INVITE Server: FPBX-2.11.0(11.8.0) Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH Supported: replaces, timer Content-Length: 0 <------------> Scheduling destruction of SIP dialog 'IWF-150b445a0c09ba710c9d245b6180687@trusted' in 32000 ms (Method: INVITE) <--- SIP read from UDP:212.53.40.40:5060 ---> INVITE sip:1@128.68.242.152:5060 SIP/2.0 Via: SIP/2.0/UDP 212.53.40.40:5060;branch=z9hG4bK738200-kmbdctk;cgp=etc.tario.ru;rport P-CGP-Redirector: oriondim@sipnet.ru Record-Route: <sip:212.53.40.40:5060;lr> Record-Route: <sip:192.168.40.72:5060;lr> Record-Route: <sip:rev.845326-192.168.40.72.dialog.cgatepro;lr> Max-Forwards: 10 From: <sip:+79067600406@sipnet.ru>;tag=0DBC9AD4-255884-36F4E3B4_kmbdctk-4D05 To: <sip:0041998912@sipnet.ru> Call-ID: IWF-150b445a0c09ba710c9d245b6180687@trusted Contact: <sip:signode-255884-36F4E3B4_kmbdctk-4D05@212.53.40.40> CSeq: 1 INVITE Supported: 100rel,timer,replaces,histinfo,precondition Session-Expires: 7200 Min-SE: 90 User-Agent: CommuniGatePro-callLeg/6.0.10d Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,INFO,MESSAGE,SUBSCRIBE,NOTIFY,PRACK,UPDATE,REFER Content-Type: application/sdp Content-Length: 461 v=0 o=CGPLeg255884 2030505154 1015252578 IN IP4 212.53.40.72 s=session c=IN IP4 212.53.40.72 t=0 0 a=mediagateway:etc.tario.ru:845326:192.168.40.72 m=audio 24846 RTP/AVP 0 8 18 101 c=IN IP4 212.53.40.72 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:18 G729/8000 a=fmtp:18 annexb=no a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=sendrecv a=ptime:20 a=ice-pwd:517B6DA594833F62B3F2A1D9 a=ice-ufrag:pt0921459 a=silenceSupp:off - - - - <-------------> --- (19 headers 19 lines) --- Sending to 212.53.40.40:5060 (no NAT) Sending to 212.53.40.40:5060 (no NAT) Using INVITE request as basis request - IWF-150b445a0c09ba710c9d245b6180687@trusted Found peer 'sipnet' for '+79067600406' from 212.53.40.40:5060 Found RTP audio format 0 Found RTP audio format 8 Found RTP audio format 18 Found RTP audio format 101 Found audio description format PCMU for ID 0 Found audio description format PCMA for ID 8 Found audio description format G729 for ID 18 Found audio description format telephone-event for ID 101 [2014-04-25 13:56:15] NOTICE[2894][C-0000001f]: chan_sip.c:10564 process_sdp: No compatible codecs, not accepting this offer! <--- Reliably Transmitting (no NAT) to 212.53.40.40:5060 ---> SIP/2.0 488 Not acceptable here Via: SIP/2.0/UDP 212.53.40.40:5060;branch=z9hG4bK738200-kmbdctk;cgp=etc.tario.ru;received=212.53.40.40;rport=5060 From: <sip:+79067600406@sipnet.ru>;tag=0DBC9AD4-255884-36F4E3B4_kmbdctk-4D05 To: <sip:0041998912@sipnet.ru>;tag=as338ed522 Call-ID: IWF-150b445a0c09ba710c9d245b6180687@trusted CSeq: 1 INVITE Server: FPBX-2.11.0(11.8.0) Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH Supported: replaces, timer Content-Length: 0 <------------> Scheduling destruction of SIP dialog 'IWF-150b445a0c09ba710c9d245b6180687@trusted' in 32000 ms (Method: INVITE) <--- SIP read from UDP:212.53.40.40:5060 ---> ACK sip:0041998912@128.68.242.152:5060 SIP/2.0 P-CGP-Redirector: oriondim@sipnet.ru Via: SIP/2.0/UDP 212.53.40.40:5060;branch=z9hG4bK738198-kmbdctk;cgp=etc.tario.ru;rport Max-Forwards: 10 From: <sip:+79067600406@sipnet.ru>;tag=0DBC9AD4-255884-36F4E3B4_kmbdctk-4D05 To: <sip:0041998912@sipnet.ru>;tag=as506458f3 Call-ID: IWF-150b445a0c09ba710c9d245b6180687@trusted CSeq: 1 ACK Content-Length: 0 <-------------> --- (9 headers 0 lines) --- Really destroying SIP dialog 'IWF-150b445a0c09ba710c9d245b6180687@trusted' Method: ACK <--- SIP read from UDP:212.53.40.40:5060 ---> ACK sip:1@128.68.242.152:5060 SIP/2.0 P-CGP-Redirector: oriondim@sipnet.ru Via: SIP/2.0/UDP 212.53.40.40:5060;branch=z9hG4bK738200-kmbdctk;cgp=etc.tario.ru;rport Max-Forwards: 10 From: <sip:+79067600406@sipnet.ru>;tag=0DBC9AD4-255884-36F4E3B4_kmbdctk-4D05 To: <sip:0041998912@sipnet.ru>;tag=as338ed522 Call-ID: IWF-150b445a0c09ba710c9d245b6180687@trusted CSeq: 1 ACK Content-Length: 0 <-------------> --- (9 headers 0 lines) --- Really destroying SIP dialog 'IWF-150b445a0c09ba710c9d245b6180687@trusted' Method: ACK 

Понятно, что проблема с кодеками, но какие ставить? Напомню речь идет про raspberry Pi

удалить закрыть спам изменить тег редактировать

спросил 2014-04-25 15:23:49 +0400

OrionDim Gravatar OrionDim
1 ● 2 ● 1 ● 2

обновил 2014-04-25 17:14:31 +0400

Comments

Смотреть во второй части sdp , которую Вы не выложили.

zzuz ( 2014-04-25 16:00:45 +0400 )редактировать

Обновил. Выложил весь лог. Был бы очень признателен за помощь. А то уже весь гугл перерыл и мозг сломал. То ли руки кривые, то ли знаний мало =(

OrionDim ( 2014-04-25 17:16:13 +0400 )редактировать

СПАСИБО! Вывод команды показал куда копать. Проблема решена. Было другое название у USER Context в trunk sipnet.

OrionDim ( 2014-04-26 01:23:42 +0400 )редактировать

1 Ответ

0
asterisk -rx "sip show peer sipnet" 
ссылка удалить спам редактировать

ответил 2014-04-25 21:58:37 +0400

meral Gravatar meral flag of Ukraine
23347 ● 24 ● 20 ● 177
http://pro-sip.net/

Ваш ответ

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[скрыть предварительный просмотр]

Закладки и информация

Добавить закладку

подписаться на rss ленту новостей

Статистика

Задан: 2014-04-25 15:23:49 +0400

Просмотрен: 746 раз

Обновлен: Apr 25 '14

Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией GNU GPL.