[Freeswitch-users] Fifo api command register agents (add fifo_member)
Peter van Raamsdonk
peetzer at gmail.com
Sun Sep 23 19:05:53 MSD 2012
I use the channel from the context and have the UUID.
Do you have any example how the command looks? It is hard to tell if it works, since the reply is +OK but I don't see the agent(s) registered.
I know the ${something} variables should be fetched separately, not parsed directly (well I assume). I don't know how the proper notation of functions with "(" and ")" should be.
Regards Peter
On 22 sep 2012, at 20:08, Seven Du wrote:
> It should work with inbound and outbound, but if you use sendMsg, you need a session.
>
> --
> Seven Du
> Sent with Sparrow
>
> On Saturday, September 22, 2012 at 11:41 PM, Peter van Raamsdonk wrote:
>
>> Hi Seven,
>>
>> Inbound and outboud is confusing because both can do the same sometime, I will try but this should also be possible with sendMsg.
>>
>> Thanks,
>>
>> Peter
>>
>> On 22 sep 2012, at 13:31, Seven Du wrote:
>>
>>> sendmsg is not for api, try
>>>
>>>
>>> api fifo_member add blah…………\n\n
>>>
>>>
>>>
>>> --
>>> Seven Du
>>> Sent with Sparrow
>>>
>>> On Saturday, September 22, 2012 at 3:03 PM, Peter van Raamsdonk wrote:
>>>
>>>> Hi all,
>>>>
>>>> I started to implement fifo in my application to handle calls from know phones to unknown extensions and specific dial string/ extension.
>>>>
>>>> I use the api commands with esl (java client), outbound socket (with sendMsg).
>>>>
>>>> http://wiki.freeswitch.org/wiki/Mod_event_socket
>>>>
>>>> I looked at a lot of examples, for me I thought the right sequence to would be to add (register) user agents first (determined by myself) and later add caller in which all user agents would ring and the call would be handled after accepting the call from free user agent.
>>>>
>>>> My problem is now the right notation of the add fifo_member. I think I should use this for registering agents;
>>>>
>>>> http://wiki.freeswitch.org/wiki/Mod_fifo#Configure_for_Agent_Callback
>>>>
>>>> http://wiki.freeswitch.org/wiki/Mod_fifo#Simple%20On-hook%20Agent%20Login/Logout%20Example
>>>>
>>>> http://wiki.freeswitch.org/wiki/Variable_fifo_member_wait
>>>>
>>>> sendmsg <uuid>
>>>> call-command: execute
>>>> execute-app-name: <one of the applications>
>>>> execute-app-arg: <application data>
>>>> sendMsg
>>>> call-command: execute
>>>> execute-app-name: set
>>>> execute-app-arg:
>>>> "fifo_member(add TestQue sofia/internal/1001%123.123.123.123)"
>>>> I don't know if the () can be used in sendMsg, my queue name needs quotes "\'" and the callerid needs "@" or "%" with domain at end.
>>>>
>>>> When I execute the command I don't get errors, response is ok and in log of freeswitch I also see no errors (only set command).
>>>>
>>>> However when I execute fifo list or (verbose_list) from FS CLI, I don't see any user agents registered. If I put the caller in my queue, I see only the caller registered (callers) http://wiki.freeswitch.org/wiki/Mod_fifo#Terminology
>>>>
>>>> http://wiki.freeswitch.org/wiki/Mod_fifo#list.7Clist_verbose
>>>>
>>>> Below works, only my created queue is missing lag, call timeout and simcount!
>>>>
>>>> Put a caller into a FIFO queue
>>>>
>>>> sendMsg
>>>> call-command: execute
>>>> execute-app-name: fifo
>>>> execute-app-arg: TestQue in somesoundfile.wav someothersoundfilemusic.wav
>>>> Kind regards,
>>>>
>>>> Peter
>>>>
>>>> Ps, I hope somebody can advise !!!!
>>>> _________________________________________________________________________
>>>> Professional FreeSWITCH Consulting Services:
>>>> consulting at freeswitch.org
>>>> http://www.freeswitchsolutions.com
>>>>
>>>>
>>>>
>>>>
>>>> Official FreeSWITCH Sites
>>>> http://www.freeswitch.org
>>>> http://wiki.freeswitch.org
>>>> http://www.cluecon.com
>>>>
>>>> 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
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>>
>>>
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> 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
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>>
>>
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> 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
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> 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/20120923/9815806f/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list