Hi Mo,
Answers inline ..
Hi DanB,I am setting up CGRateS 0.9.1 rc8 with OpenSIPS 2.2 using the tutorials that come with the .deb package. This is part of an upgrade from rc7/opensips 2.1 which has been working just fine for sometime now. I am doing a fresh install of RC8 on a separate server so I can test it before the upgrade. However, I am having some basic issues. Prepaid calls are working and debiting fine. Postpaid and pseudo-prepaid are not debiting the balance at the end of the call. I printed the "cgr_reqtype" variable in Opensips and it seems to have the correct value.
As I mentioned before, I am using tutorials config files for both cgrates and opensips (cgrates.json and opensips.cfg). I did however change a bit the tarrif plans to make testing easier.
I am installing RC8 on Ubuntu 16.04 64-bit.# cgr-engine -versionCGRateS 0.9.1~rc8 git+d0b7b0a (2017-03-20T17:56:14+01:00)
# opensips -Vversion: opensips 2.2.3 (x86_64/linux)
Any idea why the postpaid and pseudo-prepaid are not debiting at the end of the call. May be some configuration changes I missed. It's been a while since I worked on CGRateS and am a bit rusty.
PS. I tried to do a straight upgrade from rc7 to rc8 and that didn't go well. There seems to be many changes in the MySQL DB, cgr-console command, tarrif plans, cgrates.json file. That's why I decided to do a fresh install on a separate server and test it before the upgrade.
--
Thanks.
You received this message because you are subscribed to the Google Groups "CGRateS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cgrates+u...@googlegroups.com.
To post to this group, send email to cgr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cgrates/d77ffba0-7893-43c3-a42e-5bc36b8c6900%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Mo,
I can see that in rc8 we have create_cdr on false (most probably to give you the freedom to choose how you inject your CDRs from OpenSIPS).
Anyway, can u configure this parameter to true:
https://github.com/cgrates/cgrates/blob/master/config/config_defaults.go#L345
and let me know how it goes?
DanB
To view this discussion on the web visit https://groups.google.com/d/msgid/cgrates/e5231994-d50e-4753-beb9-b9569e3cb1cc%40googlegroups.com.
Hi Mo,
I can see that in rc8 we have create_cdr on false (most probably to give you the freedom to choose how you inject your CDRs from OpenSIPS).
Anyway, can u configure this parameter to true:
https://github.com/cgrates/cgrates/blob/master/config/config_defaults.go#L345
and let me know how it goes?
DanB
On 30.03.2017 02:44, Mo Rajib wrote:
Hello DanB,Thank you for taking the time to reply to my post. Nothing is stored in the cdrs table even for prepaid calls that seem to work fine. In the case of prepaid, which seems to work fine, data is stored in "sm_costs" table but nothing in cdrs table. As for postpaid, no data is stored in either tables (cdrs, sm_costs).
What shall i be looking at for the issue of data not stored in cdrs table?
I have pasted cgrates.json file below in case I am mis-configuring something there.
Below is the captured data between opensips and cgrates (port 2020).
U 2017/03/29 18:11:45.302315 127.0.0.1:38703 -> 127.0.0.1:2020E_ACC_EVENTmethod::INVITEfrom_tag::42581to_tag::42531
sip_code::200sip_reason::OKtime::1490832705cgr_reqtype::*postpaidcgr_account::1002cgr_destination::5002cgr_supplier::suppl1cgr_answertime::1490832705dialog_id::4088:918757958duration::
#U 2017/03/29 18:12:25.306907 127.0.0.1:38703 -> 127.0.0.1:2020E_ACC_EVENTmethod::BYEfrom_tag::42581to_tag::42531
Hi Mo,
Did not check OpenSIPS since a while but I know for sure Razvan from OpenSIPS core developers did it (using tutorial config which you have also) and there were no issues reported.
Planning to review the tutorials myself at some point during next weeks but cannot commit on certain date yet.
Maybe you come on irc channel tomorrow and we can check it together more interactively?
DanB
To view this discussion on the web visit https://groups.google.com/d/msgid/cgrates/b2fc0162-9626-4bf9-aa75-d82f71df4eef%40googlegroups.com.