Hi again,
Btw, if you are asking for this part, here is it;
if (!mf_process_maxfwd_header("10")) {
send_reply("483","Too Many Hops");
exit;
}
Regards
Egemen
________________________________
Gönderen: egemen ulus <[email protected]>
Gönderildi: 22 Kasım 2019 Cuma 20:25
Kime: [email protected] <[email protected]>
Konu: Re: Too Many Hops on GCP. (Răzvan Crainea)
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: [email protected] <[email protected]>
adına Users <[email protected]>
Gönderildi: 18 Kasım 2019 Pazartesi 20:00
Kime: [email protected] <[email protected]>
Konu: Users Digest, Vol 136, Issue 33
Send Users mailing list submissions to
[email protected]
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
[email protected]
You can reach the person managing the list at
[email protected]
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 <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [OpenSIPS-Users] Too Many Hops on GCP.
Message-ID:
<db6pr0801mb18953402e21598ba0ef0787a8e...@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" <[email protected]>
To: <[email protected]>
Subject: Re: [OpenSIPS-Users] Too Many Hops on GCP.
Message-ID:
<3069669d235a571fd6eae01072a81360-1574055...@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
[email protected] or 402-403-4435.
------------------------------
Message: 3
Date: Mon, 18 Nov 2019 14:44:51 +0200
From: Răzvan Crainea <[email protected]>
To: [email protected]
Subject: Re: [OpenSIPS-Users] Too Many Hops on GCP.
Message-ID: <[email protected]>
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
> [email protected]
> 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 <[email protected]>
To: [email protected]
Subject: Re: [OpenSIPS-Users] fix_nated_sdp() not taking effect
Message-ID: <[email protected]>
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
> [email protected]
> 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
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
------------------------------
End of Users Digest, Vol 136, Issue 33
**************************************
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users