Re: [OpenSIPS-Users] can't get timerec to work in dynamic routing

2022-01-18 Thread Kingsley Tart
Right OK thanks. I've never set that up before; I'll see how I get on.

Thanks once again.

Cheers,
Kingsley.

On Tue, 2022-01-18 at 14:57 +0200, Bogdan-Andrei Iancu wrote:
> Googling may not help you too much as the encoding of the timerec is 
> opensips specific, even if the concepts are from the RFC.
> 
> CP -> OpenSIPS Control Panel web interface 
> http://controlpanel.opensips.org/ , it has a Dynamic Routing 
> provisioning tool.
> 
> Regards,
> 
> Bogdan-Andrei Iancu
> 
> OpenSIPS Founder and Developer
>https://www.opensips-solutions.com
> OpenSIPS eBootcamp 2021
>https://opensips.org/training/OpenSIPS_eBootcamp_2021/
> 
> On 1/18/22 2:50 PM, Kingsley Tart wrote:
> > Hi Bogdan,
> > 
> > Thanks.
> > 
> > I have tried a number of google phrases to try to find a timerec
> > builder (and also an interpreter so that I can test my own values)
> > but
> > I have been unable to find anything that seems relevant.
> > 
> > What is CP?
> > 
> > Cheers,
> > Kingsley.
> > 
> > On Tue, 2022-01-18 at 14:41 +0200, Bogdan-Andrei Iancu wrote:
> > > Hey Kingsley,
> > > 
> > > My 2 cents on the matter - have you tried to use CP in order to
> > > encode
> > > the desired timerec part?
> > > 
> > > Regards,
> > > 
> > > Bogdan-Andrei Iancu
> > > 
> > > OpenSIPS Founder and Developer
> > > https://www.opensips-solutions.com
> > > OpenSIPS eBootcamp 2021
> > > https://opensips.org/training/OpenSIPS_eBootcamp_2021/
> > > 
> > > On 1/12/22 8:59 PM, Kingsley Tart wrote:
> > > > Hi,
> > > > 
> > > > I'm using OpenSIPS 3.1.7. I'm trying to set time based dynamic
> > > > routing
> > > > rules but am struggling to understand the timerec and get it
> > > > working.
> > > > 
> > > > The intention here is that from 2000-01-01 00:00:00 to 2022-01-
> > > > 12
> > > > 18:34:59 then prefix 441476292508 will go to gw9, but after
> > > > that it
> > > > will go to gw8. This is for all times of day and all days of
> > > > the
> > > > week.
> > > > 
> > > > This is what I have in the appropriate partition:
> > > > 
> > > > ++-+--+--
> > > > 
> > > > -++
> > > > > ruleid | groupid | prefix   |
> > > > > timerec   | gwlist |
> > > > 
> > > > ++-+--+--
> > > > 
> > > > -++
> > > > >  88 | 0   | 441476292508 |
> > > > > 2101T00|||20220112T183459 | #gw9   |
> > > > >  89 | 0   | 441476292508 |
> > > > > 20220112T183500|||1231T235959 | #gw8   |
> > > > 
> > > > ++-+--+--
> > > > 
> > > > -++
> > > > 
> > > > However, even though the time and date has now passed 2022-01-
> > > > 12
> > > > 18:34:59, it is still sending to gw9. The new rule seems to be
> > > > being
> > > > ignored.
> > > > 
> > > > I did dr_reload and even completely restarted OpenSIPS.
> > > > 
> > > > Any idea what I am doing wrong here?
> > > > 
> > > > Cheers,
> > > > Kingsley.
> > > > 
> > > > 
> > > > ___
> > > > Users mailing list
> > > > Users@lists.opensips.org
> > > > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> 
> 


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


Re: [OpenSIPS-Users] can't get timerec to work in dynamic routing

2022-01-18 Thread Bogdan-Andrei Iancu
Googling may not help you too much as the encoding of the timerec is 
opensips specific, even if the concepts are from the RFC.


