[Freeswitch-users] help! did mapping to extension 1002 not working

netandtech bill_vus at hotmail.com
Fri Dec 20 20:16:14 MSK 2013


I wand to achieve to incoming calls from did numbers to an extension

So this is what I have with no success.

 

In the default.xml

 

 

  <extension name="test_did">

     <condition field="destination_number" expression="^(2281118003)$">

       <action application="set" data="dialed_ext=$1"/>

     </condition>

     <condition field="destination_number"
expression="^${caller_id_number}$">

       <action application="set"
data="voicemail_authorized=${sip_authorized}"/>

       <action application="answer"/>

       <action application="sleep" data="1000"/>

       <action application="voicemail" data="check default $${domain}
${dialed_ext}"/>

       <anti-action application="ring_ready"/>

       <anti-action application="set" data="call_timeout=10"/>

       <anti-action application="set" data="hangup_after_bridge=true"/>

       <anti-action application="set" data="continue_on_fail=true"/>

       <anti-action application="bridge" data="user/1002@$${domain}"/>

       <anti-action application="answer"/>

       <anti-action application="sleep" data="1002"/>

       <anti-action application="voicemail" data="default $${domain}
${dialed_ext}"/>

     </condition>

   </extension>

  

In the public.xml

 

<extension name="test_did">

     <condition field="destination_number" expression="^(2281118003)$">

       <action application="transfer" data="1002 XML default"/>

     </condition>

   </extension>

 

And last I created a test.did.xml 

In freeswitch/conf/directory/default

 

With the following 

   <include>

  <user id="test_did">

    <params>

      <param name="password" value="$${default_password}"/>

      <param name="vm-password" value="test_did"/>

    </params>

    <variables>

      <variable name="toll_allow" value="domestic,international,local"/>

      <variable name="accountcode" value="test_did"/>

      <variable name="user_context" value="default"/>

      <variable name="effective_caller_id_name" value="Extension test_did"/>

      <variable name="effective_caller_id_number" value="2281118003"/>

      <variable name="outbound_caller_id_name"
value="$${outbound_caller_name}"/>

      <variable name="outbound_caller_id_number"
value="$${outbound_caller_id}"/>

      <variable name="callgroup" value="techsupport"/>

    </variables>

  </user>

</include>

 

My log is the following 

2013-12-20 12:12:56.376409 [NOTICE] switch_channel.c:968 New Channel
sofia/internal/302281081619 at 109.68.164.21
[f80ee77e-6999-11e3-8083-11b99fb2bf0d]

2013-12-20 12:13:06.436421 [WARNING] switch_core_state_machine.c:514
f80ee77e-6999-11e3-8083-11b99fb2bf0d
sofia/internal/302281081619 at 109.68.164.21 Abandoned

2013-12-20 12:13:06.436421 [NOTICE] switch_core_state_machine.c:517 Hangup
sofia/internal/302281081619 at 109.68.164.21 [CS_NEW] [WRONG_CALL_STATE]

2013-12-20 12:13:06.436421 [NOTICE] switch_core_session.c:1506 Session 9
(sofia/internal/302281081619 at 109.68.164.21) Ended

2013-12-20 12:13:06.436421 [NOTICE] switch_core_session.c:1510 Close Channel
sofia/internal/302281081619 at 109.68.164.21 [CS_DESTROY]

 

 

 

 

I was excepting a ring to my extension 1002 normally when someone calls the
did number.. 

The did number should be mapped normally to the gateway account .. and not
to my freeswitch server with extension 1002.. I am little confused here..
but I have left it normal setup for did number.

Best regards

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20131220/102a4232/attachment-0001.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list