[Asterisk-Users] dialplan experts needed

Joe Baptista baptista at dot-god.com
Tue Jun 8 08:43:29 MST 2004


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




More information about the asterisk-users mailing list