I "cut and pasted" the PHP from your OP and ran it from a shell. When Table AstDB in Database Asterisk contains context "foobar", here is the output
$php jonas.php VERBOSE "query is: SELECT vmcontext FROM AstDB WHERE ID='40'" 3 VERBOSE "VMCONTEXT is: Array" 3 VERBOSE "variable exten : " 3 VERBOSE "variable vmcontext : foobar" 3 $ _____ From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Jonas Kellens Sent: Wednesday, June 30, 2010 12:27 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] queue command inasterisk 1.4with macro-argument Danny, 1. I only know php, I'm no programmer 3. the query works in normal PHP. Can I debug to know what's going wrong ? Jonas. On 06/30/2010 05:42 PM, Danny Nicholas wrote: 1. (personal preference) I wouldn't use PHP 2. that out of the way, I comment out the AGI stuff and run my AGI's from bash to make sure the non AGI stuff is happy. 3. the AGI seems to be ok here, I'd make sure my SQL stuff is good.
-- _____________________________________________________________________ -- 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