Look at my last post here
<br />
<br />http://opensips-open-sip-server.1449251.n2.nabble.com/CDRTool-CDR-Flow-record-td6432731.html#a6449882
<br />
<br />I think it's just a matter of what you have configured for
<br />"E164_class" =>
<br />"intAccessCode" =>
<br />"natAccessCode" =>
<br />
<br />And also edit the can_uri. So if your can_uri for your internal calls is set up the same as outbound calls it should calculate the calls.
<br />
<br />Hope that answers the issue you are having.
<br />
<br />
<br />
<br />On Jun 21, 2011 7:29am, Tony Tyler <tonytyler2011@gmail.com> wrote:
<br />> Anyone?
<br />>
<br />> From FreeRadius log:
<br />>
<br />> Acct-Status-Type = Failed
<br />> Service-Type = Sip-Session
<br />> Sip-Response-Code = 408
<br />> Sip-Method = Invite
<br />>
<br />>
<br />> Event-Timestamp = "Jun 14 2011 16:02:47 CEST"
<br />> Sip-From-Tag = "as16538a8e"
<br />> Acct-Session-Id = "18375a0e058480f5626c94293975f7cf@x"
<br />>
<br />>
<br />> User-Name = "a@x"
<br />> Calling-Station-Id = "sip:a@x"
<br />> Called-Station-Id = "sip:b@y"
<br />> Sip-Translated-Request-URI = "sip:b@ip"
<br />>
<br />>
<br />> Source-IP = "ip"
<br />> Source-Port = "5060"
<br />> Billing-Party = "sip:a@x"
<br />> Canonical-URI = "sip:b@y"
<br />> User-Agent = "Asterisk PBX"
<br />>
<br />>
<br />> Contact = ""
<br />> NAS-Port = 5060
<br />> Acct-Delay-Time = 0
<br />> NAS-IP-Address = 127.0.0.1
<br />> Acct-Unique-Session-Id = "89f0c9014ba0a2f9"
<br />> Timestamp = 1308060167
<br />>
<br />>
<br />> Request-Authenticator = Verified
<br />>
<br />> Best regards,
<br />> Tony Tyler
<br />>
<br />>
<br />> 2011/6/14 Tony Tyler tonytyler2011@gmail.com>
<br />>
<br />>
<br />> Hi,
<br />>
<br />> We have setup CDRTool version 8.0.15 with an Asterisk multitenant PBX.
<br />>
<br />>
<br />>
<br />> We want to be able to log and bill the internal calls in CDRTool.
<br />> All the calls are sent from Asterisk to OpenSIPS and the call is sent back to the same Asterisk on the same IP-address.
<br />>
<br />>
<br />>
<br />> If it´s a external call, there is no problem. The problem occurs when the called number is a local customer, then it can´t log or bill the call in CDRTool.
<br />>
<br />> From FreeRadius log:
<br />>
<br />>
<br />>
<br />>
<br />>
<br />> Acct-Status-Type = Failed
<br />> Service-Type = Sip-Session
<br />> Sip-Response-Code = 408
<br />> Sip-Method = Invite
<br />> Event-Timestamp = "Jun 14 2011 16:02:47 CEST"
<br />> Sip-From-Tag = "as16538a8e"
<br />>
<br />>
<br />>
<br />>
<br />> Acct-Session-Id = "18375a0e058480f5626c94293975f7cf@x"
<br />> User-Name = "a@x"
<br />>
<br />>
<br />> Calling-Station-Id = "sip:a@x"
<br />>
<br />>
<br />> Called-Station-Id = "sip:b@y"
<br />> Sip-Translated-Request-URI = "sip:b@ip"
<br />> Source-IP = "ip"
<br />> Source-Port = "5060"
<br />> Billing-Party = "sip:a@x"
<br />>
<br />>
<br />>
<br />>
<br />> Canonical-URI = "sip:b@y"
<br />> User-Agent = "Asterisk PBX"
<br />> Contact = ""
<br />> NAS-Port = 5060
<br />> Acct-Delay-Time = 0
<br />> NAS-IP-Address = 127.0.0.1
<br />>
<br />>
<br />>
<br />>
<br />> Acct-Unique-Session-Id = "89f0c9014ba0a2f9"
<br />> Timestamp = 1308060167
<br />> Request-Authenticator = Verified
<br />>
<br />>
<br />> Best regards,
<br />> Tony Tyler
<br />>
<br />>
<br />>
<br />>
<br />>
<br />>
<br />>