<div class="gmail_quote">On Mon, Apr 20, 2009 at 12:16 PM, winday <span dir="ltr"><<a href="mailto:winday0215@yahoo.com">winday0215@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I want to config a system use extension 1001-1005. When a call come in, all<br>
these five extensions will ring together. But when one picks up the<br>
call,others will stop to ring.<br>
Right now, I can config all the inbound calls ring on extension 1001. I want<br>
to add other extensions in.<br>
<br>
The configuration in public.xml is like this:<br>
<br>
<extension name="teliax"> <!-- your provider or any name you'd like to<br>
call it --><br>
<condition field="destination_number" expression="^winday$"> <!-- your<br>
DID for this gateway--></blockquote><div><br>You need to put winday in parens:<br> <condition field="destination_number" expression="^(winday)$"><br> <br>The parentheses will "capture" the value "winday" and put it in the variable $1. Without them the variable $1 will never have any value.<br>
-MC<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<!--<action application="transfer" data="$1 XML default"/>--><br>
<!----><br>
<action application="transfer" data="$1 XML default"/><br>
<br>
</condition><br>
</extension><br>
<br>
And the configuration in default.xml is as following:<br>
<br>
<extension name="Inbound"><br>
<!-- EDIT: change the DID to your inbound DID (DN) number --><br>
<!-- Note - you can use regx pattern matching if needed --><br>
<condition field="destination_number" expression="^winday$"><br>
<!-- If you are going to ring multiple extensions you should send back<br>
--><br>
<!-- a 180 ringing message to the provider.<br>
--><br>
<action application="ring_ready" /><br>
<br>
<!-- Set the maximum amount of time you want to ring the extensions<br>
(seconds) --><br>
<action application="set" data="call_timeout=20"/><br>
<br>
<br>
<br>
<!-- Sample single extension bridge --><br>
<action application="bridge"<br>
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}"/><br>
<br>
<!-- No one answered so launch the answering machine application --><br>
<action application="javascript"<br>
data="/usr/local/freeswitch/scripts/answermachine.js"/><br>
<br>
</condition><br>
</extension><br>
<br>
I got this log from my freeswitch console:<br>
<br>
2009-04-20 15:09:56 [NOTICE] switch_channel.c:592 switch_channel_set_name()<br>
New Channel sofia/external/<a href="mailto:3521111111@8.17.37.23">3521111111@8.17.37.23</a><br>
[d5d30fce-2dde-11de-8a55-e3aa5c861d72]<br>
2009-04-20 15:09:56 [INFO] mod_dialplan_xml.c:252 dialplan_hunt() Processing<br>
Cell Phone FL->winday in context public<br>
2009-04-20 15:09:56 [NOTICE] switch_ivr.c:1345 switch_ivr_session_transfer()<br>
Transfer sofia/external/<a href="mailto:3521111111@8.17.37.23">3521111111@8.17.37.23</a> to XML[$1@default]<br>
2009-04-20 15:09:56 [INFO] mod_dialplan_xml.c:252 dialplan_hunt() Processing<br>
Cell Phone FL->$1 in context default<br>
2009-04-20 15:09:56 [NOTICE] switch_ivr.c:1345 switch_ivr_session_transfer()<br>
Transfer sofia/external/<a href="mailto:3521111111@8.17.37.23">3521111111@8.17.37.23</a> to enum[$1@default]<br>
2009-04-20 15:09:56 [INFO] switch_core_state_machine.c:129<br>
switch_core_standard_on_routing() No Route, Aborting<br>
2009-04-20 15:09:56 [NOTICE] switch_core_state_machine.c:130<br>
switch_core_standard_on_routing() Hangup<br>
sofia/external/<a href="mailto:3521111111@8.17.37.23">3521111111@8.17.37.23</a> [CS_ROUTING] [NO_ROUTE_DESTINATION]<br>
2009-04-20 15:09:56 [NOTICE] switch_core_session.c:1019<br>
switch_core_session_thread() Session 21<br>
(sofia/external/<a href="mailto:3521111111@8.17.37.23">3521111111@8.17.37.23</a>) Ended<br>
2009-04-20 15:09:56 [NOTICE] switch_core_session.c:1021<br>
switch_core_session_thread() Close Channel<br>
sofia/external/<a href="mailto:3521111111@8.17.37.23">3521111111@8.17.37.23</a> [CS_DONE]<br>
<br>
Can anyone tell me what the problem is?<br>
<br>
--<br>
View this message in context: <a href="http://www.nabble.com/Problem-with-inbound-calls-ringing-for-multiple-extensions-tp23143108p23143108.html" target="_blank">http://www.nabble.com/Problem-with-inbound-calls-ringing-for-multiple-extensions-tp23143108p23143108.html</a><br>
Sent from the Freeswitch-users mailing list archive at Nabble.com.<br>
<br>
<br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br>