[asterisk-users] Re: Match a Numer - then continue with dialplan

Benny Amorsen benny+usenet at amorsen.dk
Wed Dec 20 06:15:53 MST 2006


>>>>> "DG" == Douglas Garstang <dgarstang at oneeighty.com> writes:

DG> So, in the event that the logic flows beyond
DG> coo1_OnNet, we want to reset the caller id of say, 3254001 <Doug>,
DG> to 3254000 <Widgets Inc>.

DG> exten => 3254101,1,Dial(SIP/3254101,20,tr)
DG> exten => 3254102,1,Dial(SIP/3254102,20,tr)
DG> exten => 3254103,1,Dial(SIP/3254103,20,tr)



[coo1_CallStart]
include => coo1_OnNet

You want something which executes here, if coo1_OnNet didn't match?

 exten => _.,1,Set(CALLERID(all)=Widgets Inc <3254001>)

will do that.


If you then want to continue in priority 1 instead of 2, you just do

 exten => _.,n,Goto(coo1_CallStart2,${EXTEN},1)

[coo1_CallStart2]
include => syst_OnNet
include => syst_OffNet


/Benny




More information about the asterisk-users mailing list