[Freeswitch-users] outbound route question

KSrigo ksrigo at gmail.com
Thu Oct 26 08:01:33 UTC 2017


Hi,

1. It seems your call is catched by another dialplan extension. Make sure once you transfer the call to the default context, your new extension is on the top of everything.

2. 
<extension name="outgoing">
      <condition field="destination_number" expression="^(100)$”>

This condition will never match your call. 

You have to do:
	-  <condition field="destination_number" expression="^(1001)$”>
	OR
	-  <condition field="destination_number" expression="^(100)”>

Srigo


> On Oct 18, 2017, at 5:45 AM, alex <hiastar_alex at 163.com> wrote:
> 
> I create two sip extension 1000 and 1001,i have to calls 1000 to 1001.
> This is my outbount route:
> <include>
> <context "name=default">
> <extension name="outgoing">
>       <condition field="destination_number" expression="^(100)$">
>          <action application="bridge" data="sofia/freetdm/wp1/a/$1"/>
>       </condition>
>     </extension>
> </context>
> </include>
> But it didn't take the route.
> Why is that? what should i do?
> This are CLI log:
> 2017-10-13 05:02:36.296708 [NOTICE] switch_channel.c:1104 New Channel sofia/internal/1000 at 192.168.1.70 [b12d303a-1f58-4731-b568-78e2b256c28b]
> 2017-10-13 05:02:36.316705 [INFO] mod_dialplan_xml.c:637 Processing 1000 <1000>->1234 in context public
> 2017-10-13 05:02:36.316705 [NOTICE] switch_ivr.c:2201 Transfer sofia/internal/1000 at 192.168.1.70 to XML[1001 at default]
> 2017-10-13 05:02:36.316705 [INFO] mod_dialplan_xml.c:637 Processing 1000 <1000>->1001 in context default
> 2017-10-13 05:02:36.316705 [CRIT] mod_dptools.c:1782 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
> 2017-10-13 05:02:36.316705 [CRIT] mod_dptools.c:1782 Open /usr/local/freeswitch/conf/vars.xml and change the default_password.
> 2017-10-13 05:02:36.316705 [CRIT] mod_dptools.c:1782 Once changed type 'reloadxml' at the console.
> 2017-10-13 05:02:36.316705 [CRIT] mod_dptools.c:1782 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
> 2017-10-13 05:02:46.336708 [INFO] switch_ivr_async.c:4273 Bound B-Leg: *1 execute_extension::dx XML features
> 2017-10-13 05:02:46.336708 [INFO] switch_ivr_async.c:4273 Bound B-Leg: *2 record_session::/usr/local/freeswitch/recordings/1000.2017-10-13-05-02-46.wav
> 2017-10-13 05:02:46.336708 [INFO] switch_ivr_async.c:4273 Bound B-Leg: *3 execute_extension::cf XML features
> 2017-10-13 05:02:46.336708 [INFO] switch_ivr_async.c:4273 Bound B-Leg: *4 execute_extension::att_xfer XML features
> 2017-10-13 05:02:46.336708 [NOTICE] switch_channel.c:1104 New Channel sofia/internal/1001 at 192.168.1.69:5060 [4e2e818f-98f5-461b-ad4c-ad34eb933191]
> 2017-10-13 05:02:46.336708 [NOTICE] switch_ivr_originate.c:2868 Cannot create outgoing channel of type [error] cause: [USER_NOT_REGISTERED]
> 2017-10-13 05:02:46.396708 [NOTICE] sofia.c:7391 Ring-Ready sofia/internal/1001 at 192.168.1.69:5060!
> 2017-10-13 05:02:46.396708 [INFO] switch_ivr_originate.c:1220 Sending early media
> 2017-10-13 05:02:46.416708 [NOTICE] sofia_media.c:92 Pre-Answer sofia/internal/1000 at 192.168.1.70!
> 2017-10-13 05:02:50.016708 [NOTICE] sofia.c:8474 Hangup sofia/internal/1000 at 192.168.1.70 [CS_EXECUTE] [ORIGINATOR_CANCEL]
> 2017-10-13 05:02:50.016708 [NOTICE] switch_ivr_originate.c:3629 Hangup sofia/internal/1001 at 192.168.1.69:5060 [CS_CONSUME_MEDIA] [ORIGINATOR_CANCEL]
> 2017-10-13 05:02:50.036718 [NOTICE] switch_ivr_originate.c:2868 Cannot create outgoing channel of type [user] cause: [ORIGINATOR_CANCEL]
> 2017-10-13 05:02:50.036718 [INFO] mod_dptools.c:3508 Originate Failed.  Cause: ORIGINATOR_CANCEL
> 2017-10-13 05:02:50.036718 [NOTICE] switch_core_session.c:1731 Session 2 (sofia/internal/1001 at 192.168.1.69:5060) Ended
> 2017-10-13 05:02:50.036718 [NOTICE] switch_core_session.c:1735 Close Channel sofia/internal/1001 at 192.168.1.69:5060 [CS_DESTROY]
> 2017-10-13 05:02:50.056713 [NOTICE] switch_core_session.c:1731 Session 1 (sofia/internal/1000 at 192.168.1.70) Ended
> 2017-10-13 05:02:50.056713 [NOTICE] switch_core_session.c:1735 Close Channel sofia/internal/1000 at 192.168.1.70 [CS_DESTROY]
> 
> Thanks for answer.
> 
> 
> 【网易自营|30天无忧退货】仅售同款价1/4!MUJI制造商“2017秋冬舒适家居拖鞋系列”限时仅34.9元>>   <http://you.163.com/item/detail?id=1165011&from=web_gg_mail_jiaobiao_9>    
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20171026/4f307c9d/attachment-0001.html>


More information about the FreeSWITCH-users mailing list