[Freeswitch-users] Problem with inbound calls ringing for multiple extensions
Michael Collins
msc at freeswitch.org
Mon Apr 20 12:24:13 PDT 2009
On Mon, Apr 20, 2009 at 12:16 PM, winday <winday0215 at yahoo.com> wrote:
>
> 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-->
You need to put winday in parens:
<condition field="destination_number" expression="^(winday)$">
The parentheses will "capture" the value "winday" and put it in the variable
$1. Without them the variable $1 will never have any value.
-MC
> <!--<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.
>
>
> _______________________________________________
> 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/20090420/bfb0005a/attachment-0002.html
More information about the FreeSWITCH-users
mailing list