[Freeswitch-users] R: Dial string issue for multiple registrations contact

Piccinin Francesco francesco.piccinin at insiel.it
Tue Sep 27 13:14:20 UTC 2022


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 at domainA]${sofia_contact(user/1001 at domainA)},
[presence_id=1002 at domainA]${sofia_contact(user/1002 at domainA)}

suppose that users have both 2 active registrations, the desired dialstring should be:

{option1=value1, option2=value2}
[presence_id=1001 at domainA]sofia/internal/sip:1001 at 10.10.10.1,
[presence_id=1001 at domainA]sofia/internal/sip:1001 at 10.10.10.2,
[presence_id=1002 at domainA]sofia/internal/sip:1002 at 10.10.10.3,
[presence_id=1002 at domainA]sofia/internal/sip:1002 at 10.10.10.4

Since {sofia_contact(user/1001 at domainA)} is expanded in a list of comma separated values, what I get is: (spaces for readeability):


{option1=value1, option2=value2}
[presence_id=1001 at domainA]sofia/internal/sip:1001 at 10.10.10.1,
                                                                                               sofia/internal/sip:1001 at 10.10.10.2,
[presence_id=1002 at domainA]sofia/internal/sip:1002 at 10.10.10.3,
                                                                                                sofia/internal/sip:1002 at 10.10.10.4

so, only one registration per extensions gets the presence_id parameter.

Thanks
Francesco

Da: FreeSWITCH-users <freeswitch-users-bounces at lists.freeswitch.org> Per conto di Brian West
Inviato: lunedì 26 settembre 2022 14:40
A: FreeSWITCH Users Help <freeswitch-users at 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 at insiel.it<mailto:francesco.piccinin at insiel.it>> wrote:
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 at domainA]${sofia_contact(user/1001 at domainA)},[presence_id=1002 at domainA]${sofia_contact(user/1002 at domainA)}

suppose that users have both 2 active registrations, the desired dialstring should be:
{option1=value1, option2=value2}[presence_id=1001 at domainA]sofia/internal/sip:1001 at 10.10.10.1<mailto:sip%3A1001 at 10.10.10.1>,[presence_id=1001 at domainA]sofia/internal/sip:1001 at 10.10.10.2<mailto:sip%3A1001 at 10.10.10.2>,[presence_id=1002 at domainA]sofia/internal/sip:1002 at 10.10.10.3<mailto:sip%3A1002 at 10.10.10.3>,[presence_id=1002 at domainA]sofia/internal/sip:1002 at 10.10.10.4<mailto:sip%3A1002 at 10.10.10.4>

Since {sofia_contact(user/1001 at domainA)} is expanded in a list of comma separated values, what I get is: (spaces for readeability):
{option1=value1, option2=value2}[presence_id=1001 at domainA]sofia/internal/sip:1001 at 10.10.10.1<mailto:sip%3A1001 at 10.10.10.1>,sofia/internal/sip:1001 at 10.10.10.2<mailto:sip%3A1001 at 10.10.10.2>,[presence_id=1002 at domainA]sofia/internal/sip:1002 at 10.10.10.3<mailto:sip%3A1002 at 10.10.10.3>,sofia/internal/sip:1002 at 10.10.10.4<mailto:sip%3A1002 at 10.10.10.4>

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 at freeswitch.com<mailto:sales at 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 at lists.freeswitch.org<mailto:FreeSWITCH-users at 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 at freeswitch.com<mailto:sales at freeswitch.com>

FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045<https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g>

Email: brian at freeswitch.com<mailto:brian at freeswitch.com>

Mobile: 918-424-9378

Website: https://www.FreeSWITCH.com<https://www.freeswitch.com/>

[https://lh6.googleusercontent.com/AYfRoSNaDNtMPRMevPn_GqcVEMd5NDRFi0GlluGUWzV6I5TAY_3T2-Tt0IuIXeUtEdYsgNsM8DOYKRKhjmrG_-n2Ga-LCnoNk46sO8VyEma1sBFYdiGJcLRUvkrD1CYHN79qimeg]<https://www.facebook.com/freeswitch>[https://lh3.googleusercontent.com/W4SqXyybH2qdAozvtoKjcz736qOjk9LHDwldvs1ahc-WVU0putVMSsUH474KDrJ32jsqi6JDjyUWxqeEkN5I1xSlC5ShYrd1b8NIMUkDzDrtbWQfa6A_90UcygqesBtRLgeFirKa]<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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20220927/271c28ce/attachment-0001.html>


More information about the FreeSWITCH-users mailing list