SIP Extensions Syntax

Can anyone help,

I can do this…

exten => 01904898155,1,Dial(SIP/phone2000)

…and it will map my incoming number from my voip provider to a sip device called “phone2000”. But I want to do this…

exten => 2222,1,Dial(SIP/phone2000,15,rt)
exten => 2222,2,Dial(SIP/phone2002,15,rt)
exten => 2222,3,Dial(SIP/phone2001,15,rt)
exten => 2222,4,Voicemail,u2001

exten => 01904898155,1,Dial(SIP/2222)

…so that my incoming number will ring round a bunch of extensions and then go to voicemail. My “hunt group” 2222 works nicely internally, but I can’t seem to point my external number at it, i always just get the error…

“Unable to create channel of type ‘SIP’
== Everyone is busy/congested at this time”

I’m sure this is just a question of syntax. Can anyone please tell me what I’m doing wrong here?

Thanks in advance,

Adam.

Never done this, but I’m going to guess that you want:

[incoming]
01904898155,1,Goto(hunt|s|1)

[hunt]
exten => s,1,Answer()
exten => s,2,Dial(SIP/phone2000,15,rt)
exten => s,3,Hangup()
exten => s,103,Dial(SIP/phone2002,15,rt)
exten => s,104,Hangup()
exten => s,204,Dial(SIP/phone2001,15,rt)
exten => s,205,Hangup()
exten => s,305,Voicemail(u2001@default)
exten => s,306,Hangup()

Make sure that calls coming in from your provider are routed to the [incoming] context, either in your sip.conf or iax.conf, depending on where your register command is.

Also worth noting that having to listen to a phone ring for 45 seconds before it goes to voicemail isn’t going to please many people. I would reduce the dial timeouts considerably.