[Asterisk-Users] Call Accounting

Steven Critchfield critch at basesys.com
Tue Jul 8 17:25:06 MST 2003


You actually need to do

exten => _9NXXNXXXXXX,1,dial(Zap/1/${ETEN:1}) ; local
exten => _91NXXNXXXXXX,1,dial(Zap/1/${EXTEN:1}) ; LD

If you read the documentation and followed the examples you would
understand that the underscore starts a pattern, N is for digits 2-9, X
is for 0-9. 

On Tue, 2003-07-08 at 14:55, Erik Kendall wrote:
> Matteo,
> 
> Thank you.  I'll give it a try.
> 
> Erik
> 
> --- Brancaleoni Matteo <mbrancaleoni at espia.it> wrote:
> > That's the reason why no number is logged, since
> > you simply connect the user to the telco, and let
> > him
> > dial. To have the number logged, asterisk must
> > dial, so you can use this exten matching:
> > 
> > exten => _9.,2,Dial(Zap/1/${EXTEN:1})
> > 
> > the '.' after the nine just match anything you dial.
> > after the timeout (3 or five secs, don't remind),
> > asterisk dials the entire number to Zap/1 ,
> > stripping away the lead digit 9 , since EXTEN:1
> > means 'what have you dialled, beside the first
> > digit'
> > 
> > Matteo.
> > 
> > Il mar, 2003-07-08 alle 20:55, Erik Kendall ha
> > scritto:
> > > Yes, I'm using a 9.  I tried the following found
> > in
> > > sample extension.conf, but it didn't work because
> > I
> > > have 10 digit local dialing.
> > > 
> > > #exten => _9NXXXXXX,1,StripMSD,1
> > > #exten => _NXXXXXX,2,Dial,Zap/1/BYEXTENSION
> > > 
> > > So, I started using the following with success:
> > > 
> > > #ignorepat => 9
> > > #exten => 9,1,Dial,Zap/1/
> > > 
> > > What should I use for 10-digit local and 11-digit
> > long
> > > distance dialing?
> > > 
> > > Thanks,
> > > Erik
> > > 
> > > --- Brancaleoni Matteo <mbrancaleoni at espia.it>
> > wrote:
> > > > are you using some exten to get an external
> > > > dialtone?
> > > > like 0 -> give a dialtone
> > > > then compose the number
> > > > 
> > > > In this way numbers could not be logged, since
> > > > are dialled 'natively' on the telco dialtone by
> > the
> > > > user,
> > > > not by asterisk.
> > > > 
> > > > Matteo.
> > > > 
> > > > Il mar, 2003-07-08 alle 19:07, Erik Kendall ha
> > > > scritto:
> > > > > Why doesn't the CDR show outgoing numbers?  I
> > need
> > > > a
> > > > > record of outbound digits dialed to reconcile
> > my
> > > > phone bills.
> > > > > 
> > > > > __________________________________
> > > > > Do you Yahoo!?
> > > > > SBC Yahoo! DSL - Now only $29.95 per month!
> > > > > http://sbc.yahoo.com
> > > > >
> > _______________________________________________
> > > > > Asterisk-Users mailing list
> > > > > Asterisk-Users at lists.digium.com
> > > > >
> > > >
> > >
> >
> http://lists.digium.com/mailman/listinfo/asterisk-users
> > > > 
> > > > _______________________________________________
> > > > Asterisk-Users mailing list
> > > > Asterisk-Users at lists.digium.com
> > > >
> > >
> >
> http://lists.digium.com/mailman/listinfo/asterisk-users
> > > 
> > > 
> > > __________________________________
> > > Do you Yahoo!?
> > > SBC Yahoo! DSL - Now only $29.95 per month!
> > > http://sbc.yahoo.com
> > > _______________________________________________
> > > Asterisk-Users mailing list
> > > Asterisk-Users at lists.digium.com
> > >
> >
> http://lists.digium.com/mailman/listinfo/asterisk-users
> > 
> > _______________________________________________
> > Asterisk-Users mailing list
> > Asterisk-Users at lists.digium.com
> >
> http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> 
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
-- 
Steven Critchfield <critch at basesys.com>




More information about the asterisk-users mailing list