[Freeswitch-users] route question

Vallimamod Abdullah vma at vallimamod.org
Thu Oct 19 13:58:20 UTC 2017


Hi,

- According to your log, you are calling ext 1000 and not 1001:

> 2017-10-18 21:49:59.913457 [INFO] mod_dialplan_xml.c:637 Processing 1000 <1000>->1000 in context public

- If you want to use the regex backreference $1 in an action, you must add a group match in the condition: expression="^(1001)$". If not, it will be taken literally: in your dialplan, you are trying to call "$1" did.

Best Regards,
-- 
Vallimamod Abdullah
SIP Solutions
vma at sipsolutions.fr
.

> On 19 Oct 2017, at 04:09, alex <hiastar_alex at 163.com> wrote:
> 
> Hello:
> I want to call 1001 by inputting 1001 through this route.
> <extension name="outgoing">
>       <condition field="destination_number" expression="^1001$">
>           <action application="bridge" data="freetdm/wp1/a/$1"/>
>       </condition>
> </extension>
> But it didn't through the route.
> Why is that? 
> What should i do?
> This are CLI log:
> 2017-10-18 21:49:59.913457 [NOTICE] switch_channel.c:1104 New Channel sofia/internal/1000 at 192.168.1.70 [714d7752-b04e-4141-b36e-6fbd37f451ae]
> 2017-10-18 21:49:59.913457 [INFO] mod_dialplan_xml.c:637 Processing 1000 <1000>->1000 in context public
> 2017-10-18 21:49:59.913457 [NOTICE] switch_ivr.c:2201 Transfer sofia/internal/1000 at 192.168.1.70 to XML[1000 at default]
> 2017-10-18 21:49:59.913457 [INFO] mod_dialplan_xml.c:637 Processing 1000 <1000>->1000 in context default
> 2017-10-18 21:49:59.913457 [NOTICE] switch_channel.c:1104 New Channel FreeTDM/1:1/$1 [fb3597b2-86e4-4911-b06e-50c584501a36]
> 2017-10-18 21:49:59.913457 [INFO] ftmod_sangoma_isdn_stack_out.c:62 [s1c1][1:1] Outgoing call: Called No:[$1] Calling No:[1000]
> 2017-10-18 21:49:59.913457 [INFO] ftmod_sangoma_isdn_stack_out.c:79 [s1c1][1:1] Sending SETUP (suId:1 suInstId:1 spInstId:0 dchan:1 ces:0)
> 2017-10-18 21:49:59.913457 [INFO] ftmod_sangoma_isdn_stack_rcv.c:96 [s2c1][2:1] Received SETUP (suId:1 suInstId:0 spInstId:2)
> 2017-10-18 21:50:03.893455 [WARNING] ftmod_sangoma_isdn_stack_rcv.c:862 [SNGISDN Q931] s2: Protocol: Unknown Event Code(2): Incomp Msg(276)
> 2017-10-18 21:50:07.893455 [INFO] ftmod_sangoma_isdn_stack_rcv.c:267 [s1c1][1:1] Received RELEASE/RELEASE COMPLETE (suId:1 suInstId:1 spInstId:1)
> 2017-10-18 21:50:07.893455 [NOTICE] mod_freetdm.c:2733 Hangup FreeTDM/1:1/$1 [CS_CONSUME_MEDIA] [NO_USER_RESPONSE]
> 2017-10-18 21:50:07.893455 [INFO] ftmod_sangoma_isdn_stack_rcv.c:267 [s2c1][2:1] Received RELEASE/RELEASE COMPLETE (suId:1 suInstId:0 spInstId:2)
> 2017-10-18 21:50:07.893455 [INFO] ftmod_sangoma_isdn_stack_hndl.c:153 [s2c1][2:1] Incoming call: Called No:[$1] Calling No:[1000]
> 2017-10-18 21:50:07.893455 [NOTICE] switch_channel.c:1104 New Channel FreeTDM/2:1/$1 [5b166784-ad11-4117-a352-889c42052a3e]
> 2017-10-18 21:50:07.893455 [NOTICE] mod_freetdm.c:2733 Hangup FreeTDM/2:1/$1 [CS_INIT] [NO_USER_RESPONSE]
> 2017-10-18 21:50:07.893455 [NOTICE] switch_core_session.c:1731 Session 3 (FreeTDM/2:1/$1) Ended
> 2017-10-18 21:50:07.893455 [NOTICE] switch_core_session.c:1735 Close Channel FreeTDM/2:1/$1 [CS_DESTROY]
> 2017-10-18 21:50:07.893455 [NOTICE] switch_core_session.c:1731 Session 2 (FreeTDM/1:1/$1) Ended
> 2017-10-18 21:50:07.893455 [NOTICE] switch_core_session.c:1735 Close Channel FreeTDM/1:1/$1 [CS_DESTROY]
> 2017-10-18 21:50:07.893455 [INFO] mod_dptools.c:3508 Originate Failed.  Cause: NO_USER_RESPONSE
> 2017-10-18 21:50:07.893455 [NOTICE] switch_core_state_machine.c:385 sofia/internal/1000 at 192.168.1.70 has executed the last dialplan instruction, hanging up.
> 2017-10-18 21:50:07.893455 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/internal/1000 at 192.168.1.70 [CS_EXECUTE] [NORMAL_CLEARING]
> 2017-10-18 21:50:07.893455 [NOTICE] switch_core_session.c:1731 Session 1 (sofia/internal/1000 at 192.168.1.70) Ended
> 2017-10-18 21:50:07.893455 [NOTICE] switch_core_session.c:1735 Close Channel sofia/internal/1000 at 192.168.1.70 [CS_DESTROY]





More information about the FreeSWITCH-users mailing list