Help! New to SS and Need help with Configuration!!!

Getting started with the SIP Sorcery
Post Reply
mfranzel
Posts: 43
Joined: Wed May 30, 2012 3:16 am

Help! New to SS and Need help with Configuration!!!

Post by mfranzel » Wed May 30, 2012 3:23 am

Hi all,
I am new to SIPSorcery and need a bit of help.

I set up my account with one of my VoIP providers, ViaTalk. I used the following outgoing dial plan:

Code: Select all

sys.Log("New outgoing call received to #{req.URI.User}.")
 
case req.URI.User
  # Speed dials.
  when "100" then sys.Dial("subaccount1@sipsorcery.com")
  when "101" then sys.Dial("subaccount2@sipsorcery.com")
 
  # Prefix dialling for providers.
  when /^\*1/ then sys.Dial("${EXTEN:2}@ViaTalk")
 
  # PSTN calls.
  when /^[1-9]/ then sys.Dial("${EXTEN}@ViaTalk")
  when /^00[1-9]/ then sys.Dial("${EXTEN}@ViaTalk")
 
  else sys.Respond(404, "Oops no dial plan rule found for destination")
end
I set up a SIP phone (Snom 870) and an ATA (OBi202) with my main username and password. Both phones can CALL OUTBOUND perfectly, but when you dial the number to make an INBOUND call, nothing happens. I have tried using the REGISTER option and I have tried simply forwarding calls from ViaTalk to my SS SIP URI... nothing works.

I cannot get phones to ring. What am I doing wrong here?
Also, what about voicemail? If I don't answer any phones when a call eventually comes through, where does the call go?

PLEASE HELP!!!!!

Aaron
Site Admin
Posts: 4652
Joined: Thu Jul 12, 2007 12:13 am

Re: Help! New to SS and Need help with Configuration!!!

Post by Aaron » Wed May 30, 2012 9:04 pm

