In this dialplan, the SIP user agent is a Sipura two line adapter with line 1 as SIP ID "1000" and line 2 as SIP ID "2000". Basically I have this set up so that 1000 and 2000 are "lines in hunting" on incoming extension "555". I want an incoming call to try to ring ext. 1000, if 1000 is busy, then ring 2000, if 2000 is also busy than ring Voicemail. Here is what I have now and it seems to work okay: exten => 555,1,Dial(SIP/1000,30) exten => 555,102,Dial(SIP/2000,30) exten => 555,103,VoiceMail2(u3278) exten => 555,104,Hangup exten => 555,2,VoiceMail2(u3278) exten => 555,3,Hangup Is this correct? What if there were a third SIP device "3000" ? Would it look like: exten => 555,1,Dial(SIP/1000,30) exten => 555,102,Dial(SIP/2000,30) exten => 555,103,Dial(SIP/3000,30) exten => 555,104,Voicemail2(u3278) exten => 555,105,Hangup exten => 555,2,VoiceMail2(u3278) exten => 555,3,Hangup That doesn't seem correct. Also, quick note, the user does not want to have a different busy and unavailable message, so that is why I have it set up to always be the "unavailable" message for voicemail. thanks for the help! Matthew
Matthew, Dial works on a fall thru principle. Thus: exten => 555,1,Dial(SIP/1000,30) exten => 555,2,Dial(SIP/2000,30) should suit your purpose (not taking into account vm), to add another exten just add it on the dial 'list': exten => 555,1,Dial(SIP/1000,30) exten => 555,2,Dial(SIP/2000,30) exten => 555,3,Dial(SIP/3000,30) voicemail should be positioned at (exten + 101) for busy - I'd stick noop's in to allow the hangup before the next exten => 555,1,Dial(SIP/1000,30) exten => 555,2,NOOP exten => 555,3,Dial(SIP/2000,30) exten => 555,4,NOOP exten => 555,5,Dial(SIP/3000,30) exten => 555,6,NOOP exten => 555,102,VoiceMail2(u3278) exten => 555,103,Hangup exten => 555,104,VoiceMail2(u3278) exten => 555,105,Hangup exten => 555,106,VoiceMail2(u3278) exten => 555,107,Hangup this wont allow the dial of 2000 or 3000 if 1000 is busy, it would go to vm. Ok, that's a bit of explaination, here's what you are prolly interested in exten => 555,1,Dial(SIP/1000,30) exten => 555,2,Dial(SIP/2000,30) exten => 555,3,VoiceMail2(u3278) exten => 555,4,Hangup exten => 555,103,VoiceMail2(u3278) exten => 555,104,Hangup And you probably want call waiting turned off... HTH Andy *********** REPLY SEPARATOR *********** On 07/06/2004 at 23:34 Matthew Simpson wrote:>In this dialplan, the SIP user agent is a Sipura two line adapter with >line >1 as SIP ID "1000" and line 2 as SIP ID "2000". Basically I have this set >up so that 1000 and 2000 are "lines in hunting" on incoming extension >"555". > >I want an incoming call to try to ring ext. 1000, if 1000 is busy, then >ring >2000, if 2000 is also busy than ring Voicemail. Here is what I have now >and >it seems to work okay: > >exten => 555,1,Dial(SIP/1000,30) >exten => 555,102,Dial(SIP/2000,30) >exten => 555,103,VoiceMail2(u3278) >exten => 555,104,Hangup >exten => 555,2,VoiceMail2(u3278) >exten => 555,3,Hangup > >Is this correct? What if there were a third SIP device "3000" ? Would it >look like: > >exten => 555,1,Dial(SIP/1000,30) >exten => 555,102,Dial(SIP/2000,30) >exten => 555,103,Dial(SIP/3000,30) >exten => 555,104,Voicemail2(u3278) >exten => 555,105,Hangup >exten => 555,2,VoiceMail2(u3278) >exten => 555,3,Hangup > >That doesn't seem correct. Also, quick note, the user does not want to >have >a different busy and unavailable message, so that is why I have it set up >to >always be the "unavailable" message for voicemail. > >thanks for the help! >Matthew > >_______________________________________________ >Asterisk-Users mailing list >Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users >To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
> exten => 555,1,Dial(SIP/1000,30)> exten => 555,102,Dial(SIP/2000,30) > exten => 555,103,Dial(SIP/3000,30) > exten => 555,104,Voicemail2(u3278) > exten => 555,105,Hangup > exten => 555,2,VoiceMail2(u3278) > exten => 555,3,Hangup ...should be.... exten => 555,1,Dial(SIP/1000,30) ; Unanswered = 2, Busy = 102 exten => 555,2,VoiceMail2(u3278) exten => 555,3,Hangup exten => 555,102,Dial(SIP/2000,30) ; Unanswered = 103, Busy = 203 exten => 555,103,VoiceMail2(u3278) exten => 555,104,Hangup exten => 555,203,Dial(SIP/3000,30) ; Unanswered = 204, Busy = 304 exten => 555,204,Voicemail2(u3278) exten => 555,205,Hangup exten => 555,304,VoiceMail2(u3278) exten => 555,305,Hangup You just have to remember that BUSY or not-registered/not-available will goto +101 in the priority of the extension. Unanswered will goto +1 in the priority of the extension. John
I have the same situation - i.e. three different extensions scattered about. But I don't try them each individually. When a call comes in my asterisk attempts to ring up to four different devices at the same time. To do this using your dial plan is easy - i.e. exten => 555,1,Dial(SIP/1000&SIP/2000&SIP/3000,30) exten => 555,2,VoiceMail2(u3278) exten => 555,3,Hangup All the phones will ring at the same time and the phone to pick up first wins. regards joe On Mon, 7 Jun 2004, Matthew Simpson wrote:> In this dialplan, the SIP user agent is a Sipura two line adapter with line > 1 as SIP ID "1000" and line 2 as SIP ID "2000". Basically I have this set > up so that 1000 and 2000 are "lines in hunting" on incoming extension "555". > > I want an incoming call to try to ring ext. 1000, if 1000 is busy, then ring > 2000, if 2000 is also busy than ring Voicemail. Here is what I have now and > it seems to work okay: > > exten => 555,1,Dial(SIP/1000,30) > exten => 555,102,Dial(SIP/2000,30) > exten => 555,103,VoiceMail2(u3278) > exten => 555,104,Hangup > exten => 555,2,VoiceMail2(u3278) > exten => 555,3,Hangup > > Is this correct? What if there were a third SIP device "3000" ? Would it > look like: > > exten => 555,1,Dial(SIP/1000,30) > exten => 555,102,Dial(SIP/2000,30) > exten => 555,103,Dial(SIP/3000,30) > exten => 555,104,Voicemail2(u3278) > exten => 555,105,Hangup > exten => 555,2,VoiceMail2(u3278) > exten => 555,3,Hangup > > That doesn't seem correct. Also, quick note, the user does not want to have > a different busy and unavailable message, so that is why I have it set up to > always be the "unavailable" message for voicemail. > > thanks for the help! > Matthew > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >