[asterisk-users] Variable inheritance with dialplan command Originate

Sherwood McGowan sherwood.mcgowan at gmail.com
Fri Apr 8 11:10:55 CDT 2011


On 4/8/2011 11:05 AM, Jim Dickenson wrote:
> Another option is to pass the information in the extension. At times I have an extension like
>
> _[s][o][m][e]-[e][x][a][m][p][l][e].
>
> And call it like some-example:info1:info2 and use cut to extract the info1 and info2 values. Not real pretty but as this is computer generated calls it gets the job done.

Still not sure why you guys need this...Here's my example

[firstleg]
exten => 200,1,Set(__myvar=foo) ; Don't forget you don't want quotes!)
exten => 200,n,Dial(Local/123 at test_orig)
[test_orig]
exten => 123,1,Noop(${myvar})
same => n,Set(dbtest=${ODBC_TESTQUERY(myvar)})

-- 
Sherwood McGowan <sherwood.mcgowan at gmail.com>
Carrier, ITSP, Call Center, and PBX Solutions Consultant




More information about the asterisk-users mailing list