[OpenSIPS-Users] CDRTool - Callcontrol - Prepaid

Leonardo Uzcudun uzcudunl at yahoo.it
Thu Jun 13 02:56:31 CEST 2013


thanks a lot Laszlo!!!!!!
I did it, i've configured wrong in the opensips the $avp(can_uri).
Now I've fixed it and CDRTool is answering properly.
I'll continue testing the CDRToll & CallControl.....
Thanks again.

Leo.

________________________________
 Da: Laszlo <laszlo at voipfreak.net>
A: Leonardo Uzcudun <uzcudunl at yahoo.it> 
Cc: OpenSIPS users mailling list <users at lists.opensips.org> 
Inviato: Mercoledì 12 Giugno 2013 21:17
Oggetto: Re: [OpenSIPS-Users] CDRTool - Callcontrol - Prepaid
 


Hmm, this sounds challenging :)
I'm working on a custom opensips user portal and admin interface at the moment, and it is a "nice to have" feature here too. 
cdrtool is also used here, so I'll play with this feature on my dev server. Let's see if there can be a solution, or not.....

-Laszlo
2013.06.12. 12:27, "Leonardo Uzcudun" <uzcudunl at yahoo.it> ezt írta:

Thanks Laszlo, good idea! but it still not working.
> 
>Now i can see in the cdrtool web portal that the canonical-uri is 9999 (check the attached file, there is a comparison before and after changing the can-uri to 9999) but when the sip user samsung at sip.mydomain places the call i still seeing in the syslog:
> 
>Jun 12 11:56:50 sip cdrtool[1304]: MaxSessionTime Duration=7200 CallId=1517185829 From=sip:samsung at sip.mydomain Gateway=82.186.X.X To=sip:ipad at sip.mydomain
>Jun 12 11:56:50 sip cdrtool[1304]: MaxSessionTime=unlimited Type=prepaid CallId=1517185829 BillingParty=samsung at sip.mydomain DestId=None
>Jun 12 11:56:50 sip call-control[1985]: Call id 1517185829 of samsung at sip.mydomain to sip:ipad at sip.mydomainsip is postpaid not limited
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>One more thing, with change (can-uri 9999) when the cdrtool does the normalization i see in the syslog:
> 
> 
> 
> 
>Jun 12 11:59:27 sip cdrtool[7012]: Error: cannot find destinations for subscriber='samsung at sip.mydomain', domain ='', gateway='', reseller='0'
>Jun 12 11:59:27 sip cdrtool[7012]: Error: cannot find destination id for 9999 of customer = '', total destinations = 0
> 
> 
> 
>Do i configuring something wrong in the cdrtool web portal -> Rating -> Destinations?
> 
>Is is normal to have domain=''? shouldn't be sip.mydomain?
> 
>Thanks a lot for your help,
> 
>Leo.
> 
>
>
>Da: Laszlo <voipfreak.net at gmail.com>
>A: Leonardo Uzcudun <uzcudunl at yahoo.it>; OpenSIPS users mailling list <users at lists.opensips.org> 
>Inviato: Martedì 11 Giugno 2013 18:26
>Oggetto: Re: [OpenSIPS-Users] CDRTool - Callcontrol - Prepaid
>
>
>
>what happens if you manually set $avp(can_uri) to a fixed value? like to 9999, and define this destination in cdrtool?
>2013.06.11. 18:08, "Leonardo Uzcudun" <uzcudunl at yahoo.it> ezt írta:
>
>Did it but still not working. I'm still receiving Maxsessiontime=unlimited and DetsId=none :(
>>
>>
>>Is there any "default destination" (like a default gateway)? So no matched destination will use the "default destination" with an X price/rate/profile?
>>
>>
>>
>>Da: Adrian Georgescu <ag at ag-projects.com>
>>A: OpenSIPS users mailling list <users at lists.opensips.org> 
>>Inviato: Martedì 11 Giugno 2013 17:18
>>Oggetto: Re: [OpenSIPS-Users] CDRTool - Callcontrol - Prepaid
>>
>>
>>
>>You need to add pricing info in the other billing tables too.
>>
>>
>>Adrian
>>
>>On Jun 11, 2013, at 3:24 PM, Leonardo Uzcudun wrote:
>>
>>Thanks again Adrian.
>>>You mean to insert in destinations (CDRtool web portal -> Rating -> Destinations) the user02 at example.com in the destination field?
>>>
>>>
>>>
>>>Da: Adrian Georgescu <ag at ag-projects.com>
>>>A: OpenSIPS users mailling list <users at lists.opensips.org> 
>>>Inviato: Martedì 11 Giugno 2013 14:32
>>>Oggetto: Re: [OpenSIPS-Users] CDRTool - Callcontrol - Prepaid
>>>
>>>
>>>
>>>Never tried it myself for prepaid but you can setup SIP URIs as valid destinations too and put a price on them.  
>>>
>>>
>>>Adrian
>>>
>>>
>>>
>>>On Jun 11, 2013, at 12:29 PM, Leonardo Uzcudun wrote:
>>>
>>>I guess this confirm why i can't use prepaid for calls between sip users..., do you confirm it?
>>>>Thanks. 
>>>>
>>>>
>>>>Da: Adrian Georgescu <ag at ag-projects.com>
>>>>A: OpenSIPS users mailling list <users at lists.opensips.org> 
>>>>Inviato: Martedì 11 Giugno 2013 11:57
>>>>Oggetto: Re: [OpenSIPS-Users] CDRTool - Callcontrol - Prepaid
>>>>
>>>>
>>>>
>>>>The prepaid engine was designed for PSTN destinations using phone numbers only.  
>>>>
>>>>
>>>>Adrian
>>>>
>>>>
>>>>On 11 Jun 2013, at 11:49, Leonardo Uzcudun <uzcudunl at yahoo.it> wrote:
>>>>
>>>>Hello Adrian:
>>>>>
>>>>>From the following site (http://callcontrol.ag-projects.com/issues/1769#change-8449) i've found that you say "All internals of CDRTool rely on the fact that there is a normalized URI in the form of 00 + Country Code + Number."
>>>>>So, my question or doubt is:
>>>>>If there are 2 sip users within the same domain like user01 at example.com and user02 at example.com, can i implement prepaid billing between them or the prepaid will only work if they call to 00 + Country Code + Number sip accounts?
>>>>>Thanks,
>>>>>
>>>>>Leo 
>>>>>Da: Adrian Georgescu <ag at ag-projects.com>
>>>>>A: OpenSIPS users mailling list <users at lists.opensips.org>>>>>Inviato: Lunedì 10 Giugno 2013 21:39
>>>>>Oggetto: Re: [OpenSIPS-Users] CDRTool - Callcontrol - Prepaid
>>>>>
>>>>>
>>>>>
>>>>>There is Rating.txt document that contain sample rates files and examples of prepaid queries in the console that shows you how it works.  
>>>>>
>>>>>
>>>>>Adrian
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>On Jun 10, 2013, at 9:30 PM, Leonardo Uzcudun wrote:
>>>>>
>>>>>Hello All:
>>>>>>
>>>>>>
>>>>>>
>>>>>>After doing more tests i guess the problem is the missing DestId
>>>>>>cdrtool log:Jun  8 02:51:12 sip cdrtool[13359]: MaxSessionTime=unlimited Type=prepaid CallId=1226626922 BillingParty=user01 at mydomain DestId=None
>>>>>>
>>>>>>and considering the rating.txt doc point 3. Determination of the costs -> No rate will be returned if no 'destination id' is found. 
>>>>>>
>>>>>>
>>>>>>So, now my question is: If the Destination (cdrtool web portal -> Rating -> Destinations) must be a number (like 31 for the Netherlands), how will i match destination to mydomain?
>>>>>>
>>>>>>
>>>>>>Thanks,
>>>>>>
>>>>>>Leo. 
>>>>>>Da: leo <uzcudunl at yahoo.it>
>>>>>>A: users at lists.opensips.org 
>>>>>>Inviato: Venerdì 7 Giugno 2013 9:38
>>>>>>Oggetto: [OpenSIPS-Users] CDRTool - Callcontrol - Prepaid
>>>>>>
>>>>>>
>>>>>>Hello:
>>>>>>
>>>>>>I need some help to understand the CDRTool - Callcontrol - Prepaid, all the
>>>>>>efforts i could do reading, searching and testing to try to understand how
>>>>>>it works were unsuccessful.
>>>>>>
>>>>>>My set-up would be very simple, I would like to give credit (in seconds) to
>>>>>>the users and after the call is ended the call duration time should be
>>>>>>subtracted to its balance.
>>>>>>
>>>>>>My first concern is how do i map a user in the opensips.subscriber
>>>>>>(DB.table) to the prepaid billing?
>>>>>>The second one would be, how would i configure the rating/quota/prepaid to
>>>>>>have my set-up?
>>>>>>
>>>>>>Thanks for your help.
>>>>>>
>>>>>>Leo.
>>>>>>
>>>>>>
>>>>>>
>>>>>>--
>>>>>>View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/CDRTool-Callcontrol-Prepaid-tp7586750.html
>>>>>>Sent from the
 OpenSIPS - Users mailing list archive at Nabble.com.
>>>>>>
>>>>>>_______________________________________________
>>>>>>Users mailing list
>>>>>>Users at lists.opensips.org
>>>>>>http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>>>
>>>>>>
>>>>>>_______________________________________________
>>>>>>Users mailing list
>>>>>>Users at lists.opensips.org
>>>>>>http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>>>
>>>>>
>>>>>_______________________________________________
>>>>>Users mailing list
>>>>>Users at lists.opensips.org
>>>>>http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>>
>>>>>
>>>>>_______________________________________________
>>>>>Users mailing list
>>>>>Users at lists.opensips.org
>>>>>http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>
>>>>_______________________________________________
>>>>Users mailing list
>>>>Users at lists.opensips.org
>>>>http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>
>>>>
>>>>_______________________________________________
>>>>Users mailing list
>>>>Users at lists.opensips.org
>>>>http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>
>>>
>>>_______________________________________________
>>>Users mailing list
>>>Users at lists.opensips.org
>>>http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>>_______________________________________________
>>>Users mailing list
>>>Users at lists.opensips.org
>>>http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>
>>_______________________________________________
>>Users mailing list
>>Users at lists.opensips.org
>>http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>>
>>_______________________________________________
>>Users mailing list
>>Users at lists.opensips.org
>>http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130613/f296a872/attachment-0001.htm>


More information about the Users mailing list