[asterisk-bugs] [JIRA] (ASTERISK-15828) [patch] Add new AGI command: PARK

Ben Klang (JIRA) noreply at issues.asterisk.org
Tue Jan 15 17:28:45 CST 2013


    [ https://issues.asterisk.org/jira/browse/ASTERISK-15828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=201578#comment-201578 ] 

Ben Klang commented on ASTERISK-15828:
--------------------------------------

And then I remembered why I decided against the channel variable option originally.  From the reviewboard discussion:

"Would it make more sense to make Park set channel variables with the information you need (like many other applications do) instead of adding a new AGI command?
bklang 2 years, 7 months ago (June 14th, 2010, 3:10 p.m.)
No, because once the call is parked AGI loses control of the channel, making it impossible to read the channel variable."
                
> [patch] Add new AGI command: PARK
> ---------------------------------
>
>                 Key: ASTERISK-15828
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-15828
>             Project: Asterisk
>          Issue Type: New Feature
>          Components: Resources/res_agi/NewFeature
>            Reporter: Ben Klang
>            Assignee: Ben Klang
>         Attachments: agi-park-trunk.patch, agi-park-v2.patch, agi-park-v3.patch
>
>
> I needed a way to programmatically park calls via AGI and return the parking slot to the script for further processing.  Since the generic EXEC AGI command does not allow returning information, I created this patch which adds the PARK command to AGI.  On success, the parking lot space is returned.  The PARK command accepts the same arguments as the dialplan function PARK and in fact uses the same parsing code.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list