<div class="gmail_quote">On Mon, Apr 20, 2009 at 12:16 PM, winday <span dir="ltr">&lt;<a href="mailto:winday0215@yahoo.com">winday0215@yahoo.com</a>&gt;</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>
&lt;extension name=&quot;teliax&quot;&gt;   &lt;!-- your provider or any name you&#39;d like to<br>
call it --&gt;<br>
    &lt;condition field=&quot;destination_number&quot; expression=&quot;^winday$&quot;&gt;  &lt;!-- your<br>
DID for this gateway--&gt;</blockquote><div><br>You need to put winday in parens:<br>   &lt;condition field=&quot;destination_number&quot; expression=&quot;^(winday)$&quot;&gt;<br> <br>The parentheses will &quot;capture&quot; the value &quot;winday&quot; 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>
       &lt;!--&lt;action application=&quot;transfer&quot; data=&quot;$1 XML default&quot;/&gt;--&gt;<br>
      &lt;!----&gt;<br>
    &lt;action application=&quot;transfer&quot; data=&quot;$1 XML default&quot;/&gt;<br>
<br>
    &lt;/condition&gt;<br>
   &lt;/extension&gt;<br>
<br>
And the configuration in default.xml is as following:<br>
<br>
 &lt;extension name=&quot;Inbound&quot;&gt;<br>
    &lt;!-- EDIT: change the DID to your inbound DID (DN) number     --&gt;<br>
    &lt;!--       Note - you can use regx pattern matching if needed --&gt;<br>
    &lt;condition field=&quot;destination_number&quot; expression=&quot;^winday$&quot;&gt;<br>
     &lt;!-- If you are going to ring multiple extensions you should send back<br>
--&gt;<br>
     &lt;!-- a 180 ringing message to the provider.<br>
--&gt;<br>
    &lt;action application=&quot;ring_ready&quot; /&gt;<br>
<br>
     &lt;!-- Set the maximum amount of time you want to ring the extensions<br>
(seconds) --&gt;<br>
      &lt;action application=&quot;set&quot; data=&quot;call_timeout=20&quot;/&gt;<br>
<br>
<br>
<br>
          &lt;!-- Sample single extension bridge --&gt;<br>
       &lt;action application=&quot;bridge&quot;<br>
data=&quot;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}&quot;/&gt;<br>
<br>
     &lt;!-- No one answered so launch the answering machine application --&gt;<br>
     &lt;action application=&quot;javascript&quot;<br>
data=&quot;/usr/local/freeswitch/scripts/answermachine.js&quot;/&gt;<br>
<br>
    &lt;/condition&gt;<br>
   &lt;/extension&gt;<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-&gt;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-&gt;$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>