Hi,


The following steps are performed to rate a CDR:

1. Determination of the billing party
a. SIP account u...@domain
b. SIP domain of the SIP account
c. Source IP of the session
   d. Default (when none of the above matches)
if there is no sip account u...@domain in cdrtool the cdrtool try next
option(sip domain) if sip domain does not exist it try next option(source ip)and
then the default option
please let me know if i am wrong
This is correct.

2. Determination of the destination id
a. CanonicalURI (the destination after all lookups inside the SIP Proxy) b. SipTranslatedRequestURI (the Request URI as presented by the SIP UA) c. CalledStationId (the content of the To header, used as a last resort) if the CanonicalURI does not exist it try to next option(Request URI) ...
please let me know if i am wrong
This is also correct.

3. Determination of the costs
2 opensips2 is a gateway
endpoint-----opensips1-------opensips2----internet-----VOIP service provider
So basically opensips2 is just a gateway to opensips1?


how can i config cdrtool rating all calls from opensips1 and opensips2
could you please guide me some steps to do
Did you load the sample data so you can see if a call gets rated?


i just try to see what happen in cdrtool, call from subscriber to subscriber

these are the logs
Nov 11 12:39:46 opensips cdrtool[2302]: MaxSessionTime Duration=36000
callid=1289463574-3016-hiep...@192.168.1.36 From=sip:843...@192.168.1.39
Gateway=192.168.1.36 To=sip:00842...@192.168.1.39
Nov 11 12:39:46 opensips cdrtool[2302]: MaxSessionTime=unlimited Type=postpaid
callid=1289463574-3016-hiep...@192.168.1.36 billingparty=843...@192.168.1.39

log of call-control
Call id 1289463575-3016-hiep...@192.168.1.36 of 843...@192.168.1.39 to
sip:00842...@192.168.1.39 is postpaid not limited

it always return postpaid
You need to specify that a sip account is prepaid if you want it to act like a prepaid account.

--
Tijmen de Mes
AG Projects


_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to