У меня есть блок freeswitch, который успешно обрабатывает входящие вызовы на определенный номер DID, но когда я звоню с другого номера DID (который, как оказалось, от Asterisk), я получаю сообщение о том, что вызов отменяется
sofia/internal/17185551212@10.0.0.5 Abandoned
вот журнал
d6ee709e-455e-42d2-a41a-9c12bae0dbd2 2015-08-16 06:07:44.603896 [DEBUG] switch_core_state_machine.c:735 (sofia/internal/110@99.99.99.99) Callstate Change DOWN -> HANGUP
d6ee709e-455e-42d2-a41a-9c12bae0dbd2 2015-08-16 06:07:44.603896 [DEBUG] switch_core_state_machine.c:737 (sofia/internal/110@99.99.99.99) State HANGUP
d6ee709e-455e-42d2-a41a-9c12bae0dbd2 2015-08-16 06:07:44.603896 [DEBUG] mod_sofia.c:413 Channel sofia/internal/110@99.99.99.99 hanging up, cause: WRONG_CALL_STATE
d6ee709e-455e-42d2-a41a-9c12bae0dbd2 2015-08-16 06:07:44.603896 [DEBUG] switch_core_state_machine.c:60 sofia/internal/110@99.99.99.99 Standard HANGUP, cause: WRONG_CALL_STATE
d6ee709e-455e-42d2-a41a-9c12bae0dbd2 2015-08-16 06:07:44.603896 [DEBUG] switch_core_state_machine.c:737 (sofia/internal/110@99.99.99.99) State HANGUP going to sleep
d6ee709e-455e-42d2-a41a-9c12bae0dbd2 2015-08-16 06:07:44.603896 [DEBUG] switch_core_state_machine.c:504 (sofia/internal/110@99.99.99.99) State Change CS_HANGUP -> CS_REPORTING
d6ee709e-455e-42d2-a41a-9c12bae0dbd2 2015-08-16 06:07:44.603896 [DEBUG] switch_core_session.c:1388 Send signal sofia/internal/110@99.99.99.99 [BREAK]
d6ee709e-455e-42d2-a41a-9c12bae0dbd2 2015-08-16 06:07:44.603896 [DEBUG] switch_core_state_machine.c:472 (sofia/internal/110@99.99.99.99) Running State Change CS_REPORTING
d6ee709e-455e-42d2-a41a-9c12bae0dbd2 2015-08-16 06:07:44.603896 [DEBUG] switch_core_state_machine.c:823 (sofia/internal/110@99.99.99.99) State REPORTING
d6ee709e-455e-42d2-a41a-9c12bae0dbd2 2015-08-16 06:07:44.603896 [DEBUG] switch_core_state_machine.c:104 sofia/internal/110@99.99.99.99 Standard REPORTING, cause: WRONG_CALL_STATE
d6ee709e-455e-42d2-a41a-9c12bae0dbd2 2015-08-16 06:07:44.603896 [DEBUG] switch_core_state_machine.c:823 (sofia/internal/110@99.99.99.99) State REPORTING going to sleep
d6ee709e-455e-42d2-a41a-9c12bae0dbd2 2015-08-16 06:07:44.603896 [DEBUG] switch_core_state_machine.c:498 (sofia/internal/110@99.99.99.99) State Change CS_REPORTING -> CS_DESTROY
d6ee709e-455e-42d2-a41a-9c12bae0dbd2 2015-08-16 06:07:44.603896 [DEBUG] switch_core_session.c:1388 Send signal sofia/internal/110@99.99.99.99 [BREAK]
d6ee709e-455e-42d2-a41a-9c12bae0dbd2 2015-08-16 06:07:44.603896 [DEBUG] switch_core_session.c:1615 Session 8 (sofia/internal/110@99.99.99.99) Locked, Waiting on external entities
d6ee709e-455e-42d2-a41a-9c12bae0dbd2 2015-08-16 06:07:44.603896 [NOTICE] switch_core_session.c:1633 Session 8 (sofia/internal/110@99.99.99.99) Ended
d6ee709e-455e-42d2-a41a-9c12bae0dbd2 2015-08-16 06:07:44.603896 [NOTICE] switch_core_session.c:1637 Close Channel sofia/internal/110@99.99.99.99 [CS_DESTROY]
d6ee709e-455e-42d2-a41a-9c12bae0dbd2 2015-08-16 06:07:44.603896 [DEBUG] switch_core_state_machine.c:626 (sofia/internal/110@99.99.99.99) Running State Change CS_DESTROY
d6ee709e-455e-42d2-a41a-9c12bae0dbd2 2015-08-16 06:07:44.603896 [DEBUG] switch_core_state_machine.c:636 (sofia/internal/110@99.99.99.99) State DESTROY
d6ee709e-455e-42d2-a41a-9c12bae0dbd2 2015-08-16 06:07:44.603896 [DEBUG] mod_sofia.c:323 sofia/internal/110@99.99.99.99 SOFIA DESTROY
d6ee709e-455e-42d2-a41a-9c12bae0dbd2 2015-08-16 06:07:44.603896 [DEBUG] switch_core_state_machine.c:111 sofia/internal/110@99.99.99.99 Standard DESTROY
d6ee709e-455e-42d2-a41a-9c12bae0dbd2 2015-08-16 06:07:44.603896 [DEBUG] switch_core_state_machine.c:636 (sofia/internal/110@99.99.99.99) State DESTROY going to sleep
5dd18ba2-0880-4f7b-84ca-650cbd4a947b 2015-08-16 06:07:49.644078 [NOTICE] switch_channel.c:1055 New Channel sofia/internal/17185551212@10.0.0.5 [5dd18ba2-0880-4f7b-84ca-650cbd4a947b]
5dd18ba2-0880-4f7b-84ca-650cbd4a947b 2015-08-16 06:07:49.644078 [DEBUG] switch_core_session.c:1053 Send signal sofia/internal/17185551212@10.0.0.5 [BREAK]
5dd18ba2-0880-4f7b-84ca-650cbd4a947b 2015-08-16 06:07:49.644078 [DEBUG] switch_core_session.c:1053 Send signal sofia/internal/17185551212@10.0.0.5 [BREAK]
5dd18ba2-0880-4f7b-84ca-650cbd4a947b 2015-08-16 06:07:49.644078 [DEBUG] switch_core_state_machine.c:472 (sofia/internal/17185551212@10.0.0.5) Running State Change CS_NEW
5dd18ba2-0880-4f7b-84ca-650cbd4a947b 2015-08-16 06:07:49.644078 [DEBUG] sofia.c:8834 sofia/internal/17185551212@10.0.0.5 receiving invite from 212.76.102.123:5060 version: 1.5.15b 64bit
2015-08-16 06:07:49.644078 [DEBUG] sofia.c:9001 IP 212.76.102.123 Rejected by acl "domains". Falling back to Digest auth.
5dd18ba2-0880-4f7b-84ca-650cbd4a947b 2015-08-16 06:07:49.644078 [DEBUG] switch_core_state_machine.c:491 (sofia/internal/17185551212@10.0.0.5) State NEW
5dd18ba2-0880-4f7b-84ca-650cbd4a947b 2015-08-16 06:07:49.644078 [DEBUG] switch_core_session.c:1053 Send signal sofia/internal/17185551212@10.0.0.5 [BREAK]
2015-08-16 06:07:49.644078 [DEBUG] sofia.c:2067 detaching session 5dd18ba2-0880-4f7b-84ca-650cbd4a947b
5dd18ba2-0880-4f7b-84ca-650cbd4a947b 2015-08-16 06:08:00.064816 [WARNING] switch_core_state_machine.c:572 5dd18ba2-0880-4f7b-84ca-650cbd4a947b sofia/internal/17185551212@10.0.0.5 Abandoned
5dd18ba2-0880-4f7b-84ca-650cbd4a947b 2015-08-16 06:08:00.064816 [NOTICE] switch_core_state_machine.c:575 Hangup sofia/internal/17185551212@10.0.0.5 [CS_NEW] [WRONG_CALL_STATE]
5dd18ba2-0880-4f7b-84ca-650cbd4a947b 2015-08-16 06:08:00.064816 [DEBUG] switch_channel.c:3222 Send signal sofia/internal/17185551212@10.0.0.5 [KILL]
5dd18ba2-0880-4f7b-84ca-650cbd4a947b 2015-08-16 06:08:00.064816 [DEBUG] switch_core_session.c:1388 Send signal sofia/internal/17185551212@10.0.0.5 [BREAK]
5dd18ba2-0880-4f7b-84ca-650cbd4a947b 2015-08-16 06:08:00.064816 [DEBUG] switch_core_state_machine.c:472 (sofia/internal/17185551212@10.0.0.5) Running State Change CS_HANGUP
5dd18ba2-0880-4f7b-84ca-650cbd4a947b 2015-08-16 06:08:00.064816 [DEBUG] switch_core_state_machine.c:735 (sofia/internal/17185551212@10.0.0.5) Callstate Change DOWN -> HANGUP
5dd18ba2-0880-4f7b-84ca-650cbd4a947b 2015-08-16 06:08:00.064816 [DEBUG] switch_core_state_machine.c:737 (sofia/internal/17185551212@10.0.0.5) State HANGUP
5dd18ba2-0880-4f7b-84ca-650cbd4a947b 2015-08-16 06:08:00.064816 [DEBUG] mod_sofia.c:413 Channel sofia/internal/17185551212@10.0.0.5 hanging up, cause: WRONG_CALL_STATE
5dd18ba2-0880-4f7b-84ca-650cbd4a947b 2015-08-16 06:08:00.084841 [DEBUG] switch_core_state_machine.c:60 sofia/internal/17185551212@10.0.0.5 Standard HANGUP, cause: WRONG_CALL_STATE
5dd18ba2-0880-4f7b-84ca-650cbd4a947b 2015-08-16 06:08:00.084841 [DEBUG] switch_core_state_machine.c:737 (sofia/internal/17185551212@10.0.0.5) State HANGUP going to sleep
5dd18ba2-0880-4f7b-84ca-650cbd4a947b 2015-08-16 06:08:00.084841 [DEBUG] switch_core_state_machine.c:504 (sofia/internal/17185551212@10.0.0.5) State Change CS_HANGUP -> CS_REPORTING
5dd18ba2-0880-4f7b-84ca-650cbd4a947b 2015-08-16 06:08:00.084841 [DEBUG] switch_core_session.c:1388 Send signal sofia/internal/17185551212@10.0.0.5 [BREAK]
5dd18ba2-0880-4f7b-84ca-650cbd4a947b 2015-08-16 06:08:00.084841 [DEBUG] switch_core_state_machine.c:472 (sofia/internal/17185551212@10.0.0.5) Running State Change CS_REPORTING
5dd18ba2-0880-4f7b-84ca-650cbd4a947b 2015-08-16 06:08:00.084841 [DEBUG] switch_core_state_machine.c:823 (sofia/internal/17185551212@10.0.0.5) State REPORTING
5dd18ba2-0880-4f7b-84ca-650cbd4a947b 2015-08-16 06:08:00.084841 [DEBUG] switch_core_state_machine.c:104 sofia/internal/17185551212@10.0.0.5 Standard REPORTING, cause: WRONG_CALL_STATE
5dd18ba2-0880-4f7b-84ca-650cbd4a947b 2015-08-16 06:08:00.084841 [DEBUG] switch_core_state_machine.c:823 (sofia/internal/17185551212@10.0.0.5) State REPORTING going to sleep
5dd18ba2-0880-4f7b-84ca-650cbd4a947b 2015-08-16 06:08:00.084841 [DEBUG] switch_core_state_machine.c:498 (sofia/internal/17185551212@10.0.0.5) State Change CS_REPORTING -> CS_DESTROY
поставщик DID пишет, что я должен отключить любую аутентификацию, поэтому я попробовал инструкции здесь https://freeswitch.org/confluence/display/FREESWITCH/Asterisk
Я установил apply-inbound-acl и добавил разрешающее правило с IP-адресом, который он мне предоставил
также я установил, что шлюз не требует аутентификации следующим образом (хотя я не совсем понимаю, почему это может помочь, так как я не думаю, что freeswitch проверит этот шлюз при поступлении вызова ...)
<gateway name="MySipCo">
<param name="realm" value="88.88.88.88"/>
<param name="username" value="not-required"/>
<param name="password" value="not-required"/>
<param name="from-user" value="not-required"/>
<param name="expire-seconds" value="600"/>
<param name="register" value="false"/>
<param name="retry-seconds" value="30"/>
<param name="extension" value="1000"/>
<param name="context" value="public"/>
<param name="auth-calls" value="false"/>
</gateway>
Я попытался перезагрузить и перезапустить freeswitch, но пока безуспешно. Любые идеи?