Hello
I want to forward the incoming calls come to a certain SIP Provider name "Nonoh1" to be forward to: mody12345@sip.interncalls.com with no delay, means forward calls without ringing the ATA at all so I can receive this call to that SIP account, all other incoming call processed like the current dial plan with no change
my incoming dial plan for incoming is:
if sys.In then
# Do your INCOMING call processing customisations here.
if sys.IsAvailable() then
sys.Dial("#{sys.Username}@local",60)
sys.Respond(480, "#{sys.Username} Not available")
else
sys.Dial("Enter Number@nonoh",30)
sys.Respond(480, "#{sys.Username} Not available")
end
thank you in advance
I need to divert (forward) an incoming call to a SIP
Re: I need to divert (forward) an incoming call to a SIP
1. Change the Reigster Contact for your Nonoh1 provider to nonoh1.username (replace username with your own),
2. Edit your dialplan along the lines shown below:
2. Edit your dialplan along the lines shown below:
Code: Select all
if sys.In then
# Do your INCOMING call processing customisations here.
if req.URI.User == "nonoh1.username" then
sys.Dial("mody12345@sip.interncalls.com",60)
elsif sys.IsAvailable() then
sys.Dial("#{sys.Username}@local",60)
sys.Respond(480, "#{sys.Username} Not available")
else
sys.Dial("Enter Number@nonoh",30)
sys.Respond(480, "#{sys.Username} Not available")
end
end
Re: I need to divert (forward) an incoming call to a SIP
Thank you for your reply, but it's not working although I did what you told me to change
do you mean the username is only the username for logging the sipsorcery.com or the full username? means: mamoha22 only or full vodafone.mamoha22@sipsorcery.com
do you mean the username is only the username for logging the sipsorcery.com or the full username? means: mamoha22 only or full vodafone.mamoha22@sipsorcery.com
Re: I need to divert (forward) an incoming call to a SIP
It should be only "vodafone.mamoha22".
Code: Select all
if sys.In then
# Do your INCOMING call processing customisations here.
if req.URI.User == "vodafone.mamoha22" then
sys.Dial("mody12345@sip.interncalls.com",60)
elsif sys.IsAvailable() then
sys.Dial("#{sys.Username}@local",60)
sys.Respond(480, "#{sys.Username} Not available")
else
sys.Dial("Enter Number@nonoh",30)
sys.Respond(480, "#{sys.Username} Not available")
end
end