Can you pastebin the relevant dp entries from both public.xml and default.xml? It will be easier to troubleshoot that. Be sure also to make a test call and capture the debug output. Make sure that you turn on debugging by pressing F8 or typing "console loglevel debug" at the CLI... -MC On Mon, Apr 20, 2009 at 12:35 PM, winday <winday0215@yahoo.com> wrote:
I use () in public.xml and I got this: 2009-04-20 15:33:05 [NOTICE] switch_channel.c:592 switch_channel_set_name() New Channel sofia/external/3521111111@8.17.37.23 [11d6eeca-2de2-11de-b7d7-f5179b281d4d] 2009-04-20 15:33:05 [INFO] mod_dialplan_xml.c:252 dialplan_hunt() Processing Cell Phone FL->winday in context public 2009-04-20 15:33:05 [NOTICE] switch_ivr.c:1345 switch_ivr_session_transfer() Transfer sofia/external/3521111111@8.17.37.23 to XML[winday0215@default] 2009-04-20 15:33:05 [INFO] mod_dialplan_xml.c:252 dialplan_hunt() Processing Cell Phone FL->winday in context default 2009-04-20 15:33:05 [NOTICE] mod_sofia.c:1296 sofia_receive_message() Ring-Ready sofia/external/3521111111@8.17.37.23! 2009-04-20 15:33:05 [NOTICE] mod_dptools.c:414 ring_ready_function() Ring Ready sofia/external/3521111111@8.17.37.23! 2009-04-20 15:33:05 [ERR] mod_sofia.c:2493 sofia_outgoing_channel() Invalid Profile 2009-04-20 15:33:05 [NOTICE] mod_sofia.c:2622 sofia_outgoing_channel() Close Channel N/A [CS_NEW] 2009-04-20 15:33:05 [ERR] switch_ivr_originate.c:1483 switch_ivr_originate() Cannot create outgoing channel of type [sofia] cause: [DESTINATION_OUT_OF_ORDER] 2009-04-20 15:33:05 [INFO] mod_dptools.c:2036 audio_bridge_function() Originate Failed. Cause: DESTINATION_OUT_OF_ORDER 2009-04-20 15:33:05 [NOTICE] mod_dptools.c:2068 audio_bridge_function() Hangup sofia/external/3528713122@8.17.37.23 [CS_EXECUTE] [DESTINATION_OUT_OF_ORDER] 2009-04-20 15:33:05 [NOTICE] switch_core_session.c:1019 switch_core_session_thread() Session 3 (sofia/external/3521111111@8.17.37.23) Ended 2009-04-20 15:33:05 [NOTICE] switch_core_session.c:1021 switch_core_session_thread() Close Channel sofia/external/3521111111@8.17.37.23 [CS_DONE]
winday 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--> <!--<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@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@8.17.37.23 to XML[$1@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@8.17.37.23 to enum[$1@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@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@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@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-extens... Sent from the Freeswitch-users mailing list archive at Nabble.com.
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org