I am trying to set up an app to do something similar to this
query mysql to get where exten = $exten
$phonenumber=recordset ['phone']
$phonenumber=recordset ['otherphone']
then
exten => _xxxx,1, answer
exten => _xxxx,2, Background(custom/${EXTEN})
exten => 1,1, Dial(IAX2/othersystem/$phonenumber)
exten => 2,1, Dial(IAX2/othersystem/$otherphonenumber)
Basically what I want is to give someone the ability to enter a phone number into mysql. If someone goes to their extension listens to their personal AA then presses 1 it will forward the call to the number they set.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to set up an app to do something similar to this
query mysql to get where exten = $exten
$phonenumber=recordset ['phone']
$phonenumber=recordset ['otherphone']
then
exten => _xxxx,1, answer
exten => _xxxx,2, Background(custom/${EXTEN})
exten => 1,1, Dial(IAX2/othersystem/$phonenumber)
exten => 2,1, Dial(IAX2/othersystem/$otherphonenumber)
Basically what I want is to give someone the ability to enter a phone number into mysql. If someone goes to their extension listens to their personal AA then presses 1 it will forward the call to the number they set.
Who's the man?? I figured it out. If anyone's interested let me know. I will post if so.