[OpenSIPS-Users] Too Many Hops on GCP. (Răzvan Crainea)

Răzvan Crainea razvan at opensips.org
Mon Nov 25 04:44:25 EST 2019


I mean after calling `save()`, you should add an `exit;` Something like

if (is_method("REGISTER")) {
     save();
     exit;
}

Best regards,
Răzvan

On 11/22/19 7:25 PM, egemen ulus wrote:
> Hi Răzvan ,
> 
> Yes it happens during registering. After a while it obviously gives 483 
> too many hops because of max forward. What you mean when you say that 
> "exiting after 'save()' "
> 
> Regards,
> Egemen
> ------------------------------------------------------------------------
> *Gönderen:* users-request at lists.opensips.org 
> <users-request at lists.opensips.org> adına Users 
> <users-bounces at lists.opensips.org>
> *Gönderildi:* 18 Kasım 2019 Pazartesi 20:00
> *Kime:* users at lists.opensips.org <users at lists.opensips.org>
> *Konu:* Users Digest, Vol 136, Issue 33
> Send Users mailing list submissions to
>          users at lists.opensips.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> or, via email, send a message with subject or body 'help' to
>          users-request at lists.opensips.org
> 
> You can reach the person managing the list at
>          users-owner at lists.opensips.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Users digest..."
> 
> 
> Today's Topics:
> 
>     1. Too Many Hops on GCP. (egemen ulus)
>     2. Re: Too Many Hops on GCP. (John Burke)
>     3. Re: Too Many Hops on GCP. (Răzvan Crainea)
>     4. Re: fix_nated_sdp() not taking effect (Răzvan Crainea)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Mon, 18 Nov 2019 05:36:38 +0000
> From: egemen ulus <ulus_egemen at hotmail.com>
> To: "users at lists.opensips.org" <users at lists.opensips.org>
> Subject: [OpenSIPS-Users] Too Many Hops on GCP.
> Message-ID:
>          
> <DB6PR0801MB18953402E21598BA0EF0787A8E4D0 at DB6PR0801MB1895.eurprd08.prod.outlook.com>
> 
> Content-Type: text/plain; charset="iso-8859-9"
> 
> 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, <received> = <34.83.194.202>; state=6
> opensips[2671]: Nov 12 18:56:53 [2727] DBG:core:parse_via_param: found 
> param type 232, <branch> = <z9hG4bK75e1.93b4e3a6.0>; state=16
> opensips[2671]: Nov 12 18:56:53 [2727] DBG:core:parse_via: end of header 
> reached, state=5
> 
> thank you for help!
> Egemen
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> <http://lists.opensips.org/pipermail/users/attachments/20191118/23853c28/attachment-0001.html>
> 
> ------------------------------
> 
> Message: 2
> Date: Mon, 18 Nov 2019 00:38:17 -0500
> From: "John Burke" <john at voxtelesys.net>
> To: <users at lists.opensips.org>
> Subject: Re: [OpenSIPS-Users] Too Many Hops on GCP.
> Message-ID:
>          
> <3069669d235a571fd6eae01072a81360-1574055497 at ops-icewarp.voxtelesys.net>
> 
> Content-Type: text/plain; charset="utf-8"
> 
> I will be out of the office until 11/25. For immediate concerns please 
> contact support at voxtelesys.com or 402-403-4435.
> 
> 
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Mon, 18 Nov 2019 14:44:51 +0200
> From: Răzvan Crainea <razvan at opensips.org>
> To: users at lists.opensips.org
> Subject: Re: [OpenSIPS-Users] Too Many Hops on GCP.
> Message-ID: <4abd0344-58fd-7ccb-dc83-f9e01bb00821 at opensips.org>
> Content-Type: text/plain; charset=UTF-8; format=flowed
> 
> Hi, Egemen!
> 
> Is the REGISTER looping? Are you exiting `exit;` after `save()`?
> 
> Best regards,
> Răzvan
> 
> On 11/18/19 7:36 AM, 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, <received> = <34.83.194.202>; state=6
>> /
>> /opensips[2671]: Nov 12 18:56:53 [2727] DBG:core:parse_via_param: found 
>> param type 232, <branch> = <z9hG4bK75e1.93b4e3a6.0>; state=16
>> /
>> /opensips[2671]: Nov 12 18:56:53 [2727] DBG:core:parse_via: end of 
>> header reached, state=5/
>> /
>> /
>> /thank you for help!/
>> /Egemen/
>> 
>> 
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>> 
> 
> -- 
> Răzvan Crainea
> OpenSIPS Core Developer
> http://www.opensips-solutions.com
> 
> 
> 
> ------------------------------
> 
> Message: 4
> Date: Mon, 18 Nov 2019 14:48:28 +0200
> From: Răzvan Crainea <razvan at opensips.org>
> To: users at lists.opensips.org
> Subject: Re: [OpenSIPS-Users] fix_nated_sdp() not taking effect
> Message-ID: <2fb96c37-2ed0-5ddd-eacc-9bd249c88774 at opensips.org>
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> Yes, the problem is definitely the fact that you are calling
> `rtpproxy_offer()` for the initial invite. Hence, when you run
> `fix_nated_sdp()`, you're trying to change the same IP once again - this
> is not possile in OpenSIPS.
> But I wonder why you need the `fix_nated_sdp()` if you are using
> RTPProxy. Can't you just use the `ip_address`[1] field to advertise the
> proper IP int he c= line.
> 
> [1]
> https://opensips.org/html/docs/modules/3.0.x/rtpproxy.html#func_rtpproxy_offer
> 
> Best regards,
> Răzvan
> 
> On 11/13/19 1:51 PM, Mark Farmer wrote:
>> Hi everyone
>> 
>> In my failure_route I'm routing to an Asterisk box for voicemail & I 
>> need to change the SDP c/o parameters to use the correct internal IP 
>> address but using fix_nated_sdp() is not taking effect.
>> 
>> if (t_check_status("486|408|603")) {
>>                  xlog("CUSTOM_LOG: User replied $T_reply_code - Routing 
>> to Asterisk Voicemail service.");
>>                  prefix("VMR_");
>>                  rewritehostport("10.150.50.53:2404 
>> <http://10.150.50.53:2404>");
>>                  force_send_socket(udp:10.150.50.51);
>>                  fix_nated_sdp(10,"10.150.50.51");
>> 
>>                  if (!t_relay()) {
>>                          send_reply(500,"Internal Error");
>>                  }
>>                  exit;
>> }
>> 
>> I get the CUSTOM_LOG entry so I know that the route is executing.
>> 
>> Maybe I'm doing something wrong with the flags, I've tried:
>> fix_nated_sdp(2,"10.150.50.51");
>> fix_nated_sdp(8,"10.150.50.51");
>> fix_nated_sdp(10,"10.150.50.51");
>> 
>> But when I examine the SDP in the resulting invite, the c/o parameters 
>> are never changed.
>> I'm using rtpengine_offer/answer in the initial routing, could it be 
>> related to that?
>> 
>> I'm using OpenSIPS 3.0.1
>> 
>> Best regards
>> Mark.
>> 
>> 
>> 
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>> 
> 
> -- 
> Răzvan Crainea
> OpenSIPS Core Developer
> http://www.opensips-solutions.com
> 
> 
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> 
> 
> ------------------------------
> 
> End of Users Digest, Vol 136, Issue 33
> **************************************
> 
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> 

-- 
Răzvan Crainea
OpenSIPS Core Developer
   http://www.opensips-solutions.com



More information about the Users mailing list