----- Original Message -----
> However when doing a NoOp I am getting channel info like ip and sip
> info for the variable. It seems to me that the variable is not passed
> the right way back to the dial-plan.
>
> NoOp reults:
>
> NoOp("SIP/64.64.65.65-00000d31", "") in new stack
Just so I'm clear, your doing something like:
exten => s,n,NoOP(${var})
And getting the results you mention? that doesn't show a channel name, but
rather that ${var} contains "".
You probably want quite on the php, that could screw up the set_variable stuff.
#!/usr/bin/php -q
Of use the -q argument when invoking php.
P.S. There is a typo in my code below. The get_variable command should be:
$agi->get_variable("EXTEN");
> Maybe the problem:
>
> $agi->set_variable("var", $var);
> >
> > // Get a variable from dial plan
> > $agi->get_variable($EXTEN);
> >
> > // do something, like assign a value to $var
> > $var = "something";
> >
> > // Set a dial plan variable
> > $agi->set_variable("var", $var);
> >
> > exit(0);
> > ?>
> >
> > -- John Van Ostrand
> > CTO, co-CEO
> > Net Direct Inc.
> > 564 Weber St. N. Unit 12, Waterloo, ON N2L 5C6
> > Ph: 866-883-1172 x5102
> > Fx: 519-883-8533
> >
> > Linux Solutions / IBM Hardware
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
>
> _________________________________________________________________ Game
> on: Challenge friends to great games on Messenger
> http://go.microsoft.com/?linkid=9734387
--
John Van Ostrand
CTO, co-CEO
Net Direct Inc.
564 Weber St. N. Unit 12, Waterloo, ON N2L 5C6
Ph: 866-883-1172 x5102
Fx: 519-883-8533
Linux Solutions / IBM Hardware
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]