Asterisk 13 redirecting call to my registered number to external phone number

Hi,

I have installed Asterisk 13.19.0 on my Centos 7 server and it is running fine. Currently, I need to redirect calls to my registered phone number to an external number.

extension.conf file entry:

[internal]
exten => +12345678,1,Answer()
exten => +12345678,2,Dial(SIP/7003,30,tT)
exten => +12345678,3,VoiceMail(7003@internal,u)
exten => +12345678,4,Hangup()

Can you please help me to add this redirection of calls from my phone number for example redirect the calls to the registered number +12345678 to external number +987654321.

Regards,
Binsil

Forwarding is typically done with the endpoint. Simply add the redirection number and see what happens. Depending on how you’ve configured Asterisk you might need to deal with some local channels.

You mean to add like this ?

[internal]
exten => +12345678,1,Answer()
exten => +12345678,2,Dial(SIP/ +987654321,30,tT)
exten => +12345678,3,VoiceMail(7003@internal,u)
exten => +12345678,4,Hangup()

No, you start without the dialplan and then watch what happens. If I’d know your dialplan, I could answer more precisely. Just enter the new phone number in one of the fields of your VoIP phone and activate an appropriate forwarding optione. -vv should be sufficient to see what Asterisk is doing with the forwarded call.

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