[asterisk-users] How to send variables through AMI originate and read those variables in context?

Jarrod Lash jarrod at fed-com.com
Wed Dec 23 18:09:02 CST 2009


Bruce,

http://www.voip-info.org/wiki/view/Asterisk+manager+API

In the AMI do :
Variable: crap1=data
Variable: crap2=data
Variable: crap3=data


In the dialplan variables will be in the format..
${crap1}


Also as an FYI.. Look at cepstral in place of Festival...

-- 
Jarrod Lash, <jarrod at fed-com.com>
Federated Communications, LLC.
www.fed-com.com
Office: +1-412-357-2127
Mobile: +1-412-999-0049
Fax: +1-412-545-8368




On Wed, Dec 23, 2009 at 6:28 PM, Bruce Nik <brucevoip at gmail.com> wrote:
> Hello Everyone,
> I want to send a few numbers (variables) when doing Asterisk AMI Originate
> command and then have Festival read them back to customer in the context.
> How should this be done? Following is my not working example and also
> reference on AMI Originate Command:
> Command: Originate
> Channel: SIP/123
> Context: TestFestival
> Priority: 1
> Exten: 555
> Variable: $numberONE, $numberTWO, $numberTHREE
> /etc/asterisk/extensions.conf:
> [TestFestival]
> exten => 555,1,Answer()
> exten => 555,n,Festival(you entered: $numberONE $numberTWO $numberTHREE)
> exten => 555,n,Hangup()
> I very much appreacitate any input on this.
>
>
>
>
> trixbox1*CLI> manager show command originate
> Action: Originate
> Synopsis: Originate Call
> Privilege: originate,all
> Description: Generates an outgoing call to a Extension/Context/Priority or
>   Application/Data
> Variables: (Names marked with * are required)
>         *Channel: Channel name to call
>         Exten: Extension to use (requires 'Context' and 'Priority')
>         Context: Context to use (requires 'Exten' and 'Priority')
>         Priority: Priority to use (requires 'Exten' and 'Context')
>         Application: Application to use
>         Data: Data to use (requires 'Application')
>         Timeout: How long to wait for call to be answered (in ms)
>         CallerID: Caller ID to be set on the outgoing channel
>         Variable: Channel variable to set, multiple Variable: headers are
> allowed
>         Account: Account code
>         Async: Set to 'true' for fast origination
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list