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 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!!!!!