MacroIf is quite handy too. That is what I predominantly use as it is neater. It uses the same syntax as GotoIf.
Mike
| "Tom Lynn" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED] 01/06/2006 12:20 PM
|
|
Mark,
I'm doing some conditional call recording based on incoming ANI. I
have to pre-populate these in the ASTDB, but since there are very few
that I require, this hasn't been a problem.
It looks like this:
exten => s,3,Set(RECORDME=${DB_EXISTS(recordme/${CALLERIDNUM})})
; Check CID against Recordme List
exten => s,4,GotoIf($["${RECORDME}" = "1"]?5:7)
It took me what seemed like FOREVER to get the proper syntax for
GotoIf to work properly. I though you might appreciate an example.
On 5/31/06, Mark Spring <[EMAIL PROTECTED]> wrote:
> I'm pulling my hair out reading all the various options that I can put
> into my dialplan but I can't really find one that fits my needs. I
> have a voicemail system setup that is taking calls from a softswitch
> and forwards calls to a specific mailbox if RDNIS is set at all, and
> to the main voicemail login if it is not set. Now, I'm hoping to send
> a group of numbers to another context entirely. Does anybody know of a
> command that would do this for me? I thought about using gotoif, but I
> would have to add additional priorities for each phone number I do
> this for which doesn't sound like a good idea.
>
> What I think would be ideal is if I could compare RDNIS to a file, if
> it finds the number in the file....it goes to one place, otherwise it
> keeps right on going. This way I could add one line per group of
> people I wanted to forward off. If it comes into this set it goes to
> the group1 context, if it comes from another set of numbers(another
> file, another priority in exten.conf) then it goes to the engineers
> context or something along those lines. This is all in effort so I can
> build a tree on my machine.
>
> I'm sure sooner or later I will dig something up that will work but if
> anybody has any suggestions, I'm all ears.
>
> Mark
> _______________________________________________
> Astlinux-users mailing list
> [email protected]
> http://lists.kriscompanies.com/mailman/listinfo/astlinux-users
>
> Donations to support AstLinux are graciously accepted via PayPal to [EMAIL PROTECTED]
>
_______________________________________________
Astlinux-users mailing list
[email protected]
http://lists.kriscompanies.com/mailman/listinfo/astlinux-users
Donations to support AstLinux are graciously accepted via PayPal to [EMAIL PROTECTED]
_______________________________________________ Astlinux-users mailing list [email protected] http://lists.kriscompanies.com/mailman/listinfo/astlinux-users
Donations to support AstLinux are graciously accepted via PayPal to [EMAIL PROTECTED]
