[Asterisk-Dev] CDR question

Steven Critchfield critch at basesys.com
Tue Jul 22 02:26:44 MST 2003


On Tue, 2003-07-22 at 04:02, Sergio Serrano Revuelto wrote:
> Thanks, but it was a problem:
> 
> [outgoing]
> exten => 99,1,Goto(outgoing-fijo,s,1)  		IT DOESN'T WORK
> exten => 96,1,Goto(outgoing-movil,s,1) 		IT DOESN'T WORK
> 
> If I put _99 or _96, then,

Don't put an underscore before an exact match. underscores are for
pattern matching. If the above didn't work, either it isn't happy about
the hyphen, or you aren't getting to the outgoing context to match. And
if this is so, then of course the rest wasn't getting looked at.

> [outgoing-fijo]
> ; stupid trick to get into context without doing anything
> exten => s,1,NoOp()
> exten => _XXXXXXXX,1,Dial(CAPI/@951014943:${EXTEN}|17) 		IT
> DOESN'T MATCH WITH NUMBER
> exten => _XXXXXXXX,2,Dial(CAPI/@951014944:${EXTEN}|17) 		IT
> DOESN'T MATCH WITH NUMBER
> 
> [outgoing-movil]
> ; stupid trick to get into context without doing anything
> exten => s,1,NoOp()
> exten => _XXXXXXXX,1,Dial(Zap/1/${EXTEN}|17)
> IT DOESN'T MATCH WITH NUMBER
> 
> 
> Any idea more?
> 
> srsergio
> 
> -----Mensaje original-----
> De: asterisk-dev-admin at lists.digium.com
> [mailto:asterisk-dev-admin at lists.digium.com] En nombre de Steven
> Critchfield
> Enviado el: lunes, 21 de julio de 2003 20:28
> Para: asterisk-dev at lists.digium.com
> Asunto: RE: [Asterisk-Dev] CDR question
> 
> 
> On Mon, 2003-07-21 at 12:52, Sergio Serrano Revuelto wrote:
> > But you must strip first digit, is not?
> > 
> > Below I put some example that my extensions.conf, but this 
> > configuration doesn't work.
> > 
> > [outgoing]
> > exten=>_99XXXXXXXX,1,StripMSD(1)
> > exten=>_9XXXXXXXX,2,Goto(fijo|BYEXTENSION,1)
> > exten=>_96XXXXXXXX,1,StripMSD(1)
> > exten=>_6XXXXXXXX,2,Goto(movil|BYEXTENSION|1)
> > 
> > [fijo]
> > exten=>_9XXXXXXXX,1,Dial(CAPI/@951014943:BBYEXTENSION|17)
> > exten=>_9XXXXXXXX,2,Dial(CAPI/@951014944:BBYEXTENSION|17)
> > 
> > [movil]
> > exten=>_6XXXXXXXX,1,Dial(Zap/1/BYEXTENSION|17)
> 
> 
> First, BYEXTENSION is deprecated, please use ${EXTEN} instead. Next, try
> this idea.
> 
> [outgoing]
> exten => 99,1,Goto(outgoing-fijo,s,1) 
> exten => 96,1,Goto(outgoing-movil,s,1) 
> 
> [outgoing-fijo]
> ; stupid trick to get into context without doing anything
> exten => s,1,NoOp()
> exten => _XXXXXXXX,1,Dial(CAPI/@951014943:${EXTEN}|17)
> exten => _XXXXXXXX,2,Dial(CAPI/@951014944:${EXTEN}|17)
> 
> [outgoing-movil]
> ; stupid trick to get into context without doing anything
> exten => s,1,NoOp()
> exten => _XXXXXXXX,1,Dial(Zap/1/${EXTEN}|17)
> 
> 
> Of course your other option is to use your favorite app to remove the
> 9's from the list. 
> 
> 
> 
> 
> 
> > -----Mensaje original-----
> > De: asterisk-dev-admin at lists.digium.com
> > [mailto:asterisk-dev-admin at lists.digium.com] En nombre de Steven 
> > Critchfield Enviado el: lunes, 21 de julio de 2003 19:37
> > Para: asterisk-dev at lists.digium.com
> > Asunto: Re: [Asterisk-Dev] CDR question
> > 
> > 
> > On Mon, 2003-07-21 at 11:50, Sergio Serrano Revuelto wrote:
> > > Hi,
> > > 	I would like to know how suppress number for outside dialling in
> > CDR
> > > table. For example, if I need press 9 key to make an outside call, I
> > > would like that the number in dst field in cdr table was the outside
> 
> > > number without 9 key. It's possible?
> > 
> > You could always use the 9 to jump to a context that then accepted the
> 
> > number patterns without the 9. This would mean that the dialed number 
> > at this point wouldn't contain the 9.
-- 
Steven Critchfield <critch at basesys.com>




More information about the asterisk-dev mailing list