Redirect calls to mobile number

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,StopMixMonitor

exten => i,1,Goto(3,1)
exten => t,1,Goto(3,1)

Can you please provide your outgoing call dialplan, as you need to do one of:

  1. include that code in the definition of extension 8;

  2. have extension 8 Goto that code, presumably with the mobile number as the extension;

  3. have extension 8 run that code as a local channel, with the same assumption abut the extension part of the local channel data string.

If your calls are arriving over SIP and your telephony provider supports it, you may, also, be able to push the transfer back to them, using the Transfer application, however, locally originated calls will need different handling.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.