Sunday, 29 December 2024

THREE LEVEL DIAL PLAN FOR INCOMING CALL MOVE TO . 1.EXTENSION 2. MOBILE NUMBER 3. VOICEMAIL.

 I'm trying to set up a call routing that would dial an extension first, if failed, then divert the call to a mobile number, if no answer then go to voicemail. What i have done is I created a Custom App and have the following call flow in there:


exten => 9184XXXXXXXX,1,GOTO(s,1)                                                                        
exten => s,1,Set(DivertNumber=194xxxxxxxx)                                                        
exten => s,2,Dial(SIP/147xxxxxxxx,18,
tr)                                                                      
exten => s,3,Dial(sip/${DivertNumber}@trunkname
,18,t)            
exten => s,4,Voicemail(85991@HSS)      
                                       
exten => s,5,Hangup()

Configuration for Voicemail if you want:-

vi /etc/asterisk/voicemail.conf                        should be an entry on a voicemail file like this.
[HSS]
85991 => 85991,abc,xxxxxx@gmail.com

No comments: