Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getVariable with Pami #183

Open
solehi opened this issue Apr 1, 2019 · 0 comments
Open

getVariable with Pami #183

solehi opened this issue Apr 1, 2019 · 0 comments

Comments

@solehi
Copy link

solehi commented Apr 1, 2019

how can i getVariable from dialplan with PAMI?
$originateMsg = new OriginateAction('SIP/1001');
$originateMsg->setContext('queue');
$originateMsg->setPriority('1');
$originateMsg->setExtension(5555);
$originateMsg->setCallerId(5555);
$originateMsg->setAsync(true);
$originateMsg->setActionID(1);
$originateMsg->setVariable('id',987654321);
$orgresp = $client->send($originateMsg);
I can setVariable, but i need to getVariable. For example i want to get variable "a" or "b" from this dialplan
[my_context]
exten => _XXXX,1,NoOp(${id})
exten => _XXXX,n,Set(a=2)
exten => _XXXX,n,Playback(dollar)
exten => _XXXX,n,Read(b,1,,,10)
exten => _XXXX,n,AGI(queue.php,${id},${b})
exten => _XXXX,s,Hungup()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant