As far as I can see, that part handles anything but REGISTER methods.

Best regards,
Răzvan

On 11/27/19 5:41 PM, egemen ulus wrote:
Hi, I think there is no any missing part in REGISTER part as you see below;

/        if ( !(is_method("REGISTER")  ) ) {
/
/                if (is_from_local()) { //
/
/                        # authenticate if from local subscriber//
/
/                        # authenticate all initial non-REGISTER request that pretend to be//
/
/                        # generated by local subscriber (domain from FROM URI is local)//
/
/                        if (!proxy_authorize("", "subscriber")) {//
/
/                                proxy_challenge("", "0");//
/
/                                exit;//
/
/                        }//
/
/                        if (!db_check_from()) {//
/
/                                send_reply("403","Forbidden auth ID");//
/
/                                exit;//
/
/                        }////
/
/                        consume_credentials();//
/
/                        # caller authenticated//
/
/                } else {//
/
/                        # if caller is not local, then called number must be local//
/
///
/
/                        if (!is_uri_host_local()) {//
/
/                                send_reply("403","Relay Forbidden");//
/
/                                exit;//
/
/                        }//
/
/                }//
/
/        }/


Regards
Egemen
------------------------------------------------------------------------
*Gönderen:* [email protected] <[email protected]> adına Users <[email protected]>
*Gönderildi:* 25 Kasım 2019 Pazartesi 20:00
*Kime:* [email protected] <[email protected]>
*Konu:* Users Digest, Vol 136, Issue 47
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. Re: Too Many Hops on GCP. (Răzvan Crainea) (Răzvan Crainea)
    2. OpenSIPS Summit 2020 - Registration Open (Bogdan-Andrei Iancu)


----------------------------------------------------------------------

Message: 1
Date: Mon, 25 Nov 2019 11:44:25 +0200
From: Răzvan Crainea <[email protected]>
To: [email protected]
Subject: Re: [OpenSIPS-Users] Too Many Hops on GCP. (Răzvan Crainea)
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8; format=flowed

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:* [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


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



------------------------------

Message: 2
Date: Mon, 25 Nov 2019 13:39:04 +0200
From: Bogdan-Andrei Iancu <[email protected]>
To: "[email protected]" <[email protected]>,
         developensips <[email protected]>,
         "[email protected]" <[email protected]>,
         "[email protected]" <[email protected]>
Subject: [OpenSIPS-Users] OpenSIPS Summit 2020 - Registration Open
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

<http://www.opensips.org/events/Summit-2020Amsterdam>


     Registration open


   OpenSIPS Summit 2020

May 5th-8th, 2020

Amsterdam, The Netherlands


*The registration is now open!*

Due to the popularity of OpenSIPS, conference attendees are drawn from
many areas both technical and non-technical and include CTOs, Lead
Engineers and Technical decision makers from small, medium and large
enterprises, corporations and organizations worldwide.


Don't miss the opportunity and join for the 2020 edition - the
/registration is now open
<https://www.opensips.org/events/Summit-2020Amsterdam/#pricing>/. You
may do individual registration or you can opt in for a /*Corporate
Package*/ with an attractive discount. And did I mentioned about the
/*Early Birds discount*/? Take advantage of it by registering by the end
of January 2020!

Register now <https://www.opensips.org/events/Summit-2020Amsterdam/#pricing>
We welcome everyone to join us and to be part of OpenSIPS Summit 2019,
as attendee, speaker or sponsor.
But do you want to stand out from the crowd? Then be an OpenSIPS Summit
2020 Sponsor - contact
<http://www.opensips.org/events/Summit-2020Amsterdam/#contact-map> our
team or email
<mailto:[email protected]?subject=Sponsoring%20OpenSIPS%20Summit> us!


<https://www.google.com/maps/place/Radisson+Blu+Hotel,+Amsterdam/@52.3702502,4.8944856,17z/data=%213m1%214b1%214m5%213m4%211s0x47c609bf6cde2ad5:0x764aad4243f5348f%218m2%213d52.3702469%214d4.8966743?hl=en>


*
*

*Radisson Blu**
**Rusland 17, 1012CK Amsterdam, The Netherlands*

Meet us again at our familiar Venue, with the usual space and comfort!



**


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20191125/76629b31/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


------------------------------

End of Users Digest, Vol 136, Issue 47
**************************************

_______________________________________________
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

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to