> -----Original Message-----
> From: Benny Amorsen [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 20, 2006 1:14 PM
> To: asterisk-users@lists.digium.com
> Subject: [asterisk-users] Re: Match a Numer - then continue with
> dialplan
> 
> 
> >>>>> "DG" == Douglas Garstang <[EMAIL PROTECTED]> writes:
> 
> >> -----Original Message----- From: Benny Amorsen
> >> [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 20, 2006
> >> 6:16 AM To: asterisk-users@lists.digium.com Subject:
> >> [asterisk-users] Re: Match a Numer - then continue with dialplan
> >> 
> >> exten => _.,n,Goto(coo1_CallStart2,${EXTEN},1)
> >> 
> >> [coo1_CallStart2] include => syst_OnNet include => syst_OffNet
> 
> DG> That won't do it. Processing will continue in the current
> DG> extension priority. I need it to continue looking for an extension
> DG> to match against. Once Asterisk has matched the dialled number
> DG> against an extension in the dialplan, your stuck in an
> DG> extension.... you can never get out and get Asterisk to go back to
> DG> looking for extensions to match against.
> 
> It looks for extensions to match against all the time. What you say
> makes no sense.
> 
> E.g. this code works, with EXTEN being 321 and starting in incoming.
> 
> [incoming]
>  exten => _3XX,1,NoOp("We get to this place")
>  exten => _X2X,2,Goto(incoming,${EXTEN},700)
>  exten => _XX1,700,NoOp("We end up here")
> 
> If EXTEN was 301, only priority 1 would run. If it was 320, priority 1
> and 2 would run.

Ok, but how does that help me? All I want to do is set a variable to be used 
later on in the dialplan.
Eg, if someone dialls 2944000, which is in a different company...:

[co1_phone-start]
include => co1_did
include => sys_glue

[co1_did]
exten => 3254101,1,Dial(SIP/3254101,18,tr)
exten => 3254102,1,Dial(SIP/3254102,18,tr)
exten => 3254103,1,Dial(SIP/3254103,18,tr)

; No match, so now we want to use the external caller id variable for use later 
on, when
; we finally dial the dest number after performing all restriction and feature 
checks.
; Actually I just realised we want to SET the caller id.

[sys-glue]
include co1_did
include co2_did



_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to