[asterisk-users] Re: Passing Arguments to FastAGI

Douglas Garstang dgarstang at oneeighty.com
Wed Oct 4 08:52:20 MST 2006


> -----Original Message-----
> From: Tony Mountifield [mailto:tony at softins.clara.co.uk]
> Sent: Wednesday, October 04, 2006 4:34 AM
> To: asterisk-users at lists.digium.com
> Subject: [asterisk-users] Re: Passing Arguments to FastAGI
> 
> 
> In article 
> <645FEC31A18FE54A8721500CDD55A7B6035D0B3B at mail.oneeighty.com>,
> Douglas Garstang <dgarstang at oneeighty.com> wrote:
> > 
> > How does one do this?
> 
> Just append anything you like to the URL, and it will end up in
> the AGI variable agi_network_script.
> 
> e.g.
> 
> exten => _X.,1,AGI(agi://localhost:4573/begin/serv1)
> 
> When the FastAGI is called, you get the following variables 
> (plus others):
> 
> agi_network='yes'
> agi_network_script='begin/serv1'
> agi_request='agi://localhost:4573/begin/serv1'

Not workin' I'm afraid.

Here's what I am getting:

agi_network: yes
agi_request: agi://xxx.yyy.140.167:5000
agi_channel: SIP/3254101-08217078
agi_language: en
agi_type: SIP
agi_uniqueid: 1159955377.26
agi_callerid: 3254101
agi_calleridname: Chocolate Chip
agi_callingpres: 0
agi_callingani2: 0
agi_callington: 0
agi_callingtns: 0
agi_dnid: 9220370
agi_rdnis: unknown
agi_context: btck_CallStart
agi_extension: 9220370
agi_priority: 4
agi_enhanced: 0.0
agi_accountcode: 3254101

And here's how I am calling it:

exten => _[*0123456789].,n,AGI(agi://xxx.yyy.140.167:5000/foo/bar)




More information about the asterisk-users mailing list