VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
abdul_zu at yahoo.com Guest
|
Posted: Thu Feb 07, 2008 4:22 am Post subject: [asterisk-users] Two Leg CDR |
|
|
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 |
|
Back to top |
|
|
michiel at vanbaak.info Guest
|
Posted: Thu Feb 07, 2008 4:38 am Post subject: [asterisk-users] Two Leg CDR |
|
|
On 01:22, Thu 07 Feb 08, Abdul wrote:
Quote: | 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?" |
|
Back to top |
|
|
support at ocg.ca Guest
|
Posted: Thu Feb 07, 2008 9:07 am Post subject: [asterisk-users] Two Leg CDR |
|
|
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 |
|
Back to top |
|
|
atis at iq-labs.net Guest
|
Posted: Thu Feb 07, 2008 10:35 am Post subject: [asterisk-users] Two Leg CDR |
|
|
On 2/7/08, Abdul <abdul_zu at yahoo.com> wrote:
Quote: | 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)
Quote: |
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 |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|