Re: [OpenSIPS-Users] Maximum number of ReINVITEs option?

2022-05-13 Thread Ray Jackson
Correct, Max-Forwards stays the same on each ReINVITE and the CSeq 
increments by 1 each time.  All other headers stay the same. I have no 
idea what is broken with the client to continually ReINVITE in a loop.  
We accept the ReINVITE with an OK and we receive an ACK back and then 
immediately another INVITE and so it goes on until the call is terminated.


I'm less interested in working out what is broken on the client end and 
more interested in protecting our network.


Thanks,

Ray

On 14/05/22 2:59 pm, Jehanzaib Younis wrote:

Hi Ray,

I assume the Max-Forwards remains same but the CSeq is increasing ya?

Regards,
Jehan


On Sat, May 14, 2022 at 2:42 PM Ray Jackson  wrote:

Hi all,

I have a misbehaving SIP client which is repeatedly sending SIP
ReINVITE
messages over and over again (in the hundreds) and want to enforce a
limit on the number of ReINVITE messages per Call to stop this in
it's
tracks.  The CSeq is incrementing on each ReINVITE.

Are there any config settings to limit the number of ReINVITEs on a
single Call/Dialog?  I was going to possibly keep a count of the
INVITEs
using a cache variable based on the Unique CallID but wanted to check
first there wasn't a simpler (built-in) way of doing this?

Thanks,
Ray




___
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

--
Email Signature
Ray Jackson
Chief Technology OfficerLogo 

Hero Internet
Level 4, 220 Queen Street
Auckland
t: +649-242-0001
e: r...@hero.co.nz

hero.co.nz  	Facebook icon 
Twitter icon 

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


Re: [OpenSIPS-Users] Maximum number of ReINVITEs option?

2022-05-13 Thread Jehanzaib Younis
Hi Ray,

I assume the Max-Forwards remains same but the CSeq is increasing ya?

Regards,
Jehan


On Sat, May 14, 2022 at 2:42 PM Ray Jackson  wrote:

> Hi all,
>
> I have a misbehaving SIP client which is repeatedly sending SIP ReINVITE
> messages over and over again (in the hundreds) and want to enforce a
> limit on the number of ReINVITE messages per Call to stop this in it's
> tracks.  The CSeq is incrementing on each ReINVITE.
>
> Are there any config settings to limit the number of ReINVITEs on a
> single Call/Dialog?  I was going to possibly keep a count of the INVITEs
> using a cache variable based on the Unique CallID but wanted to check
> first there wasn't a simpler (built-in) way of doing this?
>
> Thanks,
> Ray
>
>
>
>
> ___
> 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] Maximum number of ReINVITEs option?

2022-05-13 Thread Ray Jackson

Hi all,

I have a misbehaving SIP client which is repeatedly sending SIP ReINVITE 
messages over and over again (in the hundreds) and want to enforce a 
limit on the number of ReINVITE messages per Call to stop this in it's 
tracks.  The CSeq is incrementing on each ReINVITE.


Are there any config settings to limit the number of ReINVITEs on a 
single Call/Dialog?  I was going to possibly keep a count of the INVITEs 
using a cache variable based on the Unique CallID but wanted to check 
first there wasn't a simpler (built-in) way of doing this?


Thanks,
Ray




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


[OpenSIPS-Users] Cli and DB path

2022-05-13 Thread Ali Alawi
Dear all,

When I install opensips3.2 using APT packages, the cli point correctly to
mysql (mariadb) through /usr/share/opensips (Everything work fine)

However, when  installation done using git clone --recursive, the cli point
to /usr/share/opensips  but in this time the cli doesn't find mysql when i
try to:
opensips-cli -x database create
ERROR: path '/usr/share/opensips' to OpenSIPS DB scripts does not exist!

I notice that mysql is resides inside '/usr/local/share/opensips' instead
of '/usr/share/opensips'
I try to include the corrected path in the default.cfg and also try
opensips-cli
-o database_schema_path=
But I come up with no success
Any suggestions please?

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


Re: [OpenSIPS-Users] Question about error 500 only via WIFI

2022-05-13 Thread Daniel Zanutti
Olá Rodrigo

The problem seems to be the IPV6 addresses. Did you look at the logs to
know exactly why opensips refused the call?

IPV4 is almost out in Brazil, mobile carriers are using ipv6 addresses on
mobile devices. This is the issue, but in theory opensips should handle
this seamlessly. Do you have IPV6 in your server or the message came on
ipv4 address but SIP has ipv6 addresses?

I recommend you check logs, the issue should be there. Also, if you plan to
allow mobile devices, you should be prepared to use ipv6 on your net.

