I want to transfer the phone number where x - lite use. After that is taken from the AGI. Please help me
exten => 8098,1,Answer
exten => 8098,n,Wait(0.5)
exten => 8098,n,//I wanted to write this line to obtain the phone number
exten => 8098,n,AGI(hello.php)
exten => 8098,n,Hangup()
thank !
help me!
I don’t understand the question.
are you trying to get the phone number of the caller?
exten => 8098,n,NoOp(call from: ${CALLERID(num)})
thank you, what I want to get phone numbers from the file “test.php”
extention.conf
exten => 8098,1,Answer
exten => 8098,n,Wait(0.5)
exten => 8098,n,Set(number=1682422909)
exten => 8098,n,AGI(test.php)
exten => 8098,n,Hangup()
test.php
#!/usr/bin/php -q
in test.php now I get value number. Now I want to get the phone number in test.php. What do I do in extention.conf and test.php
I succeeded