Hi,

looks like that the call is handled by another extension, please be sure to put your new extension before the part that is handling the default extension i.e. 1000 to 1009

i.e. before the below line:

    <extension name="Local_Extension">
      <condition field="destination_number" expression="^(10[01][0-9])$">

Thanks,
Ahmed Habiba.




From: alex <hiastar_alex@163.com>
Subject: [Freeswitch-users] outbound route question
Date: October 18, 2017 at 6:45:02 AM GMT+3
To: freeswitch-users@lists.freeswitch.org


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@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@192.168.1.70 to XML[1001@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@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@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@192.168.1.70!
2017-10-13 05:02:50.016708 [NOTICE] sofia.c:8474 Hangup sofia/internal/1000@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@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@192.168.1.69:5060) Ended
2017-10-13 05:02:50.036718 [NOTICE] switch_core_session.c:1735 Close Channel sofia/internal/1001@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@192.168.1.70) Ended
2017-10-13 05:02:50.056713 [NOTICE] switch_core_session.c:1735 Close Channel sofia/internal/1000@192.168.1.70 [CS_DESTROY]

Thanks for answer.