[asterisk-users] Treating T1 as trunk in/out, not individual lines

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Sun Oct 28 08:19:37 CDT 2007


On Saturday 27 October 2007 14:35:55 Benny Amorsen wrote:
> >>>>> "DL" == Doug Lytle <support at drdos.info> 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



More information about the asterisk-users mailing list