For your inbound calls the first step is to make sure that calls on your number are reaching the SIPSorcery server. The easiest way to do that is to login to the Silverlight portal (http://www.sipsorcery.com/mainsite/Home/Portal), go to the Console tab and click Connect. Once it's connected try placing your incoming call. If it reaches the SIPSorery server then you will see a bunch of diagnostics messages. If it doesn't you probably need to set up a SIP Provider entry for the provider who is supplying you with the incoming number, see http://www.sipsorcery.com/mainsite/Help#Incoming.

The SIPSorcery service does not have a voicemail service and by default if your incoming calls aren't answered a SIP 480 Temporarily Unavailable response is returned. A lot of people do prefer to use voicemail and there are a number of free services available, see http://www.sipsorcery.com/mainsite/Help ... cVoicemail for one example.

mfranzel
Posts: 43
Joined: Wed May 30, 2012 3:16 am

Re: Help! New to SS and Need help with Configuration!!!

Post by mfranzel » Thu May 31, 2012 1:41 am

Below is what I got when I called myself to the SIP number configured. From the looks of it, the call is coming in to SS fine, however, my phones do not ring. Is there something wrong with my dial plan?

Code: Select all

Monitor 01:39:25:566: basetype=console, ipaddress=*, user=mfranzel, event=*, request=*, serveripaddress=*, server=*, regex=.*.
NATKeepAlive 01:39:30:285 sip1(4340): Requesting NAT keep-alive from proxy socket tcp:69.59.142.213:5060 to tcp:71.241.241.226:35294.
NATKeepAlive 01:39:30:332 sip1(4340): Requesting NAT keep-alive from proxy socket udp:69.59.142.213:5060 to udp:71.241.241.226:40855.
NATKeepAlive 01:39:35:363 sip1(4340): Requesting NAT keep-alive from proxy socket udp:69.59.142.213:5060 to udp:71.241.241.226:35429.
DialPlan 01:39:38:660 sip1(67780): Using dialplan ViaTalk for In call to sip:mfranzel@sipsorcery.com;rinstance=467283.
NewCall 01:39:38:675 sip1(67780): Executing script dial plan for call to mfranzel.
DialPlan 01:39:38:691 sip1(67780): New outgoing call received to mfranzel.
DialPlan 01:39:38:691 sip1(67780): UAS call failed with a response status of 404 and Oops no dial plan rule found for destination.
DialPlan 01:39:38:691 sip1(67780): Dialplan cleanup for mfranzel.
DialPlan 01:39:38:738 sip1(67780): Dial plan execution completed with normal clearing.
NATKeepAlive 01:39:40:410 sip1(4340): Requesting NAT keep-alive from proxy socket tcp:69.59.142.213:5060 to tcp:71.241.241.226:35294.
NATKeepAlive 01:39:40:457 sip1(4340): Requesting NAT keep-alive from proxy socket udp:69.59.142.213:5060 to udp:71.241.241.226:40855.
NATKeepAlive 01:39:45:488 sip1(4340): Requesting NAT keep-alive from proxy socket udp:69.59.142.213:5060 to udp:71.241.241.226:35429.
NATKeepAlive 01:39:50:535 sip1(4340): Requesting NAT keep-alive from proxy socket tcp:69.59.142.213:5060 to tcp:71.241.241.226:35294.
NATKeepAlive 01:39:50:582 sip1(4340): Requesting NAT keep-alive from proxy socket udp:69.59.142.213:5060 to udp:71.241.241.226:40855.
NATKeepAlive 01:39:55:613 sip1(4340): Requesting NAT keep-alive from proxy socket udp:69.59.142.213:5060 to udp:71.241.241.226:35429.
NATKeepAlive 01:40:00:660 sip1(4340): Requesting NAT keep-alive from proxy socket tcp:69.59.142.213:5060 to tcp:71.241.241.226:35294.
NATKeepAlive 01:40:00:707 sip1(4340): Requesting NAT keep-alive from proxy socket udp:69.59.142.213:5060 to udp:71.241.241.226:40855.
NATKeepAlive 01:40:05:738 sip1(4340): Requesting NAT keep-alive from proxy socket udp:69.59.142.213:5060 to udp:71.241.241.226:35429.
NATKeepAlive 01:40:10:785 sip1(4340): Requesting NAT keep-alive from proxy socket tcp:69.59.142.213:5060 to tcp:71.241.241.226:35294.
NATKeepAlive 01:40:10:832 sip1(4340): Requesting NAT keep-alive from proxy socket udp:69.59.142.213:5060 to udp:71.241.241.226:40855.
NATKeepAlive 01:40:15:863 sip1(4340): Requesting NAT keep-alive from proxy socket udp:69.59.142.213:5060 to udp:71.241.241.226:35429.
Registrar 01:40:18:676 sip1(4340): Binding update request for mfranzel@sipsorcery.com from udp:71.241.241.226:40855, expiry requested 120s granted 120s.
RegisterSuccess 01:40:18:707 sip1(4340): Registration successful for mfranzel@sipsorcery.com from udp:71.241.241.226:40855, binding sip:mfranzel@10.0.0.35:3072;expiry=3600 (1).
RegisterSuccess 01:40:18:707 sip1(4340): Registration successful for mfranzel@sipsorcery.com from udp:71.241.241.226:40855, binding sip:mfranzel@10.0.0.35:3940;expiry=3600 (2).
RegisterSuccess 01:40:18:707 sip1(4340): Registration successful for mfranzel@sipsorcery.com from udp:71.241.241.226:40855, binding sip:mfranzel@71.241.241.226:40855;expiry=120 (3).
NATKeepAlive 01:40:20:910 sip1(4340): Requesting NAT keep-alive from proxy socket tcp:69.59.142.213:5060 to tcp:71.241.241.226:35294.
NATKeepAlive 01:40:20:957 sip1(4340): Requesting NAT keep-alive from proxy socket udp:69.59.142.213:5060 to udp:71.241.241.226:40855.
NATKeepAlive 01:40:25:988 sip1(4340): Requesting NAT keep-alive from proxy socket udp:69.59.142.213:5060 to udp:71.241.241.226:35429.
NATKeepAlive 01:40:31:035 sip1(4340): Requesting NAT keep-alive from proxy socket tcp:69.59.142.213:5060 to tcp:71.241.241.226:35294.
NATKeepAlive 01:40:31:082 sip1(4340): Requesting NAT keep-alive from proxy socket udp:69.59.142.213:5060 to udp:71.241.241.226:40855.
NATKeepAlive 01:40:36:113 sip1(4340): Requesting NAT keep-alive from proxy socket udp:69.59.142.213:5060 to udp:71.241.241.226:35429.
NATKeepAlive 01:40:41:144 sip1(4340): Requesting NAT keep-alive from proxy socket tcp:69.59.142.213:5060 to tcp:71.241.241.226:35294.
NATKeepAlive 01:40:41:207 sip1(4340): Requesting NAT keep-alive from proxy socket udp:69.59.142.213:5060 to udp:71.241.241.226:40855.

mfranzel
Posts: 43
Joined: Wed May 30, 2012 3:16 am

Re: Help! New to SS and Need help with Configuration!!!

Post by mfranzel » Thu May 31, 2012 1:44 am

This is the part that bothers me:

Code: Select all

DialPlan 01:39:38:660 sip1(67780): Using dialplan ViaTalk for In call to sip:mfranzel@sipsorcery.com;rinstance=467283.
NewCall 01:39:38:675 sip1(67780): Executing script dial plan for call to mfranzel.
DialPlan 01:39:38:691 sip1(67780): New outgoing call received to mfranzel.
DialPlan 01:39:38:691 sip1(67780): UAS call failed with a response status of 404 and Oops no dial plan rule found for destination.
It says it is using the dial plan for the "in call" (the inbound call), but then it says a new outgoing call was received and says it failed with a 404 response. No dial plan rule for destination? So I need to make an incoming dial plan??

mfranzel
Posts: 43
Joined: Wed May 30, 2012 3:16 am

Re: Help! New to SS and Need help with Configuration!!!

Post by mfranzel » Thu May 31, 2012 1:59 am

Ah!
Got it!

I simply created an incoming dialplan and all phone ring!!
sys.Log("New incoming call received to #{req.URI.User} from #{req.Header.From.ToString()}.")

case req.URI.User
when "viatalk.mfranzel" then sys.Dial("mfranzel@sipsorcery.com")
when "callcentric.fredsin" then sys.Dial("5678@provider2")
else sys.Dial("mfranzel@sipsorcery.com")
end
(The second dummy entry I left in there because I am planing on using it for another SIP provider)

I do have to say, SIPSorcery is AMAZING, but you really need more directions!

Post Reply