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@test_orig)
[test_orig]
exten => 123,1,Noop(${myvar})
same => n,Set(dbtest=${ODBC_TESTQUERY(myvar)})

-- 
Sherwood McGowan <[email protected]>
Carrier, ITSP, Call Center, and PBX Solutions Consultant


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to