inbound ring group assistance
Hi All, I'm sure this kind of email has been answered a thousand times already, so feel free to point me to a working example. All I want is when a call from DID 17020000000 is received, for it to ring all users on a group. Internally I can dial 2003 and all the endpoints will ring, so I think the devices are in the right group and all. /usr/local/freeswitch/conf/dialplan/public/01_inbound_did.xml: <include> <extension name="techsupport"> <condition field="destination_number" expression="^17020000000$"> <action application="transfer" data="{ignore_early_media=true}2003"/> </condition> </extension> </include> /usr/local/freeswitch/conf/dialplan/default.xml: <extension name="techsupport"> <condition field="destination_number" expression="^2003$"> <action application="bridge" data="${group_call(techsupport@${domain_name})}"/> </condition> </extension> Here's an endpoint in the group that's setup: /usr/local/freeswitch/conf/directory/default/2604.xml: <include> <user id="2604"> <variable name="callgroup" value="techsupport"/> </variables> </user> </include> Here's trying to call the devices individually: /usr/local/freeswitch/conf/dialplan/default/homephone.xml <extension name="ring_simultaneously"> <condition field="destination_number" expression="^(2000)$"> <action application="bridge" data="{ignore_early_media=true}sofia/internal/2604@{domain_name},sofia/internal/2600@{domain_name}"/> </condition> </extension> tried this, too: /usr/local/freeswitch/conf/dialplan/public/01_inbound_did.xml <include> <extension name="techsupport"> <condition field="destination_number" expression="^17020000000$"> <action application="transfer" data="ring_simultaneously XML Default"/> </condition> </extension> </include> What am I missing and how off am I? Thanks!
you can’t add curly vars on transfer, thats probably failing: <action application="transfer" data="{ignore_early_media=true}2003”/> <action application="transfer" data="2003”/>
On Jul 24, 2016, at 6:17 PM, sean farrell <jungleboogie0@gmail.com> wrote:
Hi All,
I'm sure this kind of email has been answered a thousand times already, so feel free to point me to a working example.
All I want is when a call from DID 17020000000 is received, for it to ring all users on a group. Internally I can dial 2003 and all the endpoints will ring, so I think the devices are in the right group and all.
/usr/local/freeswitch/conf/dialplan/public/01_inbound_did.xml: <include> <extension name="techsupport"> <condition field="destination_number" expression="^17020000000$"> <action application="transfer" data="{ignore_early_media=true}2003"/> </condition> </extension> </include>
/usr/local/freeswitch/conf/dialplan/default.xml: <extension name="techsupport"> <condition field="destination_number" expression="^2003$"> <action application="bridge" data="${group_call(techsupport@${domain_name})}"/> </condition> </extension>
Here's an endpoint in the group that's setup:
/usr/local/freeswitch/conf/directory/default/2604.xml: <include> <user id="2604"> <variable name="callgroup" value="techsupport"/> </variables> </user> </include>
Here's trying to call the devices individually:
/usr/local/freeswitch/conf/dialplan/default/homephone.xml <extension name="ring_simultaneously"> <condition field="destination_number" expression="^(2000)$"> <action application="bridge" data="{ignore_early_media=true}sofia/internal/2604@{domain_name},sofia/internal/2600@{domain_name}"/> </condition> </extension>
tried this, too:
/usr/local/freeswitch/conf/dialplan/public/01_inbound_did.xml <include> <extension name="techsupport"> <condition field="destination_number" expression="^17020000000$"> <action application="transfer" data="ring_simultaneously XML Default"/> </condition> </extension> </include>
What am I missing and how off am I?
Thanks!
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.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
On 25 July 2016 at 08:29, Michael Jerris <mike@jerris.com> wrote:
<action application="transfer" data="2003”/>
Doing that I see this: 2016-07-25 16:09:29.519512 [NOTICE] switch_channel.c:1104 New Channel sofia/external/+17020002220@fl.gg [84fc3c63-2f60-4c83-aa0f-d5a45426bed3] 2016-07-25 16:09:29.519512 [INFO] mod_dialplan_xml.c:637 Processing +17020002220 <+17020002220>->17023024016 in context public 2016-07-25 16:09:29.539513 [NOTICE] switch_ivr.c:2167 Transfer sofia/external/+17020002220@fl.gg to XML[2003@public] 2016-07-25 16:09:29.539513 [INFO] mod_dialplan_xml.c:637 Processing +17020002220 <+17020002220>->2003 in context public 2016-07-25 16:09:29.539513 [NOTICE] switch_core_state_machine.c:385 sofia/external/+17020002220@fl.gg has executed the last dialplan instruction, hanging up. 2016-07-25 16:09:29.539513 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/+17020002220@fl.gg [CS_EXECUTE] [NORMAL_CLEARING] 2016-07-25 16:09:29.559535 [NOTICE] switch_core_session.c:1665 Session 1 (sofia/external/+17020002220@fl.gg) Ended 2016-07-25 16:09:29.559535 [NOTICE] switch_core_session.c:1669 Close Channel sofia/external/+17020002220@fl.gg [CS_DESTROY] Do I need to put something in /usr/local/freeswitch/conf/dialplan/public.xml to have this work for inbound calls from PSTN? Thanks!
The problem is that the dialplan control is being transferred to 2003 in the public context, where there is no matching extension. It should be transferred to 2003 XML default instead. -- Steve On Jul 25, 2016 11:16 AM, "jungle Boogie" <jungleboogie0@gmail.com> wrote:
On 25 July 2016 at 08:29, Michael Jerris <mike@jerris.com> wrote:
<action application="transfer" data="2003”/>
Doing that I see this: 2016-07-25 16:09:29.519512 [NOTICE] switch_channel.c:1104 New Channel sofia/external/+17020002220@fl.gg [84fc3c63-2f60-4c83-aa0f-d5a45426bed3] 2016-07-25 16:09:29.519512 [INFO] mod_dialplan_xml.c:637 Processing +17020002220 <+17020002220>->17023024016 in context public 2016-07-25 16:09:29.539513 [NOTICE] switch_ivr.c:2167 Transfer sofia/external/+17020002220@fl.gg to XML[2003@public] 2016-07-25 16:09:29.539513 [INFO] mod_dialplan_xml.c:637 Processing +17020002220 <+17020002220>->2003 in context public 2016-07-25 16:09:29.539513 [NOTICE] switch_core_state_machine.c:385 sofia/external/+17020002220@fl.gg has executed the last dialplan instruction, hanging up. 2016-07-25 16:09:29.539513 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/+17020002220@fl.gg [CS_EXECUTE] [NORMAL_CLEARING] 2016-07-25 16:09:29.559535 [NOTICE] switch_core_session.c:1665 Session 1 (sofia/external/+17020002220@fl.gg) Ended 2016-07-25 16:09:29.559535 [NOTICE] switch_core_session.c:1669 Close Channel sofia/external/+17020002220@fl.gg [CS_DESTROY]
Do I need to put something in /usr/local/freeswitch/conf/dialplan/public.xml to have this work for inbound calls from PSTN?
Thanks!
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.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
On Mon, Jul 25, 2016 at 07:52:05PM -0700, Steven Schoch wrote:
The problem is that the dialplan control is being transferred to 2003 in the public context, where there is no matching extension. It should be transferred to 2003 XML default instead.
Are you saying /usr/local/freeswitch/conf/dialplan/public/01_inbound_did.xml should have this: <action application="transfer" data="{ignore_early_media=true}2003 XML Default"/> When I dial the did, I see it's trying to look for 2003 and not the ring group I setup (techsupport).
-- Steve
On Mon, Jul 25, 2016 at 07:52:05PM -0700, Steven Schoch wrote:
The problem is that the dialplan control is being transferred to 2003 in the public context, where there is no matching extension. It should be transferred to 2003 XML default instead.
I know the wiki isn't maintained anymore but I can't find a page a concise as this: on confluence: https://wiki.freeswitch.org/wiki/Multi_home_tutorial#INCOMING_CALLS_RING_A_G... Is that still accurate? - add an extension to dialplan/public - add some routing to dialpan/default.xml - modify directory/default.xml, if needed {domain_name} is set in vars.xml so it doesn't need to also be set in these files, right? In the logs, I see it translating that correctly from {domain_name} to my freeswitch IP so I think that part is fine. Thanks!
-- Steve
participants (5)
-
jungle Boogie
-
Jungle Boogie
-
Michael Jerris
-
sean farrell
-
Steven Schoch