One provider for incoming calls and another for outgoingHELP
-
- Posts: 27
- Joined: Thu Oct 01, 2009 7:59 am
One provider for incoming calls and another for outgoingHELP
Hi,
I appologize but I have a very sipme questions. I am new in the SIP world. I tried a lot of times but it does not work.
I would like to receve calls using one provider (www.12voip.com) and make calls through another provider (www.bgopen.net).
I tried Ruby Wizard as well as the old script. It works very well with the outgoing calls through www.12voip.com. But I could not receive any calls through teh second provider www.bgopen.net.
Here is the Ruby script I used:
_________________________________________________________
#Ruby
# Dial Plan Generated by Rubyzard v0.1
# If you need help, please post in our forum
# http://www.mysipswitch.com
# SIP tracing : true or false
sys.Trace = false
sys.Log("call from #{req.Header.From.FromURI.ToString()} to #{req.URI.User}.")
if sys.In then
# Do your INCOMING call processing customisations here.
if sys.IsAvailable() then
sys.Dial("#{sys.Username}@local",30)
sys.Respond(480, "#{sys.Username} Not available")
else
sys.Dial("#{sys.Username}@local",30)
sys.Respond(480, "#{sys.Username} Not available")
end
else
# Do your OUTGOING call processing customisations here.
case req.URI.User
when /^00/ then sys.Dial("12voip")
else sys.Dial("12voip")
end
end
_______________________________________________________
CAN SOMEONE HELP ME?
Thanks in advance!
Best regards,
Kiril
I appologize but I have a very sipme questions. I am new in the SIP world. I tried a lot of times but it does not work.
I would like to receve calls using one provider (www.12voip.com) and make calls through another provider (www.bgopen.net).
I tried Ruby Wizard as well as the old script. It works very well with the outgoing calls through www.12voip.com. But I could not receive any calls through teh second provider www.bgopen.net.
Here is the Ruby script I used:
_________________________________________________________
#Ruby
# Dial Plan Generated by Rubyzard v0.1
# If you need help, please post in our forum
# http://www.mysipswitch.com
# SIP tracing : true or false
sys.Trace = false
sys.Log("call from #{req.Header.From.FromURI.ToString()} to #{req.URI.User}.")
if sys.In then
# Do your INCOMING call processing customisations here.
if sys.IsAvailable() then
sys.Dial("#{sys.Username}@local",30)
sys.Respond(480, "#{sys.Username} Not available")
else
sys.Dial("#{sys.Username}@local",30)
sys.Respond(480, "#{sys.Username} Not available")
end
else
# Do your OUTGOING call processing customisations here.
case req.URI.User
when /^00/ then sys.Dial("12voip")
else sys.Dial("12voip")
end
end
_______________________________________________________
CAN SOMEONE HELP ME?
Thanks in advance!
Best regards,
Kiril
-
- Posts: 27
- Joined: Thu Oct 01, 2009 7:59 am
Kiril,
under SIP accounts, add account with your SS login name (say, k_naydenov).
Owner: k_naydenov
Password: yourpassword
Out dialplan: name_of_your_dialplan
In dialplan: leave empty
In your dialplan, write the following line:
sys.Dial("12voip")
Yes, just 1 line of code.
In SIP providers, check "Register" for bgnet, leave it unchecked for 12voip.
If it still doesn't work, refer to this article. Yes, that's right... I checked out bgnet's website and it seems that they are using incoming PSTN numbers of SIPBroker. I had a similar problem about a year ago, Aaron helped me to solve it "on the fly" but probably he didn't notice SIPBroker numbers this time.
Mike
under SIP accounts, add account with your SS login name (say, k_naydenov).
Owner: k_naydenov
Password: yourpassword
Out dialplan: name_of_your_dialplan
In dialplan: leave empty
In your dialplan, write the following line:
sys.Dial("12voip")
Yes, just 1 line of code.
In SIP providers, check "Register" for bgnet, leave it unchecked for 12voip.
If it still doesn't work, refer to this article. Yes, that's right... I checked out bgnet's website and it seems that they are using incoming PSTN numbers of SIPBroker. I had a similar problem about a year ago, Aaron helped me to solve it "on the fly" but probably he didn't notice SIPBroker numbers this time.
Mike
-
- Posts: 27
- Joined: Thu Oct 01, 2009 7:59 am
-
- Posts: 27
- Joined: Thu Oct 01, 2009 7:59 am
-
- Posts: 27
- Joined: Thu Oct 01, 2009 7:59 am