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

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


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

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

As I mentioned in the initial report, the AGI EXEC does not have a direct way of returning information from the EXECed dialplan app.  While I'm not tied to the idea of adding PARK as an AGI primitive, I would prefer some unambiguous way to access the parking lot number for the call I just parked.  Off the top of my head the options are:

* A new AGI primitive
* Having PARK set a channel variable which can be read back after the command completes

The two options above do not require an AMI connection to access the parking lot number.
                
> [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