On Saturday 27 October 2007 14:35:55 Benny Amorsen wrote:
> >>>>> "DL" == Doug Lytle <[EMAIL PROTECTED]> writes:
>
> DL> Michelle Dupuis wrote:
> >> Ok - that's great. I see how the destination number will match to
> >> the exten value, but how do I access the from number '248xxxxxxx'?
>
> DL> exten => s,1,GotoIf($["${CALLERID(number)}" = "248xxxxxxx" ]?2:3)
>
> That works, of course, but there's also the traditional
> ex-gf-function:
>
> exten => s/248XXXXXXX,1,NoOp(Matched 248...)
> exten => s/X!,1,NoOp(Didn't match)You can just as easily do the default without any match at all, i.e. exten => s/248XXXXXXX,1,NoOp(Matched 248...) exten => s,1,NoOp(Didn't match) Looks cleaner, too. -- Tilghman _______________________________________________ --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
