[Asterisk-Users] missing cdr records

Rosario Pingaro rpingar at nesec.it
Thu Jun 23 12:55:14 MST 2005


I will start to post my extensions.conf
Tomorrow I will try to run asterisk in the very verbose mode.

Thanks about the support

[general]
static=yes
writeprotect=no

[macro-gw-voipjet]
;exten => s,1,SetCallerID(${CALLERIDNAME})
exten => s,1,Dial,IAX2/xxxxxxx at voipjet/${ARG1}
exten => s,2,Goto(s-${DIALSTATUS},1)
exten => s-BUSY,1,Busy
exten => s-CHANUNAVAIL,1,Noop
exten => _s-.,1,Congestion

[macro-gw-nufone]
;exten => s,1,SetCallerID(${CALLERIDNAME})
exten => s,1,Dial,IAX2/xxxxxxxxxx at NuFone/${ARG1}
exten => s,2,Goto(s-${DIALSTATUS},1)
exten => s-BUSY,1,Busy
exten => s-CHANUNAVAIL,1,Noop
exten => _s-.,1,Congestion

[macro-gw-ipcs]
exten => s,1,SetCallerID(${CALLERIDNAME})
exten => s,2,Dial,IAX2/xxxxxx at ipcs/${ARG1}
exten => s,3,Goto(s-${DIALSTATUS},1)
exten => s-BUSY,1,Busy
exten => s-CHANUNAVAIL,1,Noop
exten => _s-.,1,Congestion

[macro-gw-voipmode.com-out]
;exten => s,1,SetCallerID(${CALLERIDNAME})
exten => s,1,Dial,IAX2/xxxxxxx at voipmode.com-out/${ARG1}
exten => s,2,Goto(s-${DIALSTATUS},1)
exten => s-BUSY,1,Busy
exten => s-CHANUNAVAIL,1,Noop
exten => _s-.,1,Congestion

[macro-gw-unidata-out]
;exten => s,1,SetCallerID(${CALLERIDNAME})
exten => s,1,Dial,SIP/unidata-out/${ARG1}
exten => s,2,Goto(s-${DIALSTATUS},1)
exten => s-BUSY,1,Busy
exten => s-CHANUNAVAIL,1,Noop
exten => _s-.,1,Congestion

[macro-gw-ser-in]
;exten => s,1,SetCallerID(${CALLERIDNAME})
exten => s,1,Dial,SIP/sip-in/${ARG1}
exten => s,2,Goto(s-${DIALSTATUS},1)
exten => s-BUSY,1,Busy
exten => s-CHANUNAVAIL,1,Noop
exten => _s-.,1,Congestion



[ser]
; combinazione 81 - per provider americani - destinaione usa e canada
exten => _81.,1,Macro(gw-nufone,${EXTEN:1})  ; NuFone
exten => _81.,2,Macro(gw-voipjet,${EXTEN:1}) ; VoipJet.com
exten => _81.,3,Congestion

; combinazione 8011 - per provider americani - destinaione 
rotteinternazionali
exten => _8011.,1,Macro(gw-voipjet,${EXTEN:1}) ; VoipJet.com
exten => _8011.,2,Macro(gw-nufone,${EXTEN:1})  ; NuFone
exten => _8011.,3,Congestion


; combinazione 9 - per provider italiani - gestisce prefissi italiani
exten => _9.,1,Macro(gw-voipmode.com-out,${EXTEN:1}) ; Voipmode.com
exten => _9.,2,Macro(gw-unidata-out,${EXTEN:1}) ; Unidata
exten => _9.,3,Macro(gw-ipcs,${EXTEN:1})  ; RB-IPCS
exten => _9.,4,Congestion





[technet]
exten => _.,1,Macro(gw-ser-in,${EXTEN}) ; to ser
exten => _.,2,Congestion[root at voip ~]#

----- Original Message ----- 
From: "Moises Silva" <moises.silva at gmail.com>
To: <ptraue at neospire.net>; "Asterisk Users Mailing List - Non-Commercial 
Discussion" <asterisk-users at lists.digium.com>
Sent: Thursday, June 23, 2005 2:37 PM
Subject: Re: [Asterisk-Users] missing cdr records


Hi Paul and Rosario.

Im workin with Asterisk since 1.0 version, not having troubles with
CDR. So lets try to debug your extensions.conf. Can you post the
output in the Asterisk Console with a high verbosity level (asterisk
-vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvr) when a call
is not Recorded??? i know may be its kind of difficutl, but i guess is
necessary to debug.

Best regards

An advice is always Answer() the calls, strange things can happend if
you dont do so. I was receiving BillSec = 0 when not answering certain
calls.

On 6/23/05, Paul Traue, Jr. <ptraue at neospire.net> wrote:
> Rosario,
>
> Unfortunately this problem doesn't just affect you, I'm also affected
> and have been since 1.0.5.  If you set the debugging high enough and use
> mysql, you'll see the insert statements being generated by asterisk, but
> they never make it to the DB.
>
> I'm glad to know I'm not the only one affected.  Any others experiencing
> this problem or have a fix?
>
> Paul
>
> Rosario Pingaro wrote:
> > I am experiencing a very wired problem.
> >
> > Some of my cdr are lost.
> >
> > I use logging cdr to csv, mysql and odbc. But some of them are lost.
> > They miss in csv mysql and odbc, so i'm pretty sure it is related to
> > asterisk functioning.
> >
> > I am running asterisk 1.0.7; this is simple configuration file:
> >
> > extensions.conf
> > [general]
> > static=yes
> > writeprotect=no
> >
> > [macro-gw-voipjet]
> > exten => s,1,SetCallerID(${CALLERIDNAME})
> > exten => s,2,Dial,IAX2/XXXX at voipjet/${ARG1}
> > exten => s,3,Goto(s-${DIALSTATUS},1)
> > exten => s-BUSY,1,Busy
> > exten => s-CHANUNAVAIL,1,Noop
> > exten => _s-.,1,Congestion
> > [macro-gw-nufone]
> > exten => s,1,SetCallerID(${CALLERIDNAME})
> > exten => s,2,Dial,IAX2/rpingar at NuFone/${ARG1}
> > exten => s,3,Goto(s-${DIALSTATUS},1)
> > exten => s-BUSY,1,Busy
> > exten => s-CHANUNAVAIL,1,Noop
> > exten => _s-.,1,Congestion
> > [ser]
> > ; combinazione 81 - per provider americani - destinaione usa e canada
> > exten => _81.,1,Macro(gw-nufone,${EXTEN:1})  ; NuFone
> > exten => _81.,2,Macro(gw-voipjet,${EXTEN:1}) ; VoipJet.com
> > exten => _81.,3,Congestion
> >
> > ; combinazione 8011 - per provider americani - destinaione
> > rotteinternazionali
> > exten => _8011.,1,Macro(gw-voipjet,${EXTEN:1}) ; VoipJet.com
> > exten => _8011.,2,Macro(gw-nufone,${EXTEN:1})  ; NuFone
> > exten => _8011.,3,Congestion
> >
> >
> > the percentage of cdr lost is around 5% and they are pretty concentrate
> > in the meaning that if I loose 5 cdrs they are lost 3 in around 2
> > minutes interval and 2 in anothe short interval.
> >
> > Any advice on how to debug ?
> >
> > thanks
> > Rosario
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Asterisk-Users mailing list
> > Asterisk-Users at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> > To UNSUBSCRIBE or update options visit:
> >    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
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>


-- 
"Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org"
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users






More information about the asterisk-users mailing list