I’m not sure if this is right forum to ask for this question but I’ll try.
Our company uses Asterisk 10.0.0 to receive voicemail. Now, I need to update it to support IVR. I’m an inch close to complete the changes but there is one hurdle. I need to use the ‘RECIPIENT’ phone number in the extensions.conf.
So far, with hard coding, I can achieve the goal as follows:
switch => Realtime/@extensions
exten => 100,1,Answer()
exten => 100,2,VoiceMail(949111111, d([outgoing]))
exten => 100,4,Hangup()
exten => a,1,DIAL(“SIP/1585111111@outgoing”)
exten => a,2,Hangup()
All calls are forwarded using single extension 100 to Asterisk server. As per the above extensions.conf setting, when a request is received for extension 100 and the caller presses ‘*’, the call will be forwarded to 585111111. That works successfully.
What I need is to replace the hardcoding of 949111111 with a variable which is the actual field.
Any help is appreciated.