Не переводите работу через ссылку на bleg, свободный переход за opensips - PullRequest
0 голосов
/ 09 июля 2019

Я настраиваю freeswitch для работы с opensips в качестве сервера регистрации и не могу получить результат, когда слепая передача успешно завершена.Я использую только внутренний профиль для интеграции с opensips, входящие звонки поступают в профиль, исходящие через шлюз.

Это для версии FreeSWITCH: 1.8.6-7-93b4c92e75 ~ 64bit. Я пытаюсь изменить различные параметры софии.профиль и шлюз.Но теперь верните все параметры к значениям по умолчанию.

<include>
    <gateway name="opensips_sbc">
        <param name="from-domain" value="sbc2.profintel.ru"/>
        <param name="proxy" value="10.227.228.168"/>
        <param name="register" value="false"/>
        <param name="context" value="in-opensips_sbc"/>
        <param name="caller-id-in-from" value="true"/>
    </gateway>
</include>

Я ожидаю увидеть в логах

2019-07-09 15:05:19.844109 [DEBUG] switch_ivr.c:2224 (sofia/internal/3236549202) State Change CS_EXCHANGE_MEDIA -> CS_ROUTING
2019-07-09 15:05:19.844109 [NOTICE] switch_ivr.c:2231 Transfer sofia/internal/3236549202 to XML[9102@transfer_call]
2019-07-09 15:05:19.844109 [DEBUG] switch_ivr_play_say.c:1941 done playing file local_stream://moh
2019-07-09 15:05:19.864113 [DEBUG] switch_ivr_bridge.c:917 BRIDGE THREAD DONE [sofia/internal/3236549203@sbc2.profintel.ru]
2019-07-09 15:05:19.864113 [DEBUG] switch_channel.c:2073 (sofia/internal/3236549203@sbc2.profintel.ru) Callstate Change HELD -> UNHELD
2019-07-09 15:05:19.864113 [DEBUG] switch_cpp.cpp:731 CoreSession::hangup
2019-07-09 15:05:19.864113 [NOTICE] switch_cpp.cpp:733 Hangup sofia/internal/3236549203@sbc2.profintel.ru [CS_EXECUTE] [NORMAL_CLEARING]
2019-07-09 15:05:19.864113 [DEBUG] switch_cpp.cpp:1187 sofia/internal/3236549203@sbc2.profintel.ru destroy/unlink session from object
2019-07-09 15:05:19.864113 [DEBUG] switch_core_session.c:2905 sofia/internal/3236549203@sbc2.profintel.ru skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
2019-07-09 15:05:19.864113 [DEBUG] switch_core_state_machine.c:650 (sofia/internal/3236549203@sbc2.profintel.ru) State EXECUTE going to sleep
2019-07-09 15:05:19.864113 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/3236549203@sbc2.profintel.ru) Running State Change CS_HANGUP (Cur 2 Tot 314)
2019-07-09 15:05:19.864113 [DEBUG] switch_core_state_machine.c:847 (sofia/internal/3236549203@sbc2.profintel.ru) Callstate Change UNHELD -> HANGUP
2019-07-09 15:05:19.864113 [DEBUG] switch_core_state_machine.c:849 (sofia/internal/3236549203@sbc2.profintel.ru) State HANGUP
2019-07-09 15:05:19.864113 [DEBUG] mod_sofia.c:454 sofia/internal/3236549203@sbc2.profintel.ru Overriding SIP cause 480 with 404 from the other leg
2019-07-09 15:05:19.864113 [DEBUG] mod_sofia.c:460 Channel sofia/internal/3236549203@sbc2.profintel.ru hanging up, cause: NORMAL_CLEARING
2019-07-09 15:05:19.864113 [DEBUG] mod_sofia.c:513 Sending BYE to sofia/internal/3236549203@sbc2.profintel.ru
2019-07-09 15:05:19.864113 [DEBUG] switch_core_state_machine.c:60 sofia/internal/3236549203@sbc2.profintel.ru Standard HANGUP, cause: NORMAL_CLEARING
2019-07-09 15:05:19.864113 [DEBUG] switch_core_state_machine.c:849 (sofia/internal/3236549203@sbc2.profintel.ru) State HANGUP going to sleep
2019-07-09 15:05:19.864113 [DEBUG] switch_ivr_bridge.c:917 BRIDGE THREAD DONE [sofia/internal/3236549202]
2019-07-09 15:05:19.864113 [DEBUG] switch_core_state_machine.c:653 (sofia/internal/3236549202) State EXCHANGE_MEDIA going to sleep
2019-07-09 15:05:19.864113 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/3236549202) Running State Change CS_ROUTING (Cur 2 Tot 314)
2019-07-09 15:05:19.864113 [DEBUG] switch_core_state_machine.c:643 (sofia/internal/3236549202) State ROUTING
2019-07-09 15:05:19.864113 [DEBUG] mod_sofia.c:154 sofia/internal/3236549202 SOFIA ROUTING
2019-07-09 15:05:19.864113 [DEBUG] switch_core_state_machine.c:236 sofia/internal/3236549202 Standard ROUTING
2019-07-09 15:05:19.864113 [INFO] mod_dialplan_xml.c:637 Processing Aleksandr  <9203>->9102 in context transfer_call
Dialplan: sofia/internal/3236549202 parsing [transfer_call->internal] continue=false
Dialplan: sofia/internal/3236549202 Regex (PASS) [internal] destination_number(9102) =~ /^.*$/ break=on-false
Dialplan: sofia/internal/3236549202 Action lua(/usr/local/freeswitch/lib/transfer.lua) 
Dialplan: sofia/internal/3236549202 Action transfer(${destination_number} XML in-opensips_sbc) 
2019-07-09 15:05:19.864113 [INFO] switch_channel.c:3174 sofia/internal/3236549202 Flipping CID from "Aleksandr " <9203> to "9202" <9202>
2019-07-09 15:05:19.864113 [DEBUG] switch_core_state_machine.c:286 (sofia/internal/3236549202) State Change CS_ROUTING -> CS_EXECUTE
2019-07-09 15:05:19.864113 [DEBUG] switch_core_state_machine.c:643 (sofia/internal/3236549202) State ROUTING going to sleep
2019-07-09 15:05:19.864113 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/3236549202) Running State Change CS_EXECUTE (Cur 2 Tot 314)
2019-07-09 15:05:19.864113 [DEBUG] switch_core_state_machine.c:650 (sofia/internal/3236549202) State EXECUTE
2019-07-09 15:05:19.864113 [DEBUG] mod_sofia.c:209 sofia/internal/3236549202 SOFIA EXECUTE
2019-07-09 15:05:19.864113 [DEBUG] switch_core_state_machine.c:328 sofia/internal/3236549202 Standard EXECUTE
EXECUTE [depth=0] sofia/internal/3236549202 lua(/usr/local/freeswitch/lib/transfer.lua)

