Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

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


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
francesco.piccinin at ...
Guest





PostPosted: Mon Sep 26, 2022 6:01 am    Post subject: [Freeswitch-users] Dial string issue for multiple registrati Reply with 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,[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.

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
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
Back to top
brian at freeswitch.com
Guest





PostPosted: Mon Sep 26, 2022 8:07 am    Post subject: [Freeswitch-users] Dial string issue for multiple registrati Reply with quote

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]
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services