It works only with groups defined in XML directory and not with groups in sqlite DB.<br>Only one member of the group is answered; the others are hanged up with cause: LOSE_RACE.<br><br>-Fabio<br><br><br><div class="gmail_quote">
2011/7/20 Steven Ayre <span dir="ltr"><<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I think you want to be dialing using the group/ prefix:<br>
<a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_bridge#group" target="_blank">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_bridge#group</a><br>
<br>
Try: api expand conference ds_totale dial group/01@${domain_name}<br>
<br>
All dialstrings start with chantype/ which identifies which endpoint<br>
module to use to dial. CHAN_NOT_IMPLEMENTED is the error given if that<br>
part was not recognised.<br>
<br>
Since it looks like you might be trying to connect using ESL directly,<br>
look in libs/esl in your git checkout. You'll find esl libraries there<br>
in a range of languages that'll handle the protocol for you.<br>
<br>
-Steve<br>
<div><div></div><div class="h5"><br>
<br>
<br>
<br>
<br>
On 20 July 2011 11:55, Fabio Bigliardi <<a href="mailto:fabio.bigliardi@gmail.com">fabio.bigliardi@gmail.com</a>> wrote:<br>
> Hi Michael,<br>
><br>
> I've tried the command:<br>
><br>
> api expand conference ds_totale dial group_call(01@${domain_name})<br>
><br>
> But the output is:<br>
><br>
> Content-Type: api/response<br>
> Content-Length: 47<br>
><br>
> Call Requested: result: [CHAN_NOT_IMPLEMENTED]<br>
><br>
> Freeswitch log:<br>
> 2011-07-20 12:28:49.304970 [ERR] switch_core_session.c:413 Could not locate<br>
> channel type group_call(<a href="mailto:01@192.168.25.61">01@192.168.25.61</a>)<br>
> 2011-07-20 12:28:49.304970 [NOTICE] switch_ivr_originate.c:2453 Cannot<br>
> create outgoing channel of type [group_call(<a href="mailto:01@192.168.25.61">01@192.168.25.61</a>)] cause:<br>
> [CHAN_NOT_IMPLEMENTED]<br>
> 2011-07-20 12:28:49.304970 [DEBUG] switch_ivr_originate.c:3318 Originate<br>
> Resulted in Error Cause: 66 [CHAN_NOT_IMPLEMENTED]<br>
> 2011-07-20 12:28:49.304970 [ERR] mod_conference.c:5169 Cannot create<br>
> outgoing channel, cause: CHAN_NOT_IMPLEMENTED<br>
><br>
> I think that this is related to the fact that the group is created in sqlite<br>
> DB and not in the xml dialplan. So I've tried:<br>
><br>
> api expand conference ds_totale dial group call:'01@${domain_name}'<br>
><br>
> But the output is:<br>
><br>
> Content-Type: api/response<br>
> Content-Length: 47<br>
><br>
> Call Requested: result: [NO_ROUTE_DESTINATION]<br>
><br>
> Freeswitch log:<br>
> 2011-07-20 12:36:49.964965 [DEBUG] switch_ivr_originate.c:1879 Parsing<br>
> global variables<br>
> 2011-07-20 12:36:49.964965 [NOTICE] switch_ivr_originate.c:2453 Cannot<br>
> create outgoing channel of type [error] cause: [NO_ROUTE_DESTINATION]<br>
> 2011-07-20 12:36:49.964965 [DEBUG] switch_ivr_originate.c:3318 Originate<br>
> Resulted in Error Cause: 3 [NO_ROUTE_DESTINATION]<br>
> 2011-07-20 12:36:49.964965 [NOTICE] switch_ivr_originate.c:2453 Cannot<br>
> create outgoing channel of type [group] cause: [NO_ROUTE_DESTINATION]<br>
> 2011-07-20 12:36:49.964965 [DEBUG] switch_ivr_originate.c:3318 Originate<br>
> Resulted in Error Cause: 3 [NO_ROUTE_DESTINATION]<br>
> 2011-07-20 12:36:49.964965 [ERR] mod_conference.c:5169 Cannot create<br>
> outgoing channel, cause: NO_ROUTE_DESTINATION<br>
><br>
> It seems a problem in parsing; in fact the command:<br>
><br>
> api expand group call:'01@${domain_name}'<br>
><br>
> gives the following output:<br>
><br>
> Content-Type: api/response<br>
> Content-Length: 85<br>
><br>
> sofia/internal/<a href="http://sip:1001@192.168.25.61:5070" target="_blank">sip:1001@192.168.25.61:5070</a>,sofia/internal/<a href="http://sip:1016@192.168.25.31:5060" target="_blank">sip:1016@192.168.25.31:5060</a><br>
><br>
> So I've tried:<br>
><br>
> api expand conference ds_totale dial<br>
> sofia/internal/<a href="http://sip:1001@192.168.25.61:5070" target="_blank">sip:1001@192.168.25.61:5070</a>,sofia/internal/<a href="http://sip:1016@192.168.25.31:5060" target="_blank">sip:1016@192.168.25.31:5060</a><br>
><br>
> The output is:<br>
> Content-Type: api/response<br>
> Content-Length: 34<br>
><br>
> Call Requested: result: [SUCCESS]<br>
><br>
> But only 1016 is added to the conference while 1001 is hanged up with cause:<br>
> LOSE_RACE.<br>
><br>
> So the questions are:<br>
><br>
> 1. What is wrong with the syntax of the following command?<br>
><br>
> api expand conference ds_totale dial group call:'01@${domain_name}'<br>
><br>
> 2. How can it be avoided that parties which "loose the race" are hanged up?<br>
><br>
><br>
> Thank you very much.<br>
><br>
> F. Bigliardi<br>
><br>
><br>
><br>
> 2011/7/19 Michael Collins <<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>><br>
>><br>
>><br>
>> On Tue, Jul 19, 2011 at 5:47 AM, Fabio Bigliardi<br>
>> <<a href="mailto:fabio.bigliardi@gmail.com">fabio.bigliardi@gmail.com</a>> wrote:<br>
>>><br>
>>> Hi all,<br>
>>> I would like to be able to invite a group to a conference through an API<br>
>>> command.<br>
>>><br>
>>> In xml dialplan this can be achieved through the following action:<br>
>>><br>
>>> <action application="conference_set_auto_outcall"<br>
>>> data="${group_call(my_group}"/><br>
>>><br>
>>> In the API, I suppose the right command is "dial":<br>
>>><br>
>>> api conference my_conf dial <group dial string><br>
>>><br>
>>> But how can I specify group dial string?<br>
>><br>
>> Try this:<br>
>> expand api conference my_conf dial group_call(my_group)<br>
>> -MC<br>
>><br>
>>><br>
>>> Thank you for your support.<br>
>>><br>
>>> Best regards,<br>
>>><br>
>>> Fabio Bigliardi<br>
>>><br>
>>> _______________________________________________<br>
>>> Join us at ClueCon 2011, Aug 9-11, Chicago<br>
>>> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
>>><br>
>>> FreeSWITCH-users mailing list<br>
>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> Join us at ClueCon 2011, Aug 9-11, Chicago<br>
>> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
>><br>
>> FreeSWITCH-users mailing list<br>
>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> Join us at ClueCon 2011, Aug 9-11, Chicago<br>
> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
><br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
<br>
_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br>