Но фактическое видно

2019-07-09 15:34:15.644127 [DEBUG] switch_ivr.c:2224 (sofia/internal/3236549202@sbc2.profintel.ru) State Change CS_EXECUTE -> CS_ROUTING
2019-07-09 15:34:15.644127 [NOTICE] switch_ivr.c:2231 Transfer sofia/internal/3236549202@sbc2.profintel.ru to XML[9102@in-opensips_sbc]
2019-07-09 15:34:15.664114 [DEBUG] switch_ivr_play_say.c:1941 done playing file local_stream://moh
2019-07-09 15:34:15.664114 [DEBUG] switch_ivr_bridge.c:917 BRIDGE THREAD DONE [sofia/internal/3236549203@10.227.228.168]
2019-07-09 15:34:15.664114 [DEBUG] switch_channel.c:2073 (sofia/internal/3236549203@10.227.228.168) Callstate Change HELD -> UNHELD
2019-07-09 15:34:15.664114 [NOTICE] switch_ivr_bridge.c:1034 Hangup sofia/internal/3236549203@10.227.228.168 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
2019-07-09 15:34:15.664114 [DEBUG] switch_core_state_machine.c:653 (sofia/internal/3236549203@10.227.228.168) State EXCHANGE_MEDIA going to sleep
2019-07-09 15:34:15.664114 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/3236549203@10.227.228.168) Running State Change CS_HANGUP (Cur 2 Tot 331)
2019-07-09 15:34:15.664114 [DEBUG] switch_core_state_machine.c:847 (sofia/internal/3236549203@10.227.228.168) Callstate Change UNHELD -> HANGUP
2019-07-09 15:34:15.664114 [DEBUG] switch_core_state_machine.c:849 (sofia/internal/3236549203@10.227.228.168) State HANGUP
2019-07-09 15:34:15.664114 [DEBUG] mod_sofia.c:460 Channel sofia/internal/3236549203@10.227.228.168 hanging up, cause: NORMAL_CLEARING
2019-07-09 15:34:15.664114 [DEBUG] mod_sofia.c:513 Sending BYE to sofia/internal/3236549203@10.227.228.168
2019-07-09 15:34:15.664114 [DEBUG] switch_core_state_machine.c:60 sofia/internal/3236549203@10.227.228.168 Standard HANGUP, cause: NORMAL_CLEARING
2019-07-09 15:34:15.664114 [DEBUG] switch_core_state_machine.c:849 (sofia/internal/3236549203@10.227.228.168) State HANGUP going to sleep
2019-07-09 15:34:15.664114 [DEBUG] switch_core_state_machine.c:619 (sofia/internal/3236549203@10.227.228.168) State Change CS_HANGUP -> CS_REPORTING
2019-07-09 15:34:15.664114 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/3236549203@10.227.228.168) Running State Change CS_REPORTING (Cur 2 Tot 331)
2019-07-09 15:34:15.664114 [DEBUG] switch_core_state_machine.c:935 (sofia/internal/3236549203@10.227.228.168) State REPORTING
2019-07-09 15:34:15.664114 [DEBUG] switch_core_state_machine.c:174 sofia/internal/3236549203@10.227.228.168 Standard REPORTING, cause: NORMAL_CLEARING
2019-07-09 15:34:15.664114 [DEBUG] switch_core_state_machine.c:935 (sofia/internal/3236549203@10.227.228.168) State REPORTING going to sleep
2019-07-09 15:34:15.664114 [DEBUG] switch_core_state_machine.c:610 (sofia/internal/3236549203@10.227.228.168) State Change CS_REPORTING -> CS_DESTROY
2019-07-09 15:34:15.664114 [DEBUG] switch_core_session.c:1726 Session 331 (sofia/internal/3236549203@10.227.228.168) Locked, Waiting on external entities
2019-07-09 15:34:15.684133 [DEBUG] switch_ivr_bridge.c:917 BRIDGE THREAD DONE [sofia/internal/3236549202@sbc2.profintel.ru]
2019-07-09 15:34:15.684133 [NOTICE] switch_core_session.c:1744 Session 331 (sofia/internal/3236549203@10.227.228.168) Ended
2019-07-09 15:34:15.684133 [NOTICE] switch_core_session.c:1748 Close Channel sofia/internal/3236549203@10.227.228.168 [CS_DESTROY]
2019-07-09 15:34:15.684133 [DEBUG] switch_cpp.cpp:731 CoreSession::hangup
2019-07-09 15:34:15.684133 [NOTICE] switch_cpp.cpp:733 Hangup sofia/internal/3236549202@sbc2.profintel.ru [CS_ROUTING] [NORMAL_CLEARING]
2019-07-09 15:34:15.684133 [DEBUG] switch_core_state_machine.c:738 (sofia/internal/3236549203@10.227.228.168) Running State Change CS_DESTROY (Cur 1 Tot 331)
2019-07-09 15:34:15.684133 [DEBUG] switch_core_state_machine.c:748 (sofia/internal/3236549203@10.227.228.168) State DESTROY
2019-07-09 15:34:15.684133 [DEBUG] mod_sofia.c:365 sofia/internal/3236549203@10.227.228.168 SOFIA DESTROY
2019-07-09 15:34:15.684133 [DEBUG] switch_core_state_machine.c:181 sofia/internal/3236549203@10.227.228.168 Standard DESTROY
2019-07-09 15:34:15.684133 [DEBUG] switch_core_state_machine.c:748 (sofia/internal/3236549203@10.227.228.168) State DESTROY going to sleep
2019-07-09 15:34:15.684133 [DEBUG] switch_cpp.cpp:1187 sofia/internal/3236549202@sbc2.profintel.ru destroy/unlink session from object
2019-07-09 15:34:15.684133 [DEBUG] switch_core_session.c:2905 sofia/internal/3236549202@sbc2.profintel.ru skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
2019-07-09 15:34:15.684133 [DEBUG] switch_core_state_machine.c:650 (sofia/internal/3236549202@sbc2.profintel.ru) State EXECUTE going to sleep
2019-07-09 15:34:15.684133 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/3236549202@sbc2.profintel.ru) Running State Change CS_HANGUP (Cur 1 Tot 331)
2019-07-09 15:34:15.684133 [DEBUG] switch_core_state_machine.c:847 (sofia/internal/3236549202@sbc2.profintel.ru) Callstate Change ACTIVE -> HANGUP
2019-07-09 15:34:15.684133 [DEBUG] switch_core_state_machine.c:849 (sofia/internal/3236549202@sbc2.profintel.ru) State HANGUP
2019-07-09 15:34:15.684133 [DEBUG] mod_sofia.c:460 Channel sofia/internal/3236549202@sbc2.profintel.ru hanging up, cause: NORMAL_CLEARING
2019-07-09 15:34:15.684133 [DEBUG] mod_sofia.c:513 Sending BYE to sofia/internal/3236549202@sbc2.profintel.ru
2019-07-09 15:34:15.684133 [DEBUG] switch_core_state_machine.c:60 sofia/internal/3236549202@sbc2.profintel.ru Standard HANGUP, cause: NORMAL_CLEARING
2019-07-09 15:34:15.684133 [DEBUG] switch_core_state_machine.c:849 (sofia/internal/3236549202@sbc2.profintel.ru) State HANGUP going to sleep
2019-07-09 15:34:15.684133 [DEBUG] switch_core_state_machine.c:619 (sofia/internal/3236549202@sbc2.profintel.ru) State Change CS_HANGUP -> CS_REPORTING
2019-07-09 15:34:15.684133 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/3236549202@sbc2.profintel.ru) Running State Change CS_REPORTING (Cur 1 Tot 331)
2019-07-09 15:34:15.684133 [DEBUG] switch_core_state_machine.c:935 (sofia/internal/3236549202@sbc2.profintel.ru) State REPORTING
2019-07-09 15:34:15.684133 [DEBUG] switch_core_state_machine.c:174 sofia/internal/3236549202@sbc2.profintel.ru Standard REPORTING, cause: NORMAL_CLEARING
2019-07-09 15:34:15.684133 [DEBUG] switch_core_state_machine.c:935 (sofia/internal/3236549202@sbc2.profintel.ru) State REPORTING going to sleep
2019-07-09 15:34:15.684133 [DEBUG] switch_core_state_machine.c:610 (sofia/internal/3236549202@sbc2.profintel.ru) State Change CS_REPORTING -> CS_DESTROY
2019-07-09 15:34:15.684133 [DEBUG] switch_core_session.c:1726 Session 330 (sofia/internal/3236549202@sbc2.profintel.ru) Locked, Waiting on external entities
2019-07-09 15:34:15.684133 [NOTICE] switch_core_session.c:1744 Session 330 (sofia/internal/3236549202@sbc2.profintel.ru) Ended
2019-07-09 15:34:15.684133 [NOTICE] switch_core_session.c:1748 Close Channel sofia/internal/3236549202@sbc2.profintel.ru [CS_DESTROY]
2019-07-09 15:34:15.684133 [DEBUG] switch_core_state_machine.c:738 (sofia/internal/3236549202@sbc2.profintel.ru) Running State Change CS_DESTROY (Cur 0 Tot 331)
2019-07-09 15:34:15.684133 [DEBUG] switch_core_state_machine.c:748 (sofia/internal/3236549202@sbc2.profintel.ru) State DESTROY
2019-07-09 15:34:15.684133 [DEBUG] mod_sofia.c:365 sofia/internal/3236549202@sbc2.profintel.ru SOFIA DESTROY
2019-07-09 15:34:15.684133 [DEBUG] switch_core_state_machine.c:181 sofia/internal/3236549202@sbc2.profintel.ru Standard DESTROY
2019-07-09 15:34:15.684133 [DEBUG] switch_core_state_machine.c:748 (sofia/internal/3236549202@sbc2.profintel.ru) State DESTROY going to sleep
...