[asterisk-users] Two Leg CDR

Michiel van Baak michiel at vanbaak.info
Thu Feb 7 03:38:19 CST 2008


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?"




More information about the asterisk-users mailing list