CP -> OpenSIPS Control Panel web interface 
http://controlpanel.opensips.org/ , it has a Dynamic Routing 
provisioning tool.


Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS eBootcamp 2021
  https://opensips.org/training/OpenSIPS_eBootcamp_2021/

On 1/18/22 2:50 PM, Kingsley Tart wrote:

Hi Bogdan,

Thanks.

I have tried a number of google phrases to try to find a timerec
builder (and also an interpreter so that I can test my own values) but
I have been unable to find anything that seems relevant.

What is CP?

Cheers,
Kingsley.

On Tue, 2022-01-18 at 14:41 +0200, Bogdan-Andrei Iancu wrote:

Hey Kingsley,

My 2 cents on the matter - have you tried to use CP in order to
encode
the desired timerec part?

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
https://www.opensips-solutions.com
OpenSIPS eBootcamp 2021
https://opensips.org/training/OpenSIPS_eBootcamp_2021/

On 1/12/22 8:59 PM, Kingsley Tart wrote:

Hi,

I'm using OpenSIPS 3.1.7. I'm trying to set time based dynamic
routing
rules but am struggling to understand the timerec and get it
working.

The intention here is that from 2000-01-01 00:00:00 to 2022-01-12
18:34:59 then prefix 441476292508 will go to gw9, but after that it
will go to gw8. This is for all times of day and all days of the
week.

This is what I have in the appropriate partition:

++-+--+--
-++

ruleid | groupid | prefix   |
timerec   | gwlist |

++-+--+--
-++

 88 | 0   | 441476292508 |
2101T00|||20220112T183459 | #gw9   |
 89 | 0   | 441476292508 |
20220112T183500|||1231T235959 | #gw8   |

++-+--+--
-++

However, even though the time and date has now passed 2022-01-12
18:34:59, it is still sending to gw9. The new rule seems to be
being
ignored.

I did dr_reload and even completely restarted OpenSIPS.

Any idea what I am doing wrong here?

Cheers,
Kingsley.


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





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


[OpenSIPS-Users] can't get timerec to work in dynamic routing

2022-01-13 Thread Kingsley Tart
Hi,

I'm using OpenSIPS 3.1.7. I'm trying to set time based dynamic routing
rules but am struggling to understand the timerec and get it working.

The intention here is that from 2000-01-01 00:00:00 to 2022-01-12
18:34:59 then prefix 441476292508 will go to gw9, but after that it
will go to gw8. This is for all times of day and all days of the week.

This is what I have in the appropriate partition:

++-+--+---++
| ruleid | groupid | prefix   | timerec   | gwlist |
++-+--+---++
| 88 | 0   | 441476292508 | 2101T00|||20220112T183459 | #gw9   |
| 89 | 0   | 441476292508 | 20220112T183500|||1231T235959 | #gw8   |
++-+--+---++

However, even though the time and date has now passed 2022-01-12
18:34:59, it is still sending to gw9. The new rule seems to be being
ignored.

I did dr_reload and even completely restarted OpenSIPS.

Any idea what I am doing wrong here?

Cheers,
Kingsley.


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


[OpenSIPS-Users] can't get timerec to work in dynamic routing

2022-01-12 Thread Kingsley Tart
Hi,

I'm using OpenSIPS 3.1.7. I'm trying to set time based dynamic routing
rules but am struggling to understand the timerec and get it working.

The intention here is that from 2000-01-01 00:00:00 to 2022-01-12
18:34:59 then prefix 441476292508 will go to gw9, but after that it
will go to gw8. This is for all times of day and all days of the week.

This is what I have in the appropriate partition:

++-+--+---++
| ruleid | groupid | prefix   | timerec   | gwlist |
++-+--+---++
| 88 | 0   | 441476292508 | 2101T00|||20220112T183459 | #gw9   |
| 89 | 0   | 441476292508 | 20220112T183500|||1231T235959 | #gw8   |
++-+--+---++

However, even though the time and date has now passed 2022-01-12
18:34:59, it is still sending to gw9. The new rule seems to be being
ignored.

I did dr_reload and even completely restarted OpenSIPS.

Any idea what I am doing wrong here?

Cheers,
Kingsley.


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