Re: [OpenSIPS-Users] 483 Too Many Hops on GCP

2019-11-14 Thread David Villasmil
Didn't i respond on this already?

You only have no aliases, you need to add an alias.
i.e.: If the PUBLIC IP address is 1.2.3.4 you need to add an alias:
alias=1.2.3.4

Otherwise, there is no way for the proxy to know the packet is directed to
it.

https://www.opensips.org/Documentation/Script-CoreParameters-3-0#toc5

Regards,

David Villasmil
email: david.villasmil.w...@gmail.com
phone: +34669448337


On Thu, Nov 14, 2019 at 8:27 PM egemen ulus  wrote:

> Hi,
> I've installed Opensips 2.4 on a GCP vm, when I try to register my
> softphone to server, I am getting "483 too many hops" error. I am aware
> that there is loop on the server side, it sends the packet itself. But
> could not fix it. I have private and public IP addresses defined on google
> cloud vm.
>
> Here is the my conf and logs:
>
>
> *auto_aliases=no *
>
> *listen=udp:10.138.0.3:5060   # private ip address
> *
> *listen=tcp:10.138.0.3:5060 *
>
> logs:
>
> *opensips[2671]: Nov 12 18:56:53 [2727] DBG:core:parse_headers: via found,
> flags=22 *
>
> *opensips[2671]: Nov 12 18:56:53 [2727] DBG:core:parse_via_param: found
> param type 234,  = <34.83.194.202>; state=6 *
>
> *opensips[2671]: Nov 12 18:56:53 [2727] DBG:core:parse_via_param: found
> param type 232,  = ; state=16 *
> *opensips[2671]: Nov 12 18:56:53 [2727] DBG:core:parse_via: end of header
> reached, state=5*
>
> *thank you for help from now!*
> *Egemen*
> ___
> 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] Rate Limit Module Implementation

2019-11-14 Thread Ben Newlin
Hello,

We are looking to implement some rate limiting using the module, but I have a 
few questions and wanted to see if anyone has run into the same issues or has 
working experience with the module to answer them.

The module provides $rl_count and also a counter value in the output of the 
rl_list command, but both of these values only reflect the number of rl_check 
calls that were made in the time window. In the case of TAILDROP, RED, and SBT 
algorithms, the count is directly related to the limit and drop_rate. But for 
the NETWORK and FEEDBACK algorithms, the counter is essentially meaningless.

What we are looking for is a way to track the values these modules are using to 
make drop decisions, so that we can set our limit value appropriately. But 
unless I am missing something, there is no way to access these values for 
either NETWORK or FEEDBACK. Is that correct?

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


[OpenSIPS-Users] 483 Too Many Hops on GCP

2019-11-14 Thread egemen ulus
Hi,
I've installed Opensips 2.4 on a GCP vm, when I try to register my softphone to 
server, I am getting "483 too many hops" error. I am aware that there is loop 
on the server side, it sends the packet itself. But could not fix it. I have 
private and public IP addresses defined on google cloud vm.

Here is the my conf and logs:

auto_aliases=no
listen=udp:10.138.0.3:5060  # private ip address
listen=tcp:10.138.0.3:5060

logs:
opensips[2671]: Nov 12 18:56:53 [2727] DBG:core:parse_headers: via found, 
flags=22
opensips[2671]: Nov 12 18:56:53 [2727] DBG:core:parse_via_param: found param 
type 234,  = <34.83.194.202>; state=6
opensips[2671]: Nov 12 18:56:53 [2727] DBG:core:parse_via_param: found param 
type 232,  = ; state=16
opensips[2671]: Nov 12 18:56:53 [2727] DBG:core:parse_via: end of header 
reached, state=5

thank you for help from now!
Egemen
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users