[Asterisk-Dev] CDR question

Steven Critchfield critch at basesys.com
Mon Jul 21 11:28:02 MST 2003


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