I need to divert (forward) an incoming call to a SIP

Feedback, issues & questions regarding the use of the Telis Wizard and Simple Wizard dial plans.
Post Reply
mody26
Posts: 9
Joined: Fri Oct 30, 2009 12:21 pm

I need to divert (forward) an incoming call to a SIP

Post by mody26 » Sun Jun 16, 2013 8:11 pm

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

User avatar
Aaron
Site Admin
Posts: 4554
Joined: Thu Jul 12, 2007 12:13 am

Re: I need to divert (forward) an incoming call to a SIP

Post by Aaron » Mon Jun 17, 2013 11:43 am

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:

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

mody26
Posts: 9
Joined: Fri Oct 30, 2009 12:21 pm

Re: I need to divert (forward) an incoming call to a SIP

Post by mody26 » Mon Jun 17, 2013 1:50 pm

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

User avatar
Aaron
Site Admin
Posts: 4554
Joined: Thu Jul 12, 2007 12:13 am

Re: I need to divert (forward) an incoming call to a SIP

Post by Aaron » Tue Jun 18, 2013 11:05 am

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest