Hello,
first of all sorry for this question, I’m totally newbie in this.
We have some SIP numbers in our company (101, 102, 103, etc).
If customer calls and select “number 8”, I want to redirect him to mobile number.
How can I do this please?
Asterisk configured company for us which doesn’t exists yet…
Thank you very much.
extensions.conf
exten => 1,1,Set(MONITOR_FILE=/var/spool/asterisk/monitor/${UNIQUEID})
same => n,MixMonitor(${MONITOR_FILE}.gsm,b)
same => n,Dial(SIP/101,25,Tt)
same => n,Dial(SIP/102,25,Tt)
same => n,Dial(SIP/101,Tt)exten => 2,1,Set(MONITOR_FILE=/var/spool/asterisk/monitor/${UNIQUEID})
same => n,MixMonitor(${MONITOR_FILE}.gsm,b)
same => n,Dial(SIP/102,25,Tt)
same => n,Dial(SIP/103,25,Tt)
same => n,Dial(SIP/109,25,Tt)
same => n,Dial(SIP/102,25,Tt)
same => n,Dial(SIP/103,Tt)exten => 3,1,Set(MONITOR_FILE=/var/spool/asterisk/monitor/${UNIQUEID})
same => n,MixMonitor(${MONITOR_FILE}.gsm,b)
same => n,Dial(SIP/101&SIP/105&SIP/108,25,Tt)
same => n,Dial(SIP/104,25,Tt)
same => n,Playback(ourcompany/unavailable)
same => n,Voicemail(serviceoff@default,s)exten => 4,1,Set(MONITOR_FILE=/var/spool/asterisk/monitor/${UNIQUEID})
same => n,MixMonitor(${MONITOR_FILE}.gsm,b)
same => n,Dial(SIP/104,25,Tt)
same => n,Dial(SIP/101,Tt)
exten => h,1,Set(CDR(accountcode)=${CDR(dstchannel):4:3})
same => n,Hangup
same => n,StopMixMonitorexten => i,1,Goto(3,1)
exten => t,1,Goto(3,1)