Re: [OpenSIPS-Users] Using Dispatcher with redis

2017-06-27 Thread Royee Tichauer via Users
I was wondering if it was all possible, and if it is which is what I'm
understanding from your answer, then how should the data in redis look
like?
If you have an example for a rediscli command to add a dispatcher table to
it that would be great.

Royee

On Mon, Jun 26, 2017 at 6:57 PM  wrote:

> OpenSIPS loads the entire dispatcher structure into memory from the
> underlying (typically SQL) database so it is not querying a database for
> every look up.  Does that alleviate your concern for using redis for
> dispatcher?
>
> Jarrod
>
> > On Jun 26, 2017, at 10:39 AM, Royee Tichauer via Users <
> users@lists.opensips.org> wrote:
> >
> > Hi all,
> >
> > I wanted to know whether its possible to use redis cache as a db for the
> dispatcher table? If so how would something like that look like in redis?
> What would be the structure needed in redis for this?
> >
> > Thanks,
> > Royee
> > ___
> > 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
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Using Dispatcher with redis

2017-06-27 Thread Bogdan-Andrei Iancu

Hi Royee,

You may take a look at the db_cachedb module which converts the a nosSQL 
to an SQL interface:

http://www.opensips.org/html/docs/modules/2.3.x/db_cachedb.html

Still, it mainly works only with MongoDB, not with Redis.

Regards,

Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Bootcamp 2017, Houston, US
  http://opensips.org/training/OpenSIPS_Bootcamp_2017.html

On 06/27/2017 12:38 PM, Royee Tichauer via Users wrote:
I was wondering if it was all possible, and if it is which is what I'm 
understanding from your answer, then how should the data in redis look 
like?
If you have an example for a rediscli command to add a dispatcher 
table to it that would be great.


Royee

On Mon, Jun 26, 2017 at 6:57 PM > wrote:


OpenSIPS loads the entire dispatcher structure into memory from
the underlying (typically SQL) database so it is not querying a
database for every look up.  Does that alleviate your concern for
using redis for dispatcher?

Jarrod

> On Jun 26, 2017, at 10:39 AM, Royee Tichauer via Users
mailto:users@lists.opensips.org>> wrote:
>
> Hi all,
>
> I wanted to know whether its possible to use redis cache as a db
for the dispatcher table? If so how would something like that look
like in redis? What would be the structure needed in redis for this?
>
> Thanks,
> Royee
> ___
> 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



___
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] OpenSIPS 2.2 changes CSeq numbers after SIP OPTIONS received. Is it a bug?

2017-06-27 Thread Bogdan-Andrei Iancu

Hi Rodrigo,

That OPTIONS (even if it is really weird to have that OPTIONS inserted 
between 200OK and ACK) should not affect the cseq numbering in ACK as it 
is in opposite direction.


If you manage to get rid of that OPTION, is the ACK cseq correct ?

With this bogus scenario, can you run in log_level 4 (debug) and post 
the opensips logs (covering the whole call) for inspection ?


Best regards,

Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Bootcamp 2017, Houston, US
  http://opensips.org/training/OpenSIPS_Bootcamp_2017.html

On 06/26/2017 03:18 PM, Rodrigo Pimenta Carvalho wrote:


Dear OpenSIPS users,

I'm facing a problem related to CSeq numbers in SIP messages and maybe 
it is being caused by SIP OPTIONS messages.
When a caller sends a SIP ACK to the callee, the SIP ACK has CSeq = 2. 
However, after being relayed by OpenSIPS, the CSeq number become 3.
It seems that OpenSIPS decided to change such value on its own. But, 
maybe it was caused by the previous SIP OPTIONS message receive before.

The diagram bellow shows what is happening.

Can the SIP OPTIONS message cause such issue? If yes, should I give up 
of using SIP OPTIONS? Can it be a bug in OpenSIPS?

If not, what is happening here??
If that CSeq remains like 3, the callee will simply discard the SIP 
ACK and send another SIP OK, will not discard?




Caller OpenSIPs  Callee
| ||
| ||
|   INVITE ||
|   CSeq = 2 ||
|--->| INVITE|
| |CSeq = 
2|

| |--->|
| | |
| | TRYING |
| | CSeq = 
2   |

|  TRYING |<---|
|  CSeq = 2  ||
|<---|  |
| ||
|  | RING |
|  | CSeq = 2   |
|  RING |<---|
|  CSeq = 2 |  |
|<---|   |
| | SIP 
OK   |
| | CSeq = 
2   |

|  SIP OK |<---|
|  CSeq = 2 | |
|<---|   |
| | SIP 
OK   |
| | CSeq = 
2   |

|  SIP OK |<---|
|  CSeq = 2 | |
|<---|   |
| ||
| |SIP OPTIONS   |
| |CSeq = 
3|<< new CSeq

| |<---|
| | |
| | SIP 
500  |
| | CSeq = 
3   |

| |--->|
|   ACK ||
|   CSeq = 2 | |
|--->| ACK|
| |CSeq = 
3|  << Cseq of ACK was changed by OpenSIPS.

| |--->|
|   ACK |  |
|   CSeq = 2 | |
|--->| ACK|
| |CSeq = 
3|

| |--->|
| | |
| | SIP 
OK   |
| | CSeq = 
2   |

|  SIP OK |<---|
|  CSeq = 2 | |
|<---|   |
|   ACK | |
|   CSeq = 2 | |
|--->| ACK|
| |CSeq = 
3|

| |--->|
| | |
|  

Re: [OpenSIPS-Users] Buffer size exceeded.

2017-06-27 Thread Rodrigo Pimenta Carvalho
Ok.


I got the point.


Thank you very much!


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



De: Users  em nome de Liviu Chircu 

Enviado: terça-feira, 27 de junho de 2017 03:11
Para: users@lists.opensips.org
Assunto: Re: [OpenSIPS-Users] Buffer size exceeded.


Hi Rodrigo,


By enabling "sip_warning", OpenSIPS will try to append a custom "Warning:" 
header field to all SIP messages it generates/proxies. As implemented, it's 
more of a debugging mechanism, as the header data will consist of strings such 
as SIP URIs involved, source/dest IPs, etc.


In your case, this debugging info couldn't fit into 256 bytes, so OpenSIPS 
skipped appending the "Warning" for that message. Hardly anything to worry 
about.

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

[http://www.opensips-solutions.com/imgs/slideshow/slide1.jpg]

Home — OpenSIPS Solutions
www.opensips-solutions.com
OpenSIPS is a mature Open Source implementation of a SIP server. OpenSIPS is 
more than a SIP proxy/router as it includes application-level functionalities.

On 26.06.2017 23:04, Rodrigo Pimenta Carvalho wrote:

Hi.


What does mean the error:


ERROR:core:warning_builder: buffer size exceeded ?


How to avoid it?


Thanks a lot.




RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



___
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