FS Agents with cgr_suppliers

77 views
Skip to first unread message

Gavin Henry

unread,
Aug 19, 2019, 5:52:03 PM8/19/19
to CGRateS
Hi all,

My rals is now on f183a53 and all is well there. If I upgrade my FS Agents from 

"Version": "CGRateS 0.9.1~rc8 git+34d7d31 (2019-06-23T17:43:55+02:00)"

to 

"Version": "CGRateS 0.9.1~rc8 git+f183a53 (2019-08-06T17:00:35+03:00)" then SupplierS fails.

No config changes.  What's changed?

My queries:

set(cgr_subsystems=*attributes;*sessions;*suppliers;*suppliers_event_cost;*suppliers_ignore_errors;*thresholds;*stats;*accounts)

What would you like to see to debug?

Thanks.

Alexandru Tripon

unread,
Aug 20, 2019, 3:29:02 AM8/20/19
to cgr...@googlegroups.com
Hi Gavin,

We changed the name for `cgr_subsystems` to `cgr_flags`.
Also, we changed the character after which we split the string: now you should use `,` to split the flags you send to CGRateS.
Your query should  look like this:

set(cgr_flags=*attributes,*sessions,*suppliers,*suppliers_event_cost,*suppliers_ignore_errors,*thresholds,*stats,*accounts)

Please make these changes and retest.

Thanks,
Trial97

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/cgrates/7787b34d-d3d5-442d-a67c-4c33af45bbae%40googlegroups.com.

Gavin Henry

unread,
Aug 20, 2019, 10:17:48 AM8/20/19
to CGRateS
Thanks. Will do!


On Tuesday, August 20, 2019 at 8:29:02 AM UTC+1, Alexandru Tripon wrote:
Hi Gavin,

We changed the name for `cgr_subsystems` to `cgr_flags`.
Also, we changed the character after which we split the string: now you should use `,` to split the flags you send to CGRateS.
Your query should  look like this:

set(cgr_flags=*attributes,*sessions,*suppliers,*suppliers_event_cost,*suppliers_ignore_errors,*thresholds,*stats,*accounts)

Please make these changes and retest.

Thanks,
Trial97

On Tue, Aug 20, 2019 at 12:52 AM Gavin Henry <gavin...@gmail.com> wrote:
Hi all,

My rals is now on f183a53 and all is well there. If I upgrade my FS Agents from 

"Version": "CGRateS 0.9.1~rc8 git+34d7d31 (2019-06-23T17:43:55+02:00)"

to 

"Version": "CGRateS 0.9.1~rc8 git+f183a53 (2019-08-06T17:00:35+03:00)" then SupplierS fails.

No config changes.  What's changed?

My queries:

set(cgr_subsystems=*attributes;*sessions;*suppliers;*suppliers_event_cost;*suppliers_ignore_errors;*thresholds;*stats;*accounts)

What would you like to see to debug?

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 cgr...@googlegroups.com.

Gavin Henry

unread,
Aug 20, 2019, 10:50:29 AM8/20/19
to CGRateS
Doesn't everything else in CGRateS use ; though?

Anything else changed ?

See my last email about notifying users of this.

Gavin Henry

unread,
Aug 20, 2019, 11:20:51 AM8/20/19
to CGRateS
Has *remote_host changed?

Have ; been swapped for , everywhere now?

Will this still work:

                                        {"tag": "Profile", "field_id": "Destination", "type": "*composed", "filters": ["*string:~*req.profile:A;B"],

Thanks.

Dan Christian Bogos

unread,
Aug 20, 2019, 1:16:02 PM8/20/19
to cgr...@googlegroups.com

Gavin,

Nope, I don't see it changed yet, as before, you should have all documented in tests:

https://github.com/cgrates/cgrates/blob/master/data/conf/samples/httpagent/httpagent.json#L69

Regarding your rule, it looks like a valid infield separator to me, no reason to change.


DanB

--
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.

Dan Christian Bogos

unread,
Aug 20, 2019, 1:16:36 PM8/20/19
to cgr...@googlegroups.com

Gavin,

Not sure I get the question, can u point me to an example?

We call ";" inline separator and "," separator, so you should find ";" in csv as subfields separator and "," in rest of the places. If you identify other places where ";" is used, please let us know and we will change it.

Thanks,
DanB

--
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.

Gavin Henry

unread,
Aug 20, 2019, 2:28:12 PM8/20/19
to CGRateS
Will do, thanks. Will be testing tonight.

Gavin Henry

unread,
Aug 20, 2019, 4:25:45 PM8/20/19
to CGRateS
Thanks, all working. Although I'm seeing this now:

2019/08/20 20:14:43 CGRateS <xxx.xxx.suretec.net> [ERROR] Destination 447930323266 not authorized for account: surevoip:XXX, subject: *out:surevoip:*suppliers:XXX

I've not seen the *suppliers before. What does it mean? A supplier was selected OK in our least_cost.

Gavin.

Gavin Henry

unread,
Aug 26, 2019, 3:58:44 PM8/26/19
to CGRateS
Any ideas?

Alexandru Tripon

unread,
Aug 27, 2019, 5:18:04 AM8/27/19
to cgr...@googlegroups.com
Hi Gavin,

This comes from a supplier that doesn't have your destination and because you have ignore error flag we still return the result.

Thanks,
Trial97

--
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.

Gavin Henry

unread,
Aug 27, 2019, 9:36:50 AM8/27/19
to CGRateS
Thanks. Can I disable it the log message?
Message has been deleted

Alexandru Tripon

unread,
Aug 27, 2019, 10:45:06 AM8/27/19
to cgr...@googlegroups.com
Hi Gavin,

For the moment you can change the value of the `log_level` from configuration (https://github.com/cgrates/cgrates/blob/master/config/config_defaults.go#L33) to a value lower than 3, but this will disable all error logs.
The only logs you will be able to see will be emergency, alert or critical ones.
In the near future, we will review all log messages and will move this message as a warning instead.

Thanks,
Trial97

On Tue, Aug 27, 2019 at 5:40 PM Alexandru Tripon <alexandr...@itsyscom.com> wrote:
Hi Gavin,

For the moment you can change the value of the `log_level` from configuration (https://github.com/cgrates/cgrates/blob/master/config/config_defaults.go#L33) to a value lower than 3, but this will disable all error logs.
The only logs you will be able to see will be emergency, alert or critical ones.
In the near future we will review

Thanks,
Trial97


On Tue, Aug 27, 2019 at 4:36 PM Gavin Henry <gavin...@gmail.com> wrote:
Thanks. Can I disable it the log message?

--
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.

Gavin Henry

unread,
Jun 4, 2021, 10:17:08 AM6/4/21
to CGRateS
Hi Trial97,

Any news on removing these error messages rather then filtering them out of syslog/stdout/stderr or reducing the loglevel?

Thanks.

Alexandru Tripon

unread,
Jun 8, 2021, 6:24:39 AM6/8/21
to cgr...@googlegroups.com
Hi Gavin,

Sorry for this but we did not review the log messages or their level.
As a possible solution, you can move the routes subsystem in its own process and filter the log messages.

Thanks,
Trial97

Reply all
Reply to author
Forward
0 new messages