On 9/3/07, Jonathan GF <jonathangf at gmail.com>
wrote:> Hi,
>
> BRIEF RESUME:
> Is there any other way to obtain the same result but being easier to
> configure?? Thanks!
Why don't you use asterisk extension masks?
exten => _3,1,Macro(dial-studio|SIP/${EXTEN}|20|Tr)
exten => _X,1,Macro(dial-rest|SIP/${EXTEN}|20|Tr)
Regards,
Atis
> EXTENDED RESUME:
> i've configured a, rather difficult, macro that even for me without
> being documented is difficult. I ask for the help of the experts to
> know if the functionality it apports can be achieved better in another
> way.
>
> What i'm trying is to enable call a channel (e.g. SIP/3) and being
> able to leave a message only on box 2 while any other call to any
> other user (e.g.SIP/1 or SIP/2) and leave a message only on mailbox 1.
> This is inteded for a SOHO environment.
>
> I have defined only two mailboxes, the 1'st for personal ussage and
> the 2'nd for profesional usage.
>
> The macro that now allows me to do that is the following:
>
> EXT_CALLER> EXT_STUDIO=SIP/3
>
> exten => _X,1,Macro(diallocal|SIP/${EXTEN}|20,Tr)
>
> [macro-diallocal]
> exten => s,1,Dial(${ARG1}|${ARG2}|${ARG3})
> exten => s,2,Set(EXT_CALLED=${ARG1})
> exten =>
s,3,GotoIf($["${EXT_CALLED}"="${EXT_STUDIO}"]?s-STUDIO-${DIALSTATUS},1:s-REST-${DIALSTATUS},1)
> exten => s-STUDIO-NOANSWER,1,Voicemail(u2)
> exten => s-STUDIO-NOANSWER,2,Hangup()
> exten => s-STUDIO-BUSY,1,Voicemail(b2)
> exten => s-STUDIO-BUSY,2,Hangup()
> exten => _s-STUDIO-.,1,Hangup()
> exten => s-REST-NOANSWER,1,Voicemail(u1)
> exten => s-REST-NOANSWER,2,Hangup()
> exten => s-REST-BUSY,1,Voicemail(b1)
> exten => s-REST-BUSY,2,Hangup()
> exten => _s-REST-.,1,Hangup()
>
> Is there any other way to obtain the same result but being easier to
configure??
>
> Thanks in advance.
> Best regards,
>
> Jonathan GF
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
--
Atis Lezdins,
IT Responsible of BEST Riga,
atis at BEST.eu.org
ICQ: 142239285
Skype: atis.lezdins
Cell Phone: +371 28806004 [Tele2, Latvia]
Work phone: +1 800 7502835 [Toll free, USA]
?BEST? -> www.BEST.eu.org