我在FreeSWITCH中注册了2个扩展程序,我也可以使用这两个扩展名登录。但是,当我试图将一个扩展到另一个扩展时,我在fs日志中收到USER_NOT_REGISTERED的错误。
我可以使用verto_contact dialed_user@dialer_domain
2016-06-09 11:00:19.896037 [INFO] mod_dialplan_xml.c:635 Processing FreeSWITCH User <1002>->1000 in context default
Dialplan: verto.rtc/1000 parsing [default->1000] continue=false
Dialplan: verto.rtc/1000 Regex (PASS) [1000] destination_number(1000) =~ /^(\d+)$/ break=on-false
Dialplan: verto.rtc/1000 Action bridge(${verto_contact ${dialed_user}@${dialed_domain}})
2016-06-09 11:00:19.896037 [DEBUG] switch_core_state_machine.c:216 (verto.rtc/1000) State Change CS_ROUTING -> CS_EXECUTE
2016-06-09 11:00:19.896037 [DEBUG] switch_core_session.c:1397 Send signal verto.rtc/1000 [BREAK]
2016-06-09 11:00:19.896037 [DEBUG] switch_core_state_machine.c:528 (verto.rtc/1000) State ROUTING going to sleep
2016-06-09 11:00:19.896037 [DEBUG] switch_core_state_machine.c:472 (verto.rtc/1000) Running State Change CS_EXECUTE
2016-06-09 11:00:19.896037 [DEBUG] switch_core_state_machine.c:535 (verto.rtc/1000) State EXECUTE
2016-06-09 11:00:19.896037 [DEBUG] mod_rtc.c:120 verto.rtc/1000 RTC EXECUTE
2016-06-09 11:00:19.896037 [DEBUG] switch_core_state_machine.c:258 verto.rtc/1000 Standard EXECUTE
EXECUTE verto.rtc/1000 bridge(error/user_not_registered)
2016-06-09 11:00:19.896037 [DEBUG] switch_ivr_originate.c:2124 Parsing global variables
2016-06-09 11:00:19.896037 [NOTICE] switch_ivr_originate.c:2759 Cannot create outgoing channel of type [error] cause: [USER_NOT_REGISTERED]
2016-06-09 11:00:19.896037 [DEBUG] switch_ivr_originate.c:3747 Originate Resulted in Error Cause: 606 [USER_NOT_REGISTERED]
2016-06-09 11:00:19.896037 [INFO] mod_dptools.c:3276 Originate Failed. Cause: USER_NOT_REGISTERED
2016-06-09 11:00:19.896037 [NOTICE] switch_channel.c:4749 Hangup verto.rtc/1000 [CS_EXECUTE] [USER_NOT_REGISTERED]
我的拨号方案:
<include>
<extension name="1000">
<condition field="destination_number" expression="^(\d+)$">
<action application="bridge" data="${verto_contact ${dialed_user}@${dialed_domain}}"/>
</condition>
</extension>
</include>
我还在default.xml中添加了这行,这是必需的:
<param name="dial-string" value="{^^:sip_invite_domain=${dialed_domain}:presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(*/${dialed_user}@${dialed_domain})},${verto_contact(${dialed_user}@${dialed_domain})}"/>
我做错了吗?
答案 0 :(得分:0)
经过长期审核,我能够解决这个问题。我创建的拨号方案存在问题。它没有在verto_contact中使用extension_number。所以,我在拨号方案中更改了1行。
更改了拨号方案:
<include>
<extension name="ext_call">
<condition field="destination_number" expression="^(\d+)$">
<action application="bridge" data="${verto_contact $1@X.X.X.X}"/>
</condition>
</extension>
</include>
感谢。