[Freeswitch-users] Using park_timeout with uuid_park
Siri MM
sirimmfs at gmail.com
Tue Feb 4 07:20:32 MSK 2014
Thanks Anthony,
I can now get the park_timeout to work the way you have suggested with
1.2.7 version itself, i.e.
1. Call a conference number
2. Get the UUID of the leg using show channels from CLI
3. uuid_setvar <uuid> park_timeout 10 from CLI
4. uuid_transfer <uuid> park inline from CLI
However, if I were to execute the uuid_broadcast command from the CLI, the
timeout seems to be getting reset, and the call doesn't drop
5. uuid_broadcast <uuid> local_stream://ycioh from CLI
Now, I am yet to try this on the latest version, and will be doing it
shortly.
On Tue, Feb 4, 2014 at 1:03 PM, Anthony Minessale <
anthony.minessale at gmail.com> wrote:
> I made one mistake earlier, you actually had the syntax right.
> step 3 should be
>
> uuid_setvar <uuid> park_timeout 10 from CLI
>
> Retest with that corrected syntax and see if it works.
>
> If it does not work, then it must be a bug in the version you have, I have
> tested it on both latest master and latest stable branch.
>
> We cannot help with old revisions. We normally require any issue reported
> to be done so on latest git master or at the very least the most recent git
> stable branch release.
>
>
>
>
>
>
>
> On Mon, Feb 3, 2014 at 7:31 PM, Siri MM <sirimmfs at gmail.com> wrote:
>
>> Hi Anthony,
>>
>> By your way, do you mean using the CLI for all the commands rather than
>> lua script? If yes, then I tried the same as follows:
>> 1. Call a conference number
>> 2. Get the UUID of the leg using show channels from CLI
>> 3. uuid_setvar <uuid> park_timeout=10 from CLI
>> 4. uuid_transfer <uuid> park inline from CLI
>>
>> But the result is the same - I wait for about a minute but the call
>> doesn't get hung up.
>>
>> We are currently at 1.2.7 for production, and would be hard to update
>> customer sites. Anyway, let me try and get back.
>>
>> Thanks!
>>
>>
>> On Tue, Feb 4, 2014 at 12:17 PM, Anthony Minessale <
>> anthony.minessale at gmail.com> wrote:
>>
>>> I'd like you to replicate it my way first.
>>> You should probably update since we are on 1.2.17 now for 1.2 series.
>>> Maybe there is something that is broken in the older version.
>>>
>>>
>>>
>>>
>>> On Mon, Feb 3, 2014 at 7:00 PM, Siri MM <sirimmfs at gmail.com> wrote:
>>>
>>>> Hi Anthony,
>>>>
>>>> Thanks for the reply.
>>>>
>>>> I have tested the same in the following manner:
>>>> 1. Call a conference number
>>>> 2. Get the UUID of the leg using show channels
>>>> 3. Use luarun to execute the lua script, passing the UUID as an
>>>> argument, from the CLI
>>>> 4. In the script, do the following:
>>>> local onholduuid= argv[1];
>>>> local api = freeswitch.API();
>>>> freeswitch.consoleLog("NOTICE", "==== Begin Park ====\n");
>>>> api:execute("uuid_setvar", onholduuid .. " park_timeout=10");
>>>> api:execute("uuid_transfer", onholduuid .. " park inline");
>>>> api:execute("uuid_broadcast", onholduuid .. " local_stream://ycioh");
>>>> freeswitch.consoleLog("NOTICE", "==== End Park ====\n");
>>>>
>>>> I can hear the local stream, and can see the logs, so I know the script
>>>> has got executed. I have also dumped the result of the uuid_setvar, and it
>>>> is OK. However, the parked call never times out.
>>>>
>>>> Am I missing something here? (I am using version 1.2.7)
>>>>
>>>>
>>>>
>>>> On Tue, Feb 4, 2014 at 1:48 AM, Anthony Minessale <
>>>> anthony.minessale at gmail.com> wrote:
>>>>
>>>>> I had just tested it before I sent that email.
>>>>>
>>>>> Call any extension like a conference or park and get the uuid
>>>>> uiid_setvar <uuid> park_timeout=10
>>>>> uuid_transfer <uuid> park inline
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Mon, Feb 3, 2014 at 12:37 AM, Siri MM <sirimmfs at gmail.com> wrote:
>>>>>
>>>>>> Thanks Anthony,
>>>>>>
>>>>>> I tried modifying the cmd to:
>>>>>> cmd = "uuid_setvar "..uuid.." park_timeout=10";
>>>>>>
>>>>>> However, uuid_setvar doesn't seem to be having any effect on the
>>>>>> park timeout (although the result of the command is +OK).
>>>>>>
>>>>>>
>>>>>> On Thu, Jan 30, 2014 at 11:37 AM, Anthony Minessale <
>>>>>> anthony.minessale at gmail.com> wrote:
>>>>>>
>>>>>>> cmd = "uuid_setvar "..uuid.." park_timeout=10";
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Jan 29, 2014 at 4:36 PM, Siri MM <sirimmfs at gmail.com> wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> Would appreciate any inputs.. Thanks!
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wed, Jan 29, 2014 at 4:21 PM, Siri MM <sirimmfs at gmail.com>wrote:
>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> I have a lua script which parks a leg using uuid_park
>>>>>>>>>
>>>>>>>>> I would like to restrict the amount of time that the leg is
>>>>>>>>> parked. In order to achieve this, I tried using park_timeout as follows:
>>>>>>>>>
>>>>>>>>> cmd = "uuid_setvar "..uuid.." park_timeout 10";
>>>>>>>>> api:executeString(cmd);
>>>>>>>>> api:execute("uuid_park", uuid);
>>>>>>>>>
>>>>>>>>> However, the parked call doesn't seem to timeout. Am I missing
>>>>>>>>> something?
>>>>>>>>>
>>>>>>>>> Thanks!
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> _________________________________________________________________________
>>>>>>>> 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
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬
>>>>>>>
>>>>>>> ☞ http://freeswitch.org/ ☞ http://cluecon.com/ ☞
>>>>>>> http://twitter.com/FreeSWITCH
>>>>>>> ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+
>>>>>>> <http://freeswitch.org/g+>*
>>>>>>>
>>>>>>> ClueCon Weekly Development Call
>>>>>>> ☎ sip:888 at conference.freeswitch.org ☎ +19193869900
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> _________________________________________________________________________
>>>>>>> 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
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬
>>>>>
>>>>> ☞ http://freeswitch.org/ ☞ http://cluecon.com/ ☞
>>>>> http://twitter.com/FreeSWITCH
>>>>> ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+
>>>>> <http://freeswitch.org/g+>*
>>>>>
>>>>> ClueCon Weekly Development Call
>>>>> ☎ sip:888 at conference.freeswitch.org ☎ +19193869900
>>>>>
>>>>>
>>>>>
>>>>> _________________________________________________________________________
>>>>> 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
>>>>
>>>>
>>>
>>>
>>> --
>>> Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬
>>>
>>> ☞ http://freeswitch.org/ ☞ http://cluecon.com/ ☞
>>> http://twitter.com/FreeSWITCH
>>> ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+
>>> <http://freeswitch.org/g+>*
>>>
>>> ClueCon Weekly Development Call
>>> ☎ sip:888 at conference.freeswitch.org ☎ +19193869900
>>>
>>>
>>> _________________________________________________________________________
>>> 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
>>
>>
>
>
> --
> Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬
>
> ☞ http://freeswitch.org/ ☞ http://cluecon.com/ ☞
> http://twitter.com/FreeSWITCH
> ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+
> <http://freeswitch.org/g+>*
>
> ClueCon Weekly Development Call
> ☎ sip:888 at conference.freeswitch.org ☎ +19193869900
>
>
> _________________________________________________________________________
> 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/20140204/6ee7689e/attachment-0001.html
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list