[Freeswitch-users] Problem with API command expand

Michael Collins msc at freeswitch.org
Tue Jul 19 22:18:18 MSD 2011


What version of FS are you running? On the latest git I cannot do "api
expand" without getting a syntax error. However, this worked perfectly:

expand group insert:01@${domain_name}:'${sofia_contact(1001@
${domain_name})}'

Note the single quotes. The first colon in the URL returned by sofia_contact
is acting as a delimiter. Use the single quotes to prevent that.

-MC

On Tue, Jul 19, 2011 at 7:55 AM, Fabio Bigliardi
<fabio.bigliardi at gmail.com>wrote:

> Hi all,
>
> I would like to add users to a group through an API command.
> I've tried the following syntax:
>
> api expand group insert:01@${domain_name}:${sofia_contact(1001@
> ${domain_name})}
>
> But the output of the sqlite command:
>
> select * from group_data;
>
> is the following:
>
> 1LGL0Q1|01 at 192.168.25.61|sofia/internal/sip
>
> instead of the complete and correct one:
>
> 1LGL0Q1|01 at 192.168.25.61|sofia/internal/sip:1001 at 192.168.25.61:5070
>
> What am I doing wrong?
>
> Many thanks.
>
> FB
>
>
>
>
>
>
> _______________________________________________
> Join us at ClueCon 2011, Aug 9-11, Chicago
> http://www.cluecon.com 877-7-4ACLUE
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110719/277bf395/attachment.html 


More information about the FreeSWITCH-users mailing list