Hi all,
i am wondering if i can make two leg cdr in mysql cdr table.
1st Leg : Registrar the ATA which registered to the asterisk and it normally
logging in cdr table.
2nd Leg : The CDR of carrier for the example if i send call like
exten => _x.,1,Dial(SIP/${EXTEN}@AT&TIP)
I this cause i can get the accrue duration of call because currently we are
facing some call missing not coming in CDR and some call coming with wrong
duration, when we check that wrong duration log in third party carrier CDR page
we can see the duration is less than asterisk and it is different in minutes
mote than 10 and 20 and some time 1 hr different.
Please suggest us if possible to log CDR of "AT&TIP" ?
Thank You
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20080207/4ad52aa3/attachment.htm
On 01:22, Thu 07 Feb 08, Abdul wrote:> Hi all, > > i am wondering if i can make two leg cdr in mysql cdr table. > > 1st Leg : Registrar the ATA which registered to the asterisk and it normally logging in cdr table. > > 2nd Leg : The CDR of carrier for the example if i send call like > > exten => _x.,1,Dial(SIP/${EXTEN}@AT&TIP) > > > I this cause i can get the accrue duration of call because currently we are facing some call missing not coming in CDR and some call coming with wrong duration, when we check that wrong duration log in third party carrier CDR page we can see the duration is less than asterisk and it is different in minutes mote than 10 and 20 and some time 1 hr different. > > Please suggest us if possible to log CDR of "AT&TIP" ?exten => _X.,1,Set(CALLERID(accountcode)=OUTBOUND_ATT) exten => _X.,n,Dial(SIP/${EXTEN}@AT&TIP) That way you can filter by accountcode -- Michiel van Baak michiel at vanbaak.eu http://michiel.vanbaak.eu GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x71C946BD "Why is it drug addicts and computer aficionados are both called users?"
Hi,
I tired to use the following configuration but still in cdr table i can see only
one record.
sip.conf
[444]
type=friend
username=444
secret=444
host=dynamic
nat=yes
context=vpstoteles
disallow=all
allow=all
Extentions.conf
[vpstoteles]
exten => _X.,1,Set(CALLERID(accountcode)=212.XXX.XXX.240)
exten => _X.,n,Dial(SIP/${EXTEN}@212.XXX.XXX.240)
exten => s,2,Hangup
In CDR table accountcode for this call is empty and also we can see only one
record.
Plase advice us how i can get two record in CDR table one for Registrar (444)
and second for carrier (212.XXX.XXX.240)?
Thank You
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20080207/ea9e69b8/attachment.htm
Just something I noticed: your third line from extensions.conf begins with
"s", while the other two begin with "_X".
Michelle Dupuis
Technical Support Specialist
Generation Software - Linux and Asterisk solutions and support. Visit us at
www.generationd.com <http://www.generationd.com/>
_____
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Abdul
Sent: Thursday, February 07, 2008 8:52 AM
To: Abdul; Asterisk Users List
Subject: Re: [asterisk-users] Two Leg CDR
Hi,
I tired to use the following configuration but still in cdr table i can see
only one record.
sip.conf
[444]
type=friend
username=444
secret=444
host=dynamic
nat=yes
context=vpstoteles
disallow=all
allow=all
Extentions.conf
[vpstoteles]
exten => _X.,1,Set(CALLERID(accountcode)=212.XXX.XXX.240)
exten => _X.,n,Dial(SIP/${EXTEN}@212.XXX.XXX.240)
exten => s,2,Hangup
In CDR table accountcode for this call is empty and also we can see only one
record.
Plase advice us how i can get two record in CDR table one for Registrar
(444) and second for carrier (212.XXX.XXX.240)?
Thank You
_____
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try
<http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8
HDtDypao8Wcj9tAcJ> it now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20080207/ae48fed1/attachment.htm
Hi,
I tired to use the following configuration but still in cdr table i can see only
one record.
sip.conf
[444]
type=friend
username=444
secret=444
host=dynamic
nat=yes
context=vpstoteles
disallow=all
allow=all
Extentions.conf
[vpstoteles]
exten => _X.,1,Set(CALLERID(accountcode)=212.XXX.XXX.240)
exten => _X.,n,Dial(SIP/${EXTEN}@212.XXX.XXX.240)
exten => s,2,Hangup
In CDR table accountcode for this call is empty and also we can see only one
record.
Plase advice us how i can get two record in CDR table one for Registrar (444)
and second for carrier (212.XXX.XXX.240)?
Thank You
---------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20080207/eebeb6b3/attachment.htm
On 2/7/08, Abdul <abdul_zu at yahoo.com> wrote:> Hi, > > I tired to use the following configuration but still in cdr table i can see > only one record. > > sip.conf > > [444] > type=friend > username=444 > secret=444 > host=dynamic > nat=yes > context=vpstoteles > disallow=all > allow=all > > Extentions.conf > [vpstoteles] > exten => _X.,1,Set(CALLERID(accountcode)=212.XXX.XXX.240) > exten => _X.,n,Dial(SIP/${EXTEN}@212.XXX.XXX.240) > exten => s,2,Hangup > > In CDR table accountcode for this call is empty and also we can see only one > record.it should be: Set(CDR(accountcode)=212.xxx.xxx.240)> > Plase advice us how i can get two record in CDR table one for Registrar > (444) and second for carrier (212.XXX.XXX.240)?There are several results you might want: 1) Two CDRs split the total duration. Add ResetCDR(w) directly before dial. 2) First CDR for whole call (including Dial to operator and anything before) and second for just Dial to operator - use ForkCDR() before Dial. Regards, Atis -- Atis Lezdins VoIP Developer, IQ Labs Inc. atis at iq-labs.net Skype: atis.lezdins Cell Phone: +371 28806004 Work phone: +1 800 7502835