francesco.piccinin at ... Guest
|
Posted: Tue Sep 27, 2022 8:33 am Post subject: [Freeswitch-users] R: Dial string issue for multiple registr |
|
|
Hi Brian,
thanks for your answer.
Anyway, there is something confusing us: arn't curly brackets supposed to be used for parameters common to all the dialed extensions?
In this scenario I have 2 extensions registered to 2 different devices (so 2 differente sip_contacts), and I'm trying to dial both with a bridge (answer group feature)
As dialed extensions are different, they also have different presence_id (not common for all registrations), so I can't put it into the curly brackets.
Here you are again the situation and the code:
{option1=value1, option2=value2}
[presence_id=1001@domainA]${sofia_contact(user/1001@domainA)},
[presence_id=1002@domainA]${sofia_contact(user/1002@domainA)}
suppose that users have both 2 active registrations, the desired dialstring should be:
{option1=value1, option2=value2}
[presence_id=1001@domainA]sofia/internal/sip:1001@10.10.10.1,
[presence_id=1001@domainA]sofia/internal/sip:1001@10.10.10.2,
[presence_id=1002@domainA]sofia/internal/sip:1002@10.10.10.3,
[presence_id=1002@domainA]sofia/internal/sip:1002@10.10.10.4
Since {sofia_contact(user/1001@domainA)} is expanded in a list of comma separated values, what I get is: (spaces for readeability):
{option1=value1, option2=value2}
[presence_id=1001@domainA]sofia/internal/sip:1001@10.10.10.1,
sofia/internal/sip:1001@10.10.10.2,
[presence_id=1002@domainA]sofia/internal/sip:1002@10.10.10.3,
sofia/internal/sip:1002@10.10.10.4
so, only one registration per extensions gets the presence_id parameter.
Thanks
Francesco
Da: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> Per conto di Brian West
Inviato: lunedì 26 settembre 2022 14:40
A: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Oggetto: Re: [Freeswitch-users] Dial string issue for multiple registrations contact
Move presence_id into {} then they'll all get it.
On Mon, Sep 26, 2022 at 6:07 AM Piccinin Francesco <francesco.piccinin@insiel.it (francesco.piccinin@insiel.it)> wrote:
Quote: |
hello to everyone, I'm taking my first steps on this wonderful software!
I have a little problem:
in a lua script I'm forging a dialstring like this:
{option1=value1, option2=value2}[presence_id=1001@domainA]${sofia_contact(user/1001@domainA)},[presence_id=1002@domainA]${sofia_contact(user/1002@domainA)}
suppose that users have both 2 active registrations, the desired dialstring should be:
{option1=value1, option2=value2}[presence_id=1001@domainA]sofia/internal/sip:1001@10.10.10.1 ([email]sip%3A1001@10.10.10.1[/email]),[presence_id=1001@domainA]sofia/internal/sip:1001@10.10.10.2 ([email]sip%3A1001@10.10.10.2[/email]),[presence_id=1002@domainA]sofia/internal/sip:1002@10.10.10.3 ([email]sip%3A1002@10.10.10.3[/email]),[presence_id=1002@domainA]sofia/internal/sip:1002@10.10.10.4 ([email]sip%3A1002@10.10.10.4[/email])
Since {sofia_contact(user/1001@domainA)} is expanded in a list of comma separated values, what I get is: (spaces for readeability):
{option1=value1, option2=value2}[presence_id=1001@domainA]sofia/internal/sip:1001@10.10.10.1 ([email]sip%3A1001@10.10.10.1[/email]),sofia/internal/sip:1001@10.10.10.2 ([email]sip%3A1001@10.10.10.2[/email]),[presence_id=1002@domainA]sofia/internal/sip:1002@10.10.10.3 ([email]sip%3A1002@10.10.10.3[/email]),sofia/internal/sip:1002@10.10.10.4 ([email]sip%3A1002@10.10.10.4[/email])
so, only one registration per extensions gets the presence_id parameter.
I also tried to manipulate the sintax adding parenthesis but it was not accpeted and errors returned.
Is it a way to achieve the desired dialstring?many thanks!
Francesco
AVVISO DI RISERVATEZZA Informazioni riservate possono essere contenute nel messaggio o nei suoi allegati. Se non siete i destinatari indicati nel messaggio, o responsabili per la sua consegna alla persona, o se avete ricevuto il messaggio per errore, siete pregati di non trascriverlo, copiarlo o inviarlo ad alcuno. In tal caso vi invitiamo a cancellare il messaggio ed i suoi allegati. Grazie.
CONFIDENTIALITY NOTICE Confidential information may be contained in this message or in its attachments. If you are not the addressee indicated in this message, or responsible for message delivering to that person, or if you have received this message in error, you may not transcribe, copy or deliver this message to anyone. In that case, you should delete this message and its attachments. Thank you.
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services
sales@freeswitch.com (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 (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 |
--
Brian West | Co-founder and Developer
Need Commercial support? email sales@freeswitch.com (sales@freeswitch.com)
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
Email: brian@freeswitch.com (brian@freeswitch.com)
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com
[/url][url=https://twitter.com/freeswitch]
AVVISO DI RISERVATEZZA Informazioni riservate possono essere contenute nel messaggio o nei suoi allegati. Se non siete i destinatari indicati nel messaggio, o responsabili per la sua consegna alla persona, o se avete ricevuto il messaggio per errore, siete pregati di non trascriverlo, copiarlo o inviarlo ad alcuno. In tal caso vi invitiamo a cancellare il messaggio ed i suoi allegati. Grazie.
CONFIDENTIALITY NOTICE Confidential information may be contained in this message or in its attachments. If you are not the addressee indicated in this message, or responsible for message delivering to that person, or if you have received this message in error, you may not transcribe, copy or deliver this message to anyone. In that case, you should delete this message and its attachments. Thank you. |
|