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@192.168.25.61|sofia/internal/sip instead of the complete and correct one: 1LGL0Q1|01@192.168.25.61|sofia/internal/sip:1001@192.168.25.61:5070 What am I doing wrong? Many thanks. FB
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@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@192.168.25.61|sofia/internal/sip
instead of the complete and correct one:
1LGL0Q1|01@192.168.25.61|sofia/internal/sip:1001@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Fabio Bigliardi
-
Michael Collins