Looking at:
Code: Select all
case req.URI.User
when "sipgate.fredsin" then sys.Dial("1234@provider1")
when "callcentric.fredsin" then sys.Dial("5678@provider2")
else sys.Dial("youraccount@sipsorcery.com")
end
provider1.fredsin
provider2.fredsin
callcentric.fredsin
What I want to do:
calls from provider1.fredsin ring myaccount@local for 15secs
<if no answer> then
ring 12345678@provider for 15 secs
else ring callcentric voice mail.
My first attempts are:
Code: Select all
sys.Dial("myaccount@local&12345678@provider2[dt=15]|17772xxxxx0@in.callcentric.com[fu=864236145]")
Any suggestions welcomed.