[Asterisk-Users] Re: DeadAGI variables confusion

Tony Mountifield tony at softins.clara.co.uk
Thu Feb 2 05:54:54 MST 2006


In article <2c4594220602020413g29da0b77h at mail.gmail.com>,
Dave Brooks <mrdaveb at gmail.com> wrote:
> Hi * users,
> 
> We're using calls to external scripts through AGI at various points
> throughout our IVR system. We use these scripts to log certain events
> and to make certain choices that I wasn't sure would be possible in
> the dial plan. The problem comes with with the final call to our
> script. We use this line:
> 
> exten => h,1,deadagi(log.php|{$service}|Hung up|${UNIQUEID})
> 
> I know there are some issues with getting variables through DeadAGI,
> but I just wanted some clarification, because I haven't seen it
> explained clearly. Certainly the value of UNIQUEID was being
> successfully passed to log.php in earlier versions of * but isn't now
> (I just installed version 1.2.4)
> 
> Any advice welcome. Even if it is telling me we've beein doing this
> all wrong the whole time!

You should be able to refer to channel variables in the 'h' extension.
If it's broken, then that's a bug.

However, if your example is an exact copy from your dialplan, perhaps
the parser is getting confused, because {$service} should be ${service}

Cheers
Tony
-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-users mailing list