[asterisk-users] Re: Match a Numer - then continue with dialplan
Benny Amorsen
benny+usenet at amorsen.dk
Wed Dec 20 15:22:01 MST 2006
>>>>> "DG" == Douglas Garstang <dgarstang at oneeighty.com> writes:
DG> Ok, but how does that help me? All I want to do is set a variable
DG> to be used later on in the dialplan. Eg, if someone dialls
DG> 2944000, which is in a different company...:
DG> [co1_phone-start]
DG> include => co1_did
DG> include => sys_glue
DG> [co1_did]
DG> exten => 3254101,1,Dial(SIP/3254101,18,tr)
DG> exten => 3254102,1,Dial(SIP/3254102,18,tr)
DG> exten => 3254103,1,Dial(SIP/3254103,18,tr)
DG> ; No match, so now we want to use the external caller id variable for use later on, when
DG> ; we finally dial the dest number after performing all restriction and feature checks.
DG> ; Actually I just realised we want to SET the caller id.
DG> [sys-glue]
DG> include co1_did
DG> include co2_did
Change co1_phone-start to:
include => co1_did
exten => _.,1,Set(CALLERID(num)=12345)
exten => _.,n,Goto(sys-glue,${EXTEN},1)
/Benny
More information about the asterisk-users
mailing list