Re: [asterisk-users] Two Leg CDR

2008-02-07 Thread Michiel van Baak
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/[EMAIL PROTECTED]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 ATTIP ?

exten = _X.,1,Set(CALLERID(accountcode)=OUTBOUND_ATT)
exten = _X.,n,Dial(SIP/[EMAIL PROTECTED]TIP)

That way you can filter by accountcode

-- 

Michiel van Baak
[EMAIL PROTECTED]
http://michiel.vanbaak.eu
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x71C946BD

Why is it drug addicts and computer aficionados are both called users?


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Two Leg CDR

2008-02-07 Thread Abdul
 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/[EMAIL PROTECTED])
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.___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Two Leg CDR

2008-02-07 Thread Atis Lezdins
On 2/7/08, Abdul [EMAIL PROTECTED] 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/[EMAIL PROTECTED])
 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.
[EMAIL PROTECTED]
Skype: atis.lezdins
Cell Phone: +371 28806004
Work phone: +1 800 7502835

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Two Leg CDR

2008-02-07 Thread Abdul
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/[EMAIL PROTECTED])
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.___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Two Leg CDR

2008-02-07 Thread Michelle Dupuis
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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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/[EMAIL PROTECTED])
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.

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users