On Thu, May 12, 2022 at 4:57 PM Rodrigo Pimenta Carvalho 
wrote:

> Hi.  I found the error cause.  But I still don't know why I have such
> issue.
>
>
> When I use my Internet Link (WIFI in my home office), the SIP register
> message is sent correctly. Like this:
>
> Session Initiation Protocol (REGISTER)
> Request-Line: REGISTER sip:54.233.189.46:5060;transport=UDP SIP/2.0
> Method: REGISTER
> Request-URI: sip:54.233.189.46:5060;transport=UDP
> [Resent Packet: False]
> Message Header
> Via: SIP/2.0/UDP 192.168.1.103:5060
> ;branch=z9hG4bK-524287-1---6dbfa766cffddeee;rport
> Max-Forwards: 70
> Contact:  ;rinstance=1afa98b2b6d17a34;transport=UDP>
> To: ;transport=UDP>
> From: ;tag=98bfc34c
> Call-ID: H1E0jkwiMniiyT5az1BT7g..
> CSeq: 1 REGISTER
> Expires: 60
> Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS,
> INFO, SUBSCRIBE
> User-Agent: Zoiper v2.10.18.1-mod
> Allow-Events: presence, kpml, talk
> Content-Length: 0
>
> Opensips got the message above.
>
> However, when I use the GSM mobile network (from VIVO) , some service
> changes the content of the SIP Register message. Like this:
>
> Session Initiation Protocol (REGISTER)
> Request-Line: REGISTER sip:*[64:ff9b::36e9:bd2e]*:5060;transport=UDP
> SIP/2.0
> Method: REGISTER
> Request-URI: sip:*[64:ff9b::36e9:bd2e]*:5060;transport=UDP
> [Resent Packet: False]
> Message Header
> Via: SIP/2.0/UDP *[64:ff9b::c000:4]*
> ;branch=z9hG4bK-524287-1---0a8189adf6c3449a
> Max-Forwards: 70
> Contact:  :5060;transport=UDP;rinstance=ffaac43f13178e89>
> To: 
> From: ;tag=f19aea4d
> Call-ID: VICBinZsDk5_ZhpHGd__CQ..
> CSeq: 1 REGISTER
> Expires: 60
> Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS,
> INFO, SUBSCRIBE
> User-Agent: Zoiper v2.10.18.1-mod
> Allow-Events: presence, kpml, talk
> Content-Length: 0
>
>
> That is why Opensips returns error 500. I guess some service changed IPv4
> to something IPv6.
> Could it be caused by the GSM operator (VIVO) ?
> What should I investigage to solve this problem?
>
> Any hint will be very helpful !
>
> Thanks alot.
>
> RODRIGO PIMENTA CARVALHO
> Inatel Competence Center
> Software
> Ph: +55 35 3471 9200 RAMAL: 979
>
> --
> *De:* Users  em nome de Daniel Zanutti <
> daniel.zanu...@gmail.com>
> *Enviado:* quinta-feira, 12 de maio de 2022 11:57
> *Para:* OpenSIPS users mailling list 
> *Assunto:* Re: [OpenSIPS-Users] Question about error 500 only via WIFI
>
> Olá Rodrigo, tudo bem? Saudações de São Paulo!
>
> Opensips doesn't differentiate the network, it will look just to the sip
> packet. I recommend you sniff through your packets and check what's
> different. Probably there's somenthing on opensips log you didn't get yet,
> recommend you take a look there first btw.
>
> About push, I think you're enable push notifications on your device, take
> a look:
> https://www.zoiper.com/en/support/home/article/205/Zoiper%20Push%20Proxy
>
> Regards
>
>
> On Wed, May 11, 2022 at 4:13 PM Rodrigo Pimenta Carvalho <
> pime...@inatel.br> wrote:
>
> Hi.
>
> My SIP proxy is an OpenSIPS version 2.4.7. It was 'off' for a while and
> today I turned it on again for some tests.
>
> I usually use my home office local WIFI to connect my softphones to the
> network and it can be all connected (online) to this SIP proxy.
>
> However, if I use the mobile network (LTE/4G) to connect the softphones to
> the SIP proxy, the OpenSIP returns an error 500. That is: "SIP/2.0 500
> Server error occurred (7/TM)".
>
> One of the softphones (Zoiper) allows me to use a kind of "proxy PUSH". If
> I use it, the problem is solved even while using the mobile network.
>
> What is a proxy PUSH?  Why OpenSIPs return error in a case, but not in the
> other one?
> What could I do to avoid using a 'proxy PUSH'?
>
> Local WIFI and mobile network come from different carriers.
>
> Any hint will be very helpful!
>
> Best regards.
>
> 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