[Freeswitch-users] Problem with inbound calls ringing for multiple extensions

winday winday0215 at yahoo.com
Mon Apr 20 12:16:29 PDT 2009


I want to config a system use extension 1001-1005. When a call come in, all
these five extensions will ring together. But when one picks up the
call,others will stop to ring. 
Right now, I can config all the inbound calls ring on extension 1001. I want
to add other extensions in.

The configuration in public.xml is like this:

<extension name="teliax">   <!-- your provider or any name you'd like to
call it -->
    <condition field="destination_number" expression="^winday$">  <!-- your
DID for this gateway-->
       <!--<action application="transfer" data="$1 XML default"/>-->
      <!---->
    <action application="transfer" data="$1 XML default"/>
   
    </condition>
   </extension>

And the configuration in default.xml is as following:

 <extension name="Inbound">
    <!-- EDIT: change the DID to your inbound DID (DN) number     -->
    <!--       Note - you can use regx pattern matching if needed -->
    <condition field="destination_number" expression="^winday$">
     <!-- If you are going to ring multiple extensions you should send back
-->
     <!-- a 180 ringing message to the provider.                           
-->
    <action application="ring_ready" />
 								
     <!-- Set the maximum amount of time you want to ring the extensions
(seconds) -->
      <action application="set" data="call_timeout=20"/>
     

   
 	  <!-- Sample single extension bridge -->
       <action application="bridge"
data="sofia/sip/1001%${domain_name},sofia/sip/1002%${domain_name},sofia/sip/1003%${domain_name},sofia/sip/1004%${domain_name},sofia/sip/1005%${domain_name},sofia/sip/1006%${domain_name}"/>				
   
     <!-- No one answered so launch the answering machine application -->
     <action application="javascript"
data="/usr/local/freeswitch/scripts/answermachine.js"/>
   
    </condition>
   </extension>

I got this log from my freeswitch console:

2009-04-20 15:09:56 [NOTICE] switch_channel.c:592 switch_channel_set_name()
New Channel sofia/external/3521111111 at 8.17.37.23
[d5d30fce-2dde-11de-8a55-e3aa5c861d72]
2009-04-20 15:09:56 [INFO] mod_dialplan_xml.c:252 dialplan_hunt() Processing
Cell Phone   FL->winday in context public
2009-04-20 15:09:56 [NOTICE] switch_ivr.c:1345 switch_ivr_session_transfer()
Transfer sofia/external/3521111111 at 8.17.37.23 to XML[$1 at default]
2009-04-20 15:09:56 [INFO] mod_dialplan_xml.c:252 dialplan_hunt() Processing
Cell Phone   FL->$1 in context default
2009-04-20 15:09:56 [NOTICE] switch_ivr.c:1345 switch_ivr_session_transfer()
Transfer sofia/external/3521111111 at 8.17.37.23 to enum[$1 at default]
2009-04-20 15:09:56 [INFO] switch_core_state_machine.c:129
switch_core_standard_on_routing() No Route, Aborting
2009-04-20 15:09:56 [NOTICE] switch_core_state_machine.c:130
switch_core_standard_on_routing() Hangup
sofia/external/3521111111 at 8.17.37.23 [CS_ROUTING] [NO_ROUTE_DESTINATION]
2009-04-20 15:09:56 [NOTICE] switch_core_session.c:1019
switch_core_session_thread() Session 21
(sofia/external/3521111111 at 8.17.37.23) Ended
2009-04-20 15:09:56 [NOTICE] switch_core_session.c:1021
switch_core_session_thread() Close Channel
sofia/external/3521111111 at 8.17.37.23 [CS_DONE]

Can anyone tell me what the problem is?

-- 
View this message in context: http://www.nabble.com/Problem-with-inbound-calls-ringing-for-multiple-extensions-tp23143108p23143108.html
Sent from the Freeswitch-users mailing list archive at Nabble.com.





More information about the FreeSWITCH-users mailing list