XML syntax question
Hi, I have a dial plan entry that dials 5 extensions, so it is get quite long. In this line: <action application="bridge" data="sofia/internal... ... ... very long" /> Can the data="" part wrap to the next line for readability? Also, is there a better solution to dialing 5 extensions at the same time (for the first to pick it up)? Thanks, Sean
Hi, U can use variables and then make the string shorter. SOME KIND OF LIKE: <action application="set" data="s=sofia/internal/" /> <action application="set" data="t1=+199999999999@xxxxxxx.com" /> <action application="set" data="t2=+199999999999@xxxxxxx.com" /> <action application="set" data="t3=+199999999999@xxxxxxx.com" /> <action application="set" data="t4=+199999999999@xxxxxxx.com" /> <action application="set" data="t5=+199999999999@xxxxxxx.com" /> <action application="bridge" data="${s}${t1}|${t2}|${t3}|${t4}|${t5}" /> Von: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> Im Auftrag von Sean Devoy Gesendet: Dienstag, 16. April 2019 02:28 An: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Betreff: [Freeswitch-users] XML syntax question Hi, I have a dial plan entry that dials 5 extensions, so it is get quite long. In this line: <action application="bridge" data="sofia/internal... ... ... very long" /> Can the data="" part wrap to the next line for readability? Also, is there a better solution to dialing 5 extensions at the same time (for the first to pick it up)? Thanks, Sean
Hi, You can also use group_call function. In ${base_dir}/conf/directory/example.com.xml, create your group: <group name="my_group"> <users> <user id="100" type="pointer"/> <user id="101" type="pointer"/> <user id="102" type="pointer"/> <user id="103" type="pointer"/> </users> </group> And then add in your dialplan: <action application="bridge" data="${group_call(my_group@example.com)}"/> Le mar. 16 avr. 2019, à 01 h 48, Marcel Haldemann < marcel.haldemann@convercom.ch> a écrit :
Hi,
U can use variables and then make the string shorter.
SOME KIND OF LIKE:
<action application=”set” data=”s=sofia/internal/” />
<action application=”set” data=”t1=+199999999999@xxxxxxx.com” />
<action application=”set” data=”t2=+199999999999@xxxxxxx.com” />
<action application=”set” data=”t3=+199999999999@xxxxxxx.com” />
<action application=”set” data=”t4=+199999999999@xxxxxxx.com” />
<action application=”set” data=”t5=+199999999999@xxxxxxx.com” />
<action application="bridge" data="${s}${t1}|${t2}|${t3}|${t4}|${t5}” />
*Von:* FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> *Im Auftrag von *Sean Devoy *Gesendet:* Dienstag, 16. April 2019 02:28 *An:* FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Betreff:* [Freeswitch-users] XML syntax question
Hi,
I have a dial plan entry that dials 5 extensions, so it is get quite long. In this line:
<action application="bridge" data="sofia/internal… … … very long” />
Can the data=”” part wrap to the next line for readability?
Also, is there a better solution to dialing 5 extensions at the same time (for the first to pick it up)?
Thanks,
Sean _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
-- Frédérick Pruneau Administrateur réseau | Network administrator Tel: 514-448-0773 *Confidentialité -- Ce message est confidentiel et destiné à l'usage exclusif de ses destinataires. Si vous l'avez reçu par erreur, veuillez nous en aviser et le détruire sans en divulguer le contenu, en faire une copie ou y donner suite.* *Confidentiality -- This communication is confidential and for the exclusive use of its intended recepients. If you have received this communication by error, please notify the sender and delete the message without copying or disclosing it. *
This is a good option for my groups that all get called without leg delay. Thank you. From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> On Behalf Of Frederick Pruneau Sent: Tuesday, April 16, 2019 8:25 AM To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] XML syntax question Hi, You can also use group_call function. In ${base_dir}/conf/directory/example.com.xml, create your group: <group name="my_group"> <users> <user id="100" type="pointer"/> <user id="101" type="pointer"/> <user id="102" type="pointer"/> <user id="103" type="pointer"/> </users> </group> And then add in your dialplan: <action application="bridge" data="${group_call(my_group@example.com<mailto:my_group@example.com>)}"/> Le mar. 16 avr. 2019, à 01 h 48, Marcel Haldemann <marcel.haldemann@convercom.ch<mailto:marcel.haldemann@convercom.ch>> a écrit : Hi, U can use variables and then make the string shorter. SOME KIND OF LIKE: <action application=”set” data=”s=sofia/internal/” /> <action application=”set” data=”t1=+199999999999@xxxxxxx.com<mailto:199999999999@xxxxxxx.com>” /> <action application=”set” data=”t2=+199999999999@xxxxxxx.com<mailto:199999999999@xxxxxxx.com>” /> <action application=”set” data=”t3=+199999999999@xxxxxxx.com<mailto:199999999999@xxxxxxx.com>” /> <action application=”set” data=”t4=+199999999999@xxxxxxx.com<mailto:199999999999@xxxxxxx.com>” /> <action application=”set” data=”t5=+199999999999@xxxxxxx.com<mailto:199999999999@xxxxxxx.com>” /> <action application="bridge" data="${s}${t1}|${t2}|${t3}|${t4}|${t5}” /> Von: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org<mailto:freeswitch-users-bounces@lists.freeswitch.org>> Im Auftrag von Sean Devoy Gesendet: Dienstag, 16. April 2019 02:28 An: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org<mailto:freeswitch-users@lists.freeswitch.org>> Betreff: [Freeswitch-users] XML syntax question Hi, I have a dial plan entry that dials 5 extensions, so it is get quite long. In this line: <action application="bridge" data="sofia/internal… … … very long” /> Can the data=”” part wrap to the next line for readability? Also, is there a better solution to dialing 5 extensions at the same time (for the first to pick it up)? Thanks, Sean _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com<mailto:sales@freeswitch.com> https://freeswitch.com Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com -- Frédérick Pruneau Administrateur réseau | Network administrator Tel: 514-448-0773 [http://www.targo.ca/signatures/signature4.png] Confidentialité -- Ce message est confidentiel et destiné à l'usage exclusif de ses destinataires. Si vous l'avez reçu par erreur, veuillez nous en aviser et le détruire sans en divulguer le contenu, en faire une copie ou y donner suite. Confidentiality -- This communication is confidential and for the exclusive use of its intended recepients. If you have received this communication by error, please notify the sender and delete the message without copying or disclosing it.
Excellent. Thanks for the reply. From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> On Behalf Of Marcel Haldemann Sent: Tuesday, April 16, 2019 1:40 AM To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] XML syntax question Hi, U can use variables and then make the string shorter. SOME KIND OF LIKE: <action application="set" data="s=sofia/internal/" /> <action application="set" data="t1=+199999999999@xxxxxxx.com<mailto:t1=+199999999999@xxxxxxx.com>" /> <action application="set" data="t2=+199999999999@xxxxxxx.com<mailto:t2=+199999999999@xxxxxxx.com>" /> <action application="set" data="t3=+199999999999@xxxxxxx.com<mailto:t3=+199999999999@xxxxxxx.com>" /> <action application="set" data="t4=+199999999999@xxxxxxx.com<mailto:t4=+199999999999@xxxxxxx.com>" /> <action application="set" data="t5=+199999999999@xxxxxxx.com<mailto:t5=+199999999999@xxxxxxx.com>" /> <action application="bridge" data="${s}${t1}|${t2}|${t3}|${t4}|${t5}" /> Von: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org<mailto:freeswitch-users-bounces@lists.freeswitch.org>> Im Auftrag von Sean Devoy Gesendet: Dienstag, 16. April 2019 02:28 An: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org<mailto:freeswitch-users@lists.freeswitch.org>> Betreff: [Freeswitch-users] XML syntax question Hi, I have a dial plan entry that dials 5 extensions, so it is get quite long. In this line: <action application="bridge" data="sofia/internal... ... ... very long" /> Can the data="" part wrap to the next line for readability? Also, is there a better solution to dialing 5 extensions at the same time (for the first to pick it up)? Thanks, Sean
participants (3)
-
Frederick Pruneau
-
Marcel Haldemann
-
Sean Devoy