Re: [OpenSIPS-Users] Too many Hops

2023-09-23 Thread Prathibha B
I'm using a certificate generated using lets encrypt.

On Sat, 23 Sept 2023 at 21:12, Prathibha B  wrote:

> ERROR:tls_openssl:openssl_tls_accept: New TLS connection from
> 42.111.162.67:31290 failed to accept
> Sep 23 15:41:10 ip-172-31-34-24 /usr/sbin/opensips[4959]:
> ERROR:tls_openssl:tls_print_errstack: TLS errstack: error:0A000416:SSL
> routines::sslv3 alert certificate unknown
> Sep 23 15:41:10 ip-172-31-34-24 /usr/sbin/opensips[4959]:
> ERROR:proto_wss:wss_read_req: cannot fix read connection
> Sep 23 15:41:11 ip-172-31-34-24 /usr/sbin/opensips[4959]:
> ERROR:tls_openssl:openssl_tls_accept: New TLS connection from
> 111.92.8.58:52695 failed to accept
> Sep 23 15:41:11 ip-172-31-34-24 /usr/sbin/opensips[4959]:
> ERROR:tls_openssl:tls_print_errstack: TLS errstack: error:0A000416:SSL
> routines::sslv3 alert certificate unknown
> Sep 23 15:41:11 ip-172-31-34-24 /usr/sbin/opensips[4959]:
> ERROR:proto_wss:wss_read_req: cannot fix read connection
>
> On Sat, 23 Sept 2023 at 20:59, Prathibha B 
> wrote:
>
>> How to use self signed certificate in opensips? I am getting this error:
>>
>> SSL routines::sslv3 alert certificate unknown
>>
>> On Sat, 23 Sept 2023 at 20:54, Prathibha B 
>> wrote:
>>
>>> socket=udp:172.31.34.24:5060 as 43.205.195.119:5060
>>> socket=tcp:172.31.34.24:5060 as 43.205.195.119:5060
>>> socket=tls:172.31.34.24:5061 as 43.205.195.119:5061
>>> socket=wss:172.31.34.24:7443 as 43.205.195.119:7443
>>>
>>> On Sat, 23 Sept 2023 at 20:39, David Villasmil <
>>> david.villasmil.w...@gmail.com> wrote:
>>>
 Make you opensips finds a next hope. This usually happens when no next
 hope is set and opensips forwards to itself.

 On Sat, 23 Sep 2023 at 07:59, Prathibha B 
 wrote:

> While executing opensips using sipml5, I'm getting Too Mnay Hops
> error. This occurs when I am using ip address instead of domain name for
> the websocket url. How to resolve this?
>
>
> --
> Regards,
> B.Prathibha
> ___
> 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

>>>
>>>
>>> --
>>> Regards,
>>> B.Prathibha
>>>
>>
>>
>> --
>> Regards,
>> B.Prathibha
>>
>
>
> --
> Regards,
> B.Prathibha
>


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


Re: [OpenSIPS-Users] Too many Hops

2023-09-23 Thread Prathibha B
ERROR:tls_openssl:openssl_tls_accept: New TLS connection from
42.111.162.67:31290 failed to accept
Sep 23 15:41:10 ip-172-31-34-24 /usr/sbin/opensips[4959]:
ERROR:tls_openssl:tls_print_errstack: TLS errstack: error:0A000416:SSL
routines::sslv3 alert certificate unknown
Sep 23 15:41:10 ip-172-31-34-24 /usr/sbin/opensips[4959]:
ERROR:proto_wss:wss_read_req: cannot fix read connection
Sep 23 15:41:11 ip-172-31-34-24 /usr/sbin/opensips[4959]:
ERROR:tls_openssl:openssl_tls_accept: New TLS connection from
111.92.8.58:52695 failed to accept
Sep 23 15:41:11 ip-172-31-34-24 /usr/sbin/opensips[4959]:
ERROR:tls_openssl:tls_print_errstack: TLS errstack: error:0A000416:SSL
routines::sslv3 alert certificate unknown
Sep 23 15:41:11 ip-172-31-34-24 /usr/sbin/opensips[4959]:
ERROR:proto_wss:wss_read_req: cannot fix read connection

On Sat, 23 Sept 2023 at 20:59, Prathibha B  wrote:

> How to use self signed certificate in opensips? I am getting this error:
>
> SSL routines::sslv3 alert certificate unknown
>
> On Sat, 23 Sept 2023 at 20:54, Prathibha B 
> wrote:
>
>> socket=udp:172.31.34.24:5060 as 43.205.195.119:5060
>> socket=tcp:172.31.34.24:5060 as 43.205.195.119:5060
>> socket=tls:172.31.34.24:5061 as 43.205.195.119:5061
>> socket=wss:172.31.34.24:7443 as 43.205.195.119:7443
>>
>> On Sat, 23 Sept 2023 at 20:39, David Villasmil <
>> david.villasmil.w...@gmail.com> wrote:
>>
>>> Make you opensips finds a next hope. This usually happens when no next
>>> hope is set and opensips forwards to itself.
>>>
>>> On Sat, 23 Sep 2023 at 07:59, Prathibha B 
>>> wrote:
>>>
 While executing opensips using sipml5, I'm getting Too Mnay Hops error.
 This occurs when I am using ip address instead of domain name for the
 websocket url. How to resolve this?


 --
 Regards,
 B.Prathibha
 ___
 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
>>>
>>
>>
>> --
>> Regards,
>> B.Prathibha
>>
>
>
> --
> Regards,
> B.Prathibha
>


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


Re: [OpenSIPS-Users] Too many Hops

2023-09-23 Thread Prathibha B
How to use self signed certificate in opensips? I am getting this error:

SSL routines::sslv3 alert certificate unknown

On Sat, 23 Sept 2023 at 20:54, Prathibha B  wrote:

> socket=udp:172.31.34.24:5060 as 43.205.195.119:5060
> socket=tcp:172.31.34.24:5060 as 43.205.195.119:5060
> socket=tls:172.31.34.24:5061 as 43.205.195.119:5061
> socket=wss:172.31.34.24:7443 as 43.205.195.119:7443
>
> On Sat, 23 Sept 2023 at 20:39, David Villasmil <
> david.villasmil.w...@gmail.com> wrote:
>
>> Make you opensips finds a next hope. This usually happens when no next
>> hope is set and opensips forwards to itself.
>>
>> On Sat, 23 Sep 2023 at 07:59, Prathibha B 
>> wrote:
>>
>>> While executing opensips using sipml5, I'm getting Too Mnay Hops error.
>>> This occurs when I am using ip address instead of domain name for the
>>> websocket url. How to resolve this?
>>>
>>>
>>> --
>>> Regards,
>>> B.Prathibha
>>> ___
>>> 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
>>
>
>
> --
> Regards,
> B.Prathibha
>


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


Re: [OpenSIPS-Users] Too many Hops

2023-09-23 Thread Prathibha B
socket=udp:172.31.34.24:5060 as 43.205.195.119:5060
socket=tcp:172.31.34.24:5060 as 43.205.195.119:5060
socket=tls:172.31.34.24:5061 as 43.205.195.119:5061
socket=wss:172.31.34.24:7443 as 43.205.195.119:7443

On Sat, 23 Sept 2023 at 20:39, David Villasmil <
david.villasmil.w...@gmail.com> wrote:

> Make you opensips finds a next hope. This usually happens when no next
> hope is set and opensips forwards to itself.
>
> On Sat, 23 Sep 2023 at 07:59, Prathibha B 
> wrote:
>
>> While executing opensips using sipml5, I'm getting Too Mnay Hops error.
>> This occurs when I am using ip address instead of domain name for the
>> websocket url. How to resolve this?
>>
>>
>> --
>> Regards,
>> B.Prathibha
>> ___
>> 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
>


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


Re: [OpenSIPS-Users] Too many Hops

2023-09-23 Thread Prathibha B
I've set public ip as alias address in opensips.cfg and the issue is
resolved. Now I'm getting these errors:
ERROR:tls_openssl:openssl_tls_write: TLS connection to 42.111.162.67:31273
write failed (5:-1:9)
Sep 23 15:20:13 ip-172-31-34-24 /usr/sbin/opensips[3690]:
ERROR:tls_openssl:openssl_tls_write: TLS write error:
Sep 23 15:20:13 ip-172-31-34-24 /usr/sbin/opensips[3690]:
ERROR:tls_openssl:openssl_tls_blocking_write: TLS failed to send data
Sep 23 15:20:13 ip-172-31-34-24 /usr/sbin/opensips[3690]:
ERROR:tls_openssl:openssl_tls_write: TLS connection to 111.92.8.58:52260
write failed (5:-1:9)
Sep 23 15:20:13 ip-172-31-34-24 /usr/sbin/opensips[3690]:
ERROR:tls_openssl:openssl_tls_write: TLS write error:
Sep 23 15:20:13 ip-172-31-34-24 /usr/sbin/opensips[3690]:
ERROR:tls_openssl:openssl_tls_blocking_write: TLS failed to send data

How to resolve these issues?

On Sat, 23 Sept 2023 at 20:39, David Villasmil <
david.villasmil.w...@gmail.com> wrote:

> Make you opensips finds a next hope. This usually happens when no next
> hope is set and opensips forwards to itself.
>
> On Sat, 23 Sep 2023 at 07:59, Prathibha B 
> wrote:
>
>> While executing opensips using sipml5, I'm getting Too Mnay Hops error.
>> This occurs when I am using ip address instead of domain name for the
>> websocket url. How to resolve this?
>>
>>
>> --
>> Regards,
>> B.Prathibha
>> ___
>> 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
>


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


Re: [OpenSIPS-Users] Too many Hops

2023-09-23 Thread David Villasmil
Make you opensips finds a next hope. This usually happens when no next hope
is set and opensips forwards to itself.

On Sat, 23 Sep 2023 at 07:59, Prathibha B  wrote:

> While executing opensips using sipml5, I'm getting Too Mnay Hops error.
> This occurs when I am using ip address instead of domain name for the
> websocket url. How to resolve this?
>
>
> --
> Regards,
> B.Prathibha
> ___
> 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


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

2019-12-02 Thread Răzvan Crainea

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:* users-requ...@lists.opensips.org 
 adına Users 


*Gönderildi:* 25 Kasım 2019 Pazartesi 20:00
*Kime:* users@lists.opensips.org 
*Konu:* Users Digest, Vol 136, Issue 47
Send Users mailing list submissions to
     users@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-requ...@lists.opensips.org

You can reach the person managing the list at
     users-ow...@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. 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 
To: users@lists.opensips.org
Subject: Re: [OpenSIPS-Users] Too Many Hops on GCP. (Răzvan Crainea)
Message-ID: <54e843be-63f3-8621-2226-562ffb4ba...@opensips.org>
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:* users-requ...@lists.opensips.org 
 adına Users 


*Gönderildi:* 18 Kasım 2019 Pazartesi 20:00
*Kime:* users@lists.opensips.org 
*Konu:* Users Digest, Vol 136, Issue 33
Send Users mailing list submissions to
      users@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-requ...@lists.opensips.org

You can reach the person managing the list at
      users-ow...@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 +
From: egemen ulus 
To: "users@lists.opensips.org" 
Subject: [OpenSIPS-Users] Too Many Hops on GCP.
Message-ID:
 



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 a

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

2019-11-27 Thread egemen ulus
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: users-requ...@lists.opensips.org  
adına Users 
Gönderildi: 25 Kasım 2019 Pazartesi 20:00
Kime: users@lists.opensips.org 
Konu: Users Digest, Vol 136, Issue 47

Send Users mailing list submissions to
users@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-requ...@lists.opensips.org

You can reach the person managing the list at
users-ow...@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. 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 
To: users@lists.opensips.org
Subject: Re: [OpenSIPS-Users] Too Many Hops on GCP. (Răzvan Crainea)
Message-ID: <54e843be-63f3-8621-2226-562ffb4ba...@opensips.org>
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:* users-requ...@lists.opensips.org
>  adına Users
> 
> *Gönderildi:* 18 Kasım 2019 Pazartesi 20:00
> *Kime:* users@lists.opensips.org 
> *Konu:* Users Digest, Vol 136, Issue 33
> Send Users mailing list submissions to
>  users@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-requ...@lists.opensips.org
>
> You can reach the person managing the list at
>  users-ow...@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 +
> From: egemen ulus 
> To: "users@lists.opensips.org" 
> Subject: [OpenSIPS-Users] Too Many Hops on GCP.
> Message-ID:
>
> 
>
> 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
>

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

2019-11-25 Thread Răzvan Crainea

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-requ...@lists.opensips.org 
 adına Users 


*Gönderildi:* 18 Kasım 2019 Pazartesi 20:00
*Kime:* users@lists.opensips.org 
*Konu:* Users Digest, Vol 136, Issue 33
Send Users mailing list submissions to
     users@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-requ...@lists.opensips.org

You can reach the person managing the list at
     users-ow...@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 +
From: egemen ulus 
To: "users@lists.opensips.org" 
Subject: [OpenSIPS-Users] Too Many Hops on GCP.
Message-ID:
 



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,  = <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!
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" 
To: 
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 supp...@voxtelesys.com or 402-403-4435.





----------

Message: 3
Date: Mon, 18 Nov 2019 14:44:51 +0200
From: Răzvan Crainea 
To: users@lists.opensips.org
Subject: Re: [OpenSIPS-Users] Too Many Hops on GCP.
Message-ID: <4abd0344-58fd-7ccb-dc83-f9e01bb00...@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,  = <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!/
/Egemen/


___
Users mailing list
Users@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 
To: users@lists.opensips.org
Subject: Re: [OpenSIPS-Users] fix_nat

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

2019-11-22 Thread egemen ulus
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-requ...@lists.opensips.org  
adına Users 
Gönderildi: 18 Kasım 2019 Pazartesi 20:00
Kime: users@lists.opensips.org 
Konu: Users Digest, Vol 136, Issue 33

Send Users mailing list submissions to
users@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-requ...@lists.opensips.org

You can reach the person managing the list at
users-ow...@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 +
From: egemen ulus 
To: "users@lists.opensips.org" 
Subject: [OpenSIPS-Users] Too Many Hops on GCP.
Message-ID:



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,  = <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!
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" 
To: 
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 
supp...@voxtelesys.com or 402-403-4435.




----------

Message: 3
Date: Mon, 18 Nov 2019 14:44:51 +0200
From: Răzvan Crainea 
To: users@lists.opensips.org
Subject: Re: [OpenSIPS-Users] Too Many Hops on GCP.
Message-ID: <4abd0344-58fd-7ccb-dc83-f9e01bb00...@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,  = <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!/
> /Egemen/
>
>
> ___
> Users mailing list
> Users@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 
To: users@lists.opensips.org
Subject: Re: [OpenSIPS-Users] fix_nated_sdp() not taking effect
Message-ID: <2fb96c37-2ed0-5ddd-eacc-9bd249c88...@opensips.or

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

2019-11-18 Thread Răzvan Crainea

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,  = <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!/
/Egemen/


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



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

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


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

2019-11-17 Thread John Burke
I will be out of the office until 11/25. For immediate concerns please contact 
supp...@voxtelesys.com or 402-403-4435.


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


Re: [OpenSIPS-Users] Too many Hops error

2016-06-06 Thread Bogdan-Andrei Iancu

Hi,

Keep in mind you must call LB function only for the initial INVITE 
requests and not for anything else.


Regards,

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

On 04.06.2016 12:21, Francjos wrote:

Hello,

Yes I configure up to 100 sessions per server, but i still have the same
error on the second server.
I'm gonna explain the scenario once again, what i'm trying to do is to put
in place redundancy with Opensips servers and do load balancing.

I'm using sipsak to send OPTIONS to Opensips servers and load_balancer
module to do load balancing.
And i think that the error "service fuul" occurs when OPTIONS are sent,
because Opensips is supposed to sent OPTIONS to FeeSwitch servers only.

So how can i tell Opensips server to sent OPTIONS to the other Opensips
server without generating any error?

Thanks.





--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/Too-many-Hops-error-tp7603151p7603314.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
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


Re: [OpenSIPS-Users] Too many Hops error

2016-06-04 Thread Francjos
Hello, 

Yes I configure up to 100 sessions per server, but i still have the same
error on the second server.
I'm gonna explain the scenario once again, what i'm trying to do is to put
in place redundancy with Opensips servers and do load balancing.

I'm using sipsak to send OPTIONS to Opensips servers and load_balancer
module to do load balancing.
And i think that the error "service fuul" occurs when OPTIONS are sent,
because Opensips is supposed to sent OPTIONS to FeeSwitch servers only.

So how can i tell Opensips server to sent OPTIONS to the other Opensips
server without generating any error?

Thanks.





--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/Too-many-Hops-error-tp7603151p7603314.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

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


Re: [OpenSIPS-Users] Too many Hops error

2016-06-03 Thread johan de clercq
You need to configure the number of sessions per server. 

-Original Message-
From: users-boun...@lists.opensips.org
[mailto:users-boun...@lists.opensips.org] On Behalf Of Francjos
Sent: Friday, June 3, 2016 1:51 PM
To: users@lists.opensips.org
Subject: Re: [OpenSIPS-Users] Too many Hops error

Hello, 

I really failed to use lb_is_destination (.) function.
In fact, when i do this:

if(!load_balance("1", "calls", "1")){
sl_send_reply("500", "Service full");
exit;
}
without any other condiiton before load balancing, it success on the first
server, but it failed on the second server saying "Service Full". I think
this error is caused by the sipsak i'm using to send OPTIONS.

I dont understand why it is ok on one server and fails on the other?




--
View this message in context:
http://opensips-open-sip-server.1449251.n2.nabble.com/Too-many-Hops-error-tp
7603151p7603300.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
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


Re: [OpenSIPS-Users] Too many Hops error

2016-06-03 Thread Francjos
Hello, 

I really failed to use lb_is_destination (.) function.
In fact, when i do this:

if(!load_balance("1", "calls", "1")){
sl_send_reply("500", "Service full");
exit;
}
without any other condiiton before load balancing, it success on the first
server, but it failed on the second server saying "Service Full". I think
this error is caused by the sipsak i'm using to send OPTIONS.

I dont understand why it is ok on one server and fails on the other?




--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/Too-many-Hops-error-tp7603151p7603300.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

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


Re: [OpenSIPS-Users] Too many Hops error

2016-05-30 Thread Johan De Clercq
1_ in loadbalancing module there is a function :
lb_is_destination(ip,port[,group[,active]])


this one should be used to check if the invite is not coming back from the
servers on which you loadbalance.



2_ Monitoring state of servers is easy : just check fi they respond to
options.


br,

2016-05-28 12:15 GMT+02:00 Francjos <35...@heb.be>:

> Thank you Johan,
>
> In fact, i have this scenario:
>
> 1) i have to do load balancing
> 2) i have to verify opensips servers using sipsak. sipsak is used to
> moniter
> and verify the state of opensips servers.
>
> So, how can i perform the two actions without generating errors?
>
>
>
> --
> View this message in context:
> http://opensips-open-sip-server.1449251.n2.nabble.com/Too-many-Hops-error-tp7603151p7603171.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> ___
> 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


Re: [OpenSIPS-Users] Too many Hops error

2016-05-28 Thread Francjos
Thank you Johan,

In fact, i have this scenario:

1) i have to do load balancing 
2) i have to verify opensips servers using sipsak. sipsak is used to moniter
and verify the state of opensips servers.

So, how can i perform the two actions without generating errors?



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/Too-many-Hops-error-tp7603151p7603171.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

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


Re: [OpenSIPS-Users] Too many Hops error

2016-05-27 Thread Johan De Clercq
What comes from the load balancer, should not be send back to the load 
balancer.    Add condition before you load balance.

Get Outlook for iOS




On Thu, May 26, 2016 at 10:08 PM -0700, "Francjos" <35...@heb.be> wrote:










I've configured two opensips to load balance incoming calls to freeswitch
servers.One of the two opensips works welle and routes calls to the
destination, but another causes the error "Too many hops".
I have the same configuration file for the two opsnisps.

Any help?

Here is the configuration file:

opensips.cfg


### Global Parameters #

#debug=3
debug=4
log_stderror=yes
log_facility=LOG_LOCAL0

fork=yes
children=4

/* uncomment the following lines to enable debugging */
#debug=6
#fork=no
#log_stderror=yes

/* uncomment the next line to enable the auto temporary blacklisting of
   not available destinations (default disabled) */
#disable_dns_blacklist=no

/* uncomment the next line to enable IPv6 lookup after IPv4 dns
   lookup failures (default disabled) */
#dns_try_ipv6=yes

/* comment the next line to enable the auto discovery of local aliases
   based on revers DNS on IPs */
auto_aliases=no
mhomed=yes


#listen=udp:127.0.0.1:5060   # CUSTOMIZE ME
listen=udp:10.0.0.5:5060


### Modules Section 


#set module path
mpath="/usr/lib/opensips/modules/"

# DB_MYSQL module
loadmodule "db_mysql.so"
modparam("db_mysql", "exec_query_threshold", 60)
modparam("db_mysql", "timeout_interval", 2)

#  UAC_AUTH module: Authentication module
loadmodule "uac_auth.so"
modparam("uac_auth", "credential", "username:10.0.0.5:password")

## UAC_REGISTRANT module: module of registration on a remote server
loadmodule "uac_registrant.so"
modparam("uac_registrant", "hash_size", 2)
modparam("uac_registrant", "timer_interval", 100)
modparam("uac_registrant", "db_url",
"mysql://opensips:opensipsrw@localhost/opensips")
modparam("uac_registrant", "table_name", "registrant")
modparam("uac_registrant", "registrar_column", "registrar")
modparam("uac_registrant", "proxy_column", "proxy")
modparam("uac_registrant", "aor_column", "aor")
modparam("uac_registrant", "third_party_registrant_column",
"third_party_registrant")
modparam("uac_registrant", "username_column", "username")
modparam("uac_registrant", "password_column", "password")
modparam("uac_registrant", "binding_URI_column", "binding_URI")
modparam("uac_registrant", "binding_params_column", "binding_params")
modparam("uac_registrant", "expiry_column", "expiry")
modparam("uac_registrant", "forced_socket_column", "forced_socket")

 SIGNALING module
loadmodule "signaling.so"

 StateLess module
loadmodule "sl.so"

 Transaction Module
loadmodule "tm.so"
modparam("tm", "fr_timeout", 5)
modparam("tm", "fr_inv_timeout", 30)
modparam("tm", "restart_fr_on_each_reply", 0)
modparam("tm", "onreply_avp_mode", 1)

 Record Route Module
loadmodule "rr.so"
/* do not append from tag to the RR (no need for this script) */
modparam("rr", "append_fromtag", 0)

 MAX ForWarD module
loadmodule "maxfwd.so"

 SIP MSG OPerationS module
loadmodule "sipmsgops.so"

 FIFO Management Interface
loadmodule "mi_fifo.so"
modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")
modparam("mi_fifo", "fifo_mode", 0666)


## Text Operations Module
loadmodule "textops.so"


 URI module
loadmodule "uri.so"
modparam("uri", "use_uri_table", 0)
modparam("uri", "db_url", "mysql://opensips:opensipsrw@localhost/opensips")

 USeR LOCation module
loadmodule "usrloc.so"
modparam("usrloc", "nat_bflag", "NAT")
modparam("usrloc", "db_mode",   2)
modparam("usrloc", "db_url",
"mysql://opensips:opensipsrw@localhost/opensips")

 REGISTRAR module
loadmodule "registrar.so"
/* uncomment the next line not to allow more than 10 contacts per AOR */
#modparam("registrar", "max_contacts", 10)
modparam("registrar", "tcp_persistent_flag", 7)

 ACCounting module
loadmodule "acc.so"
/* what special events should be accounted ? */
modparam("acc", "early_media", 0)
modparam("acc", "report_cancels", 0)
/* by default we do not adjust the direct of the sequential requests.
   if you enable this parameter, be sure the enable "append_fromtag"
   in "rr" module */
modparam("acc", "detect_direction", 0)
modparam("acc", "failed_transaction_flag", "ACC_FAILED")
/* account triggers (flags) */
modparam("acc", "log_flag", "ACC_DO")
modparam("acc", "log_missed_flag", "ACC_MISSED")


#AUTHentication modules
loadmodule "auth.so"
loadmodule "auth_db.so"
modparam("auth_db", "calculate_ha1", yes)
modparam("auth_db", "password_column", "password")
modparam("auth_db",
"db_url","mysql://opensips:opensipsrw@localhost/opensips") # CUSTOMIZE ME
modparam("auth_db", "load_credentials", "")


### Doamian module
loadmodule "domain.so"
modparam("domain",
"db_url","mysql://opensips:opensipsrw@localhost/opensips")
modparam("domain", "db_mode", 1)   # Use caching
modparam("domain", "domain_table", "domain")
modparam("domain", "domain_col", "domain_name")
mod

Re: [OpenSIPS-Users] too many hops

2014-03-10 Thread Mike Claudi Pedersen
nevermind, i found out that i forgot to add the user... only added the user
location. now it works as intended


2014-03-10 12:08 GMT+01:00 Mike Claudi Pedersen :

> if i just add a user and a usrloc to my usrloc database
> eg.
>
> opensipsctl add user1 1234
> opensipsctl ul add user1 us...@voipserver.dk
>
> how do i in the simplest manner rewrite the call?
> so when i call user1 from user2, it rewrites user1 to us...@voipserver.dk
>
> if i could just understand how this part is written in the config i think
> i'll find the rest much easier
>
>
>
>
> 2014-03-10 11:56 GMT+01:00 Liviu Chircu :
>
>  Hello Mike,
>>
>> Instead of simply relaying initial INVITEs, you should also add some
>> registrar logic. You need at least something like this:
>>
>> if (!lookup("location")) {
>> t_reply("404", "Not Found");
>> exit;
>> }
>>
>> A successful registrar *lookup* will also rewrite the R-URI of your
>> requests. Read more about it here [1].
>>
>> [1]:
>> http://www.opensips.org/html/docs/modules/1.11.x/registrar.html#id294027
>>
>> Best regards,
>>
>> Liviu Chircu
>> OpenSIPS Developerhttp://www.opensips-solutions.com
>>
>> On 03/10/2014 12:03 PM, Mike Claudi Pedersen wrote:
>>
>>  im trying to establish connection between 2 phones
>> user1: 43384001
>> user2: 43384002
>>
>>  i have user 2 added to usrloc with the cmd:
>>
>>   opensipsctl ul add 43384003 sip:+1043384003*2...@voip.local.com
>>  which is an asterisk server that handles calls in a specific way.
>>
>>  but when i try to call i get "too many hops"
>>
>>  this is my invite handling
>>
>>  if (method=="INVITE")
>> {
>> t_relay();
>> exit;
>> };
>>
>>  do i need some sort of line added to include using usrloc
>> --
>> Med venlig hilsen
>> ipnordic A/S
>>
>>  Mike Claudi Pedersen
>> Tekniker
>>
>>  Telefon: 79301033
>> www.ipnordic.dk
>>
>>
>> ___
>> Users mailing 
>> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
>
> --
> Med venlig hilsen
> ipnordic A/S
>
> Mike Claudi Pedersen
> Tekniker
>
> Telefon: 79301033
> www.ipnordic.dk
>



-- 
Med venlig hilsen
ipnordic A/S

Mike Claudi Pedersen
Tekniker

Telefon: 79301033
www.ipnordic.dk
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] too many hops

2014-03-10 Thread Mike Claudi Pedersen
if i just add a user and a usrloc to my usrloc database
eg.

opensipsctl add user1 1234
opensipsctl ul add user1 us...@voipserver.dk

how do i in the simplest manner rewrite the call?
so when i call user1 from user2, it rewrites user1 to us...@voipserver.dk

if i could just understand how this part is written in the config i think
i'll find the rest much easier




2014-03-10 11:56 GMT+01:00 Liviu Chircu :

>  Hello Mike,
>
> Instead of simply relaying initial INVITEs, you should also add some
> registrar logic. You need at least something like this:
>
> if (!lookup("location")) {
> t_reply("404", "Not Found");
> exit;
> }
>
> A successful registrar *lookup* will also rewrite the R-URI of your
> requests. Read more about it here [1].
>
> [1]:
> http://www.opensips.org/html/docs/modules/1.11.x/registrar.html#id294027
>
> Best regards,
>
> Liviu Chircu
> OpenSIPS Developerhttp://www.opensips-solutions.com
>
> On 03/10/2014 12:03 PM, Mike Claudi Pedersen wrote:
>
>  im trying to establish connection between 2 phones
> user1: 43384001
> user2: 43384002
>
>  i have user 2 added to usrloc with the cmd:
>
>   opensipsctl ul add 43384003 sip:+1043384003*2...@voip.local.com
>  which is an asterisk server that handles calls in a specific way.
>
>  but when i try to call i get "too many hops"
>
>  this is my invite handling
>
>  if (method=="INVITE")
> {
> t_relay();
> exit;
> };
>
>  do i need some sort of line added to include using usrloc
> --
> Med venlig hilsen
> ipnordic A/S
>
>  Mike Claudi Pedersen
> Tekniker
>
>  Telefon: 79301033
> www.ipnordic.dk
>
>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>


-- 
Med venlig hilsen
ipnordic A/S

Mike Claudi Pedersen
Tekniker

Telefon: 79301033
www.ipnordic.dk
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] too many hops

2014-03-10 Thread Liviu Chircu

Hello Mike,

Instead of simply relaying initial INVITEs, you should also add some 
registrar logic. You need at least something like this:


if (!lookup("location")) {
t_reply("404", "Not Found");
exit;
}

A successful registrar *lookup* will also rewrite the R-URI of your 
requests. Read more about it here [1].


[1]: 
http://www.opensips.org/html/docs/modules/1.11.x/registrar.html#id294027


Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 03/10/2014 12:03 PM, Mike Claudi Pedersen wrote:

im trying to establish connection between 2 phones
user1: 43384001
user2: 43384002

i have user 2 added to usrloc with the cmd:

opensipsctl ul add 43384003 sip:+1043384003*2...@voip.local.com 


which is an asterisk server that handles calls in a specific way.

but when i try to call i get "too many hops"

this is my invite handling

if (method=="INVITE")
{
t_relay();
exit;
};

do i need some sort of line added to include using usrloc
--
Med venlig hilsen
ipnordic A/S

Mike Claudi Pedersen
Tekniker

Telefon: 79301033
www.ipnordic.dk 


___
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


Re: [OpenSIPS-Users] too many hops

2014-03-10 Thread Mike Claudi Pedersen
the log are only spammed with subscriptions


2014-03-10 11:09 GMT+01:00 Stefano Pisani :

>  It seems an addressing issue.
> Could you post your opensips.cfg?
> Are you able to log the sip session using ngrep? Post it.
>
> Il 10/03/2014 11.03, Mike Claudi Pedersen ha scritto:
>
>  im trying to establish connection between 2 phones
> user1: 43384001
> user2: 43384002
>
>  i have user 2 added to usrloc with the cmd:
>
>   opensipsctl ul add 43384003 sip:+1043384003*2...@voip.local.com
>  which is an asterisk server that handles calls in a specific way.
>
>  but when i try to call i get "too many hops"
>
>  this is my invite handling
>
>  if (method=="INVITE")
> {
> t_relay();
> exit;
> };
>
>  do i need some sort of line added to include using usrloc
> --
> Med venlig hilsen
> ipnordic A/S
>
>  Mike Claudi Pedersen
> Tekniker
>
>  Telefon: 79301033
> www.ipnordic.dk
>
>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>


-- 
Med venlig hilsen
ipnordic A/S

Mike Claudi Pedersen
Tekniker

Telefon: 79301033
www.ipnordic.dk
#
# $Id: opensips.cfg 8591 2011-11-26 08:27:25Z bogdan_iancu $
#
# OpenSIPS basic configuration script
# by Anca Vamanu 
#
# Please refer to the Core CookBook at:
#  http://www.opensips.org/Resources/DocsCookbooks
# for a explanation of possible statements, functions and parameters.
#


### Global Parameters #

debug=3
log_stderror=no
log_facility=LOG_LOCAL0

fork=yes
children=4

/* uncomment the following lines to enable debugging */
debug=4
fork=no
log_stderror=yes

/* uncomment the next line to disable TCP (default on) */
disable_tcp=yes

/* uncomment the next line to enable the auto temporary blacklisting of
   not available destinations (default disabled) */
#disable_dns_blacklist=no

/* uncomment the next line to enable IPv6 lookup after IPv4 dns
   lookup failures (default disabled) */
#dns_try_ipv6=yes

/* uncomment the next line to disable the auto discovery of local aliases
   based on revers DNS on IPs (default on) */
#auto_aliases=no
 based on revers DNS on IPs (default on) */
#auto_aliases=no

/* uncomment the following lines to enable TLS support  (default off) */
#disable_tls = no
#listen = tls:your_IP:5061
#tls_verify_server = 1
#tls_verify_client = 1
#tls_require_client_certificate = 0
#tls_method = TLSv1
#tls_certificate = "/usr/etc/opensips/tls/user/user-cert.pem"
#tls_private_key = "/usr/etc/opensips/tls/user/user-privkey.pem"
#tls_ca_list = "/usr/etc/opensips/tls/user/user-calist.pem"

/* default db_url to be used by modules requiring DB connection;
   uncomment it if you use any module requiring DB connectivity */
#db_default_url="mysql://opensips:opensipsrw@localhost/opensips"


port=5060

/* uncomment and configure the following line if you want opensips to
   bind on a specific interface/port/proto (default bind on all available) */
listen=udp:80.63.32.220:5060


### Modules Section 

#set module path
mpath="/usr/lib64/opensips/modules"

/* uncomment next line for MySQL DB support */
loadmodule "db_mysql.so"
loadmodule "signaling.so"
loadmodule "sl.so"
loadmodule "tm.so"
loadmodule "rr.so"
loadmodule "maxfwd.so"
loadmodule "usrloc.so"
loadmodule "registrar.so"
loadmodule "usrloc.so"
loadmodule "registrar.so"
loadmodule "textops.so"
loadmodule "mi_fifo.so"
loadmodule "uri.so"
loadmodule "acc.so"
/* uncomment next lines for MySQL based authentication support
   NOTE: a DB (like db_mysql) module must be also loaded */
#loadmodule "auth.so"
#loadmodule "auth_db.so"
/* uncomment next line for aliases support
   NOTE: a DB (like db_mysql) module must be also loaded */
#loadmodule "alias_db.so"
/* uncomment next line for multi-domain support
   NOTE: a DB (like db_mysql) module must be also loaded
   NOTE: be sure and enable multi-domain support in all used modules
 (see "multi-module params" section ) */
#loadmodule "domain.so"
/* uncomment the next two lines for presence server support
   NOTE: a DB (like db_mysql) module must be also loaded */
#loadmodule "presence.so"
#loadmodule "presence_xml.so"


# - setting module-specific parameters ---


# - mi_fifo params -
modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")


# - rr params -
# do not append from tag to the RR (no need for this script)
modparam("rr", "append_fromtag", 0)


# - registrar params -
/* uncomment the next line not to allow more than 10 contacts per AOR */
#modparam("registrar", "max_contacts", 10)
#modparam("registrar", "max_contacts", 10)


# - usrloc params -
modparam("usrloc", "db_mode",   3)
/* uncomment the following lines if you want to enable DB persistency
   for location entries */
#modparam("usrloc", 

Re: [OpenSIPS-Users] too many hops

2014-03-10 Thread Mike Claudi Pedersen
could you please give an example?


2014-03-10 11:08 GMT+01:00 Laszlo :

> If you added an usrloc entry, then you will need to use some kind of
> locaton lookup and then route accordingly.
>
> - Laszlo
>
>
> 2014-03-10 11:03 GMT+01:00 Mike Claudi Pedersen  >:
>
>> im trying to establish connection between 2 phones
>> user1: 43384001
>> user2: 43384002
>>
>> i have user 2 added to usrloc with the cmd:
>>
>> opensipsctl ul add 43384003 sip:+1043384003*2...@voip.local.com
>> which is an asterisk server that handles calls in a specific way.
>>
>> but when i try to call i get "too many hops"
>>
>> this is my invite handling
>>
>> if (method=="INVITE")
>> {
>> t_relay();
>> exit;
>> };
>>
>> do i need some sort of line added to include using usrloc
>> --
>> Med venlig hilsen
>> ipnordic A/S
>>
>> Mike Claudi Pedersen
>> Tekniker
>>
>> Telefon: 79301033
>> www.ipnordic.dk
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
>
> --
>
> --
> Kind regards,
> Laszlo Bekesi
> http://voipfreak.net
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>


-- 
Med venlig hilsen
ipnordic A/S

Mike Claudi Pedersen
Tekniker

Telefon: 79301033
www.ipnordic.dk
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] too many hops

2014-03-10 Thread Stefano Pisani

It seems an addressing issue.
Could you post your opensips.cfg?
Are you able to log the sip session using ngrep? Post it.

Il 10/03/2014 11.03, Mike Claudi Pedersen ha scritto:

im trying to establish connection between 2 phones
user1: 43384001
user2: 43384002

i have user 2 added to usrloc with the cmd:

opensipsctl ul add 43384003 sip:+1043384003*2...@voip.local.com 


which is an asterisk server that handles calls in a specific way.

but when i try to call i get "too many hops"

this is my invite handling

if (method=="INVITE")
{
t_relay();
exit;
};

do i need some sort of line added to include using usrloc
--
Med venlig hilsen
ipnordic A/S

Mike Claudi Pedersen
Tekniker

Telefon: 79301033
www.ipnordic.dk 


___
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


Re: [OpenSIPS-Users] too many hops

2014-03-10 Thread Laszlo
If you added an usrloc entry, then you will need to use some kind of
locaton lookup and then route accordingly.

- Laszlo


2014-03-10 11:03 GMT+01:00 Mike Claudi Pedersen :

> im trying to establish connection between 2 phones
> user1: 43384001
> user2: 43384002
>
> i have user 2 added to usrloc with the cmd:
>
> opensipsctl ul add 43384003 sip:+1043384003*2...@voip.local.com
> which is an asterisk server that handles calls in a specific way.
>
> but when i try to call i get "too many hops"
>
> this is my invite handling
>
> if (method=="INVITE")
> {
> t_relay();
> exit;
> };
>
> do i need some sort of line added to include using usrloc
> --
> Med venlig hilsen
> ipnordic A/S
>
> Mike Claudi Pedersen
> Tekniker
>
> Telefon: 79301033
> www.ipnordic.dk
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>


-- 

--
Kind regards,
Laszlo Bekesi
http://voipfreak.net
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Too many Hops

2012-05-18 Thread Vallimamod ABDULLAH
After looking more closely, your notify request is malformed:

> Messages-Waiting: 10.
> Voicemail: 10/20.

These must be in message body and not headers and you must set the 
Content-Length appropriately.
Also, set the From and Contact headers values to the ip adress of the sending 
host ($srchost variable in sipsak template.)
Hope this will help.

Best Regards,
- vma
.



On May 18, 2012, at 2:57 PM, Schneur Rosenberg wrote:

> I dont see any loops, the request comes in once, and right away it
> sends a 483, and yes the domain name is in the domain table.
> 
> On Fri, May 18, 2012 at 1:37 PM, Vallimamod ABDULLAH
>  wrote:
>> Hi,
>> 
>> Do you see any loop on opensips for the notify request ? Is it forwarded 
>> back to your opensips until the Max-Forward reaches 0 ?
>> If so, opensips doesn't recognize the request as local so it tries to 
>> forward it (to himself.)
>> Check if the domain sip.mytcm.com is actually declared in the domain table.
>> 
>> Best Regards,
>> - vma
>> .
>> 
>> 
>> 
>> On May 18, 2012, at 10:25 AM, Schneur Rosenberg wrote:
>> 
>>> It returns a -1, as you can see in the sip trace the Max-Forwards is 70
>>> 
>>> May 18 08:22:20 server /sbin/opensips[1777]: -1 retcode
>>> 
>>> 
>>> On Fri, May 18, 2012 at 12:07 AM,   wrote:
 Maybe you are getting a -2 return code from your mf_process_maxfwd_header
 function
 
 http://www.opensips.org/html/docs/modules/1.4.x/maxfwd.html#id227234
 
 Before the sl_send_reply("483","Too Many Hops"); in your code do an xlog 
 and
 print out $retcode to see what its value is.
 
 
 
 
 
 
 On , Schneur Rosenberg  wrote:
> I'm trying to manipulate MWI with sipsak, problem is that I get a
> 
> SIP/2.0 483 Too Many Hops, I'm probably sending the packet wrong, here
> 
> is the packet and response.
> 
> 
> 
> U 64.69.27.120:57036 -> 75.98.168.213:5060
> 
> NOTIFY sip:grattcis...@sip.mytcm.com SIP/2.0.
> 
> Via: SIP/2.0/UDP 64.69.27.120:57036;branch=z9hG4bK.6d757891;rport;alias.
> 
> From: sip:t...@sip.mytcm.com>.
> 
> To: sip:grattcis...@sip.mytcm.com>.
> 
> Contact: sip:t...@sip.mytcm.com>.
> 
> Call-ID: c1661285-e48c9cf6-...@sip.mytcm.com.
> 
> CSeq: 1898 NOTIFY.
> 
> Event: message-summary.
> 
> Content-Type: application/simple-message-summary.
> 
> Max-Forwards: 70.
> 
> Content-Length: 0.
> 
> Messages-Waiting: 10.
> 
> Voicemail: 10/20.
> 
> .
> 
> 
> 
> 
> 
> U 75.98.168.213:5060-> 64.69.27.120:57036
> 
> SIP/2.0 483 Too Many Hops.
> 
> Via: SIP/2.0/UDP
> 
> 
> 64.69.47.111:57036;received=64.69.47.111;branch=z9hG4bK.6d757891;rport=57036;alias.
> 
> From: sip:t...@sip.mytcm.com>.
> 
> To:
> sip:grattcis...@sip.mytcm.com>;tag=c97b4d1cb1f3d0da549e06a8d482ef63.84af.
> 
> Call-ID: c1661285-e48c9cf6-...@opensips1.sosglobal.info.
> 
> CSeq: 1898 NOTIFY.
> 
> Server: OpenSIPS (1.7.1-notls (x86_64/linux)).
> 
> Content-Length: 0.
> 
> .
> 
> 
> 
> ___
> 
> 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
 
>>> 
>>> ___
>>> 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
> 
> ___
> 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


Re: [OpenSIPS-Users] Too many Hops

2012-05-18 Thread Schneur Rosenberg
I dont see any loops, the request comes in once, and right away it
sends a 483, and yes the domain name is in the domain table.

On Fri, May 18, 2012 at 1:37 PM, Vallimamod ABDULLAH
 wrote:
> Hi,
>
> Do you see any loop on opensips for the notify request ? Is it forwarded back 
> to your opensips until the Max-Forward reaches 0 ?
> If so, opensips doesn't recognize the request as local so it tries to forward 
> it (to himself.)
> Check if the domain sip.mytcm.com is actually declared in the domain table.
>
> Best Regards,
> - vma
> .
>
>
>
> On May 18, 2012, at 10:25 AM, Schneur Rosenberg wrote:
>
>> It returns a -1, as you can see in the sip trace the Max-Forwards is 70
>>
>> May 18 08:22:20 server /sbin/opensips[1777]: -1 retcode
>>
>>
>> On Fri, May 18, 2012 at 12:07 AM,   wrote:
>>> Maybe you are getting a -2 return code from your mf_process_maxfwd_header
>>> function
>>>
>>> http://www.opensips.org/html/docs/modules/1.4.x/maxfwd.html#id227234
>>>
>>> Before the sl_send_reply("483","Too Many Hops"); in your code do an xlog and
>>> print out $retcode to see what its value is.
>>>
>>>
>>>
>>>
>>>
>>>
>>> On , Schneur Rosenberg  wrote:
 I'm trying to manipulate MWI with sipsak, problem is that I get a

 SIP/2.0 483 Too Many Hops, I'm probably sending the packet wrong, here

 is the packet and response.



 U 64.69.27.120:57036 -> 75.98.168.213:5060

 NOTIFY sip:grattcis...@sip.mytcm.com SIP/2.0.

 Via: SIP/2.0/UDP 64.69.27.120:57036;branch=z9hG4bK.6d757891;rport;alias.

 From: sip:t...@sip.mytcm.com>.

 To: sip:grattcis...@sip.mytcm.com>.

 Contact: sip:t...@sip.mytcm.com>.

 Call-ID: c1661285-e48c9cf6-...@sip.mytcm.com.

 CSeq: 1898 NOTIFY.

 Event: message-summary.

 Content-Type: application/simple-message-summary.

 Max-Forwards: 70.

 Content-Length: 0.

 Messages-Waiting: 10.

 Voicemail: 10/20.

 .





 U 75.98.168.213:5060-> 64.69.27.120:57036

 SIP/2.0 483 Too Many Hops.

 Via: SIP/2.0/UDP


 64.69.47.111:57036;received=64.69.47.111;branch=z9hG4bK.6d757891;rport=57036;alias.

 From: sip:t...@sip.mytcm.com>.

 To:
 sip:grattcis...@sip.mytcm.com>;tag=c97b4d1cb1f3d0da549e06a8d482ef63.84af.

 Call-ID: c1661285-e48c9cf6-...@opensips1.sosglobal.info.

 CSeq: 1898 NOTIFY.

 Server: OpenSIPS (1.7.1-notls (x86_64/linux)).

 Content-Length: 0.

 .



 ___

 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
>>>
>>
>> ___
>> 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

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


Re: [OpenSIPS-Users] Too many Hops

2012-05-18 Thread Vallimamod ABDULLAH
Hi,

Do you see any loop on opensips for the notify request ? Is it forwarded back 
to your opensips until the Max-Forward reaches 0 ?
If so, opensips doesn't recognize the request as local so it tries to forward 
it (to himself.) 
Check if the domain sip.mytcm.com is actually declared in the domain table.

Best Regards,
- vma
.



On May 18, 2012, at 10:25 AM, Schneur Rosenberg wrote:

> It returns a -1, as you can see in the sip trace the Max-Forwards is 70
> 
> May 18 08:22:20 server /sbin/opensips[1777]: -1 retcode
> 
> 
> On Fri, May 18, 2012 at 12:07 AM,   wrote:
>> Maybe you are getting a -2 return code from your mf_process_maxfwd_header
>> function
>> 
>> http://www.opensips.org/html/docs/modules/1.4.x/maxfwd.html#id227234
>> 
>> Before the sl_send_reply("483","Too Many Hops"); in your code do an xlog and
>> print out $retcode to see what its value is.
>> 
>> 
>> 
>> 
>> 
>> 
>> On , Schneur Rosenberg  wrote:
>>> I'm trying to manipulate MWI with sipsak, problem is that I get a
>>> 
>>> SIP/2.0 483 Too Many Hops, I'm probably sending the packet wrong, here
>>> 
>>> is the packet and response.
>>> 
>>> 
>>> 
>>> U 64.69.27.120:57036 -> 75.98.168.213:5060
>>> 
>>> NOTIFY sip:grattcis...@sip.mytcm.com SIP/2.0.
>>> 
>>> Via: SIP/2.0/UDP 64.69.27.120:57036;branch=z9hG4bK.6d757891;rport;alias.
>>> 
>>> From: sip:t...@sip.mytcm.com>.
>>> 
>>> To: sip:grattcis...@sip.mytcm.com>.
>>> 
>>> Contact: sip:t...@sip.mytcm.com>.
>>> 
>>> Call-ID: c1661285-e48c9cf6-...@sip.mytcm.com.
>>> 
>>> CSeq: 1898 NOTIFY.
>>> 
>>> Event: message-summary.
>>> 
>>> Content-Type: application/simple-message-summary.
>>> 
>>> Max-Forwards: 70.
>>> 
>>> Content-Length: 0.
>>> 
>>> Messages-Waiting: 10.
>>> 
>>> Voicemail: 10/20.
>>> 
>>> .
>>> 
>>> 
>>> 
>>> 
>>> 
>>> U 75.98.168.213:5060-> 64.69.27.120:57036
>>> 
>>> SIP/2.0 483 Too Many Hops.
>>> 
>>> Via: SIP/2.0/UDP
>>> 
>>> 
>>> 64.69.47.111:57036;received=64.69.47.111;branch=z9hG4bK.6d757891;rport=57036;alias.
>>> 
>>> From: sip:t...@sip.mytcm.com>.
>>> 
>>> To:
>>> sip:grattcis...@sip.mytcm.com>;tag=c97b4d1cb1f3d0da549e06a8d482ef63.84af.
>>> 
>>> Call-ID: c1661285-e48c9cf6-...@opensips1.sosglobal.info.
>>> 
>>> CSeq: 1898 NOTIFY.
>>> 
>>> Server: OpenSIPS (1.7.1-notls (x86_64/linux)).
>>> 
>>> Content-Length: 0.
>>> 
>>> .
>>> 
>>> 
>>> 
>>> ___
>>> 
>>> 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
>> 
> 
> ___
> 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


Re: [OpenSIPS-Users] Too many Hops

2012-05-18 Thread Schneur Rosenberg
It returns a -1, as you can see in the sip trace the Max-Forwards is 70

May 18 08:22:20 server /sbin/opensips[1777]: -1 retcode


On Fri, May 18, 2012 at 12:07 AM,   wrote:
> Maybe you are getting a -2 return code from your mf_process_maxfwd_header
> function
>
> http://www.opensips.org/html/docs/modules/1.4.x/maxfwd.html#id227234
>
> Before the sl_send_reply("483","Too Many Hops"); in your code do an xlog and
> print out $retcode to see what its value is.
>
>
>
>
>
>
> On , Schneur Rosenberg  wrote:
>> I'm trying to manipulate MWI with sipsak, problem is that I get a
>>
>> SIP/2.0 483 Too Many Hops, I'm probably sending the packet wrong, here
>>
>> is the packet and response.
>>
>>
>>
>> U 64.69.27.120:57036 -> 75.98.168.213:5060
>>
>> NOTIFY sip:grattcis...@sip.mytcm.com SIP/2.0.
>>
>> Via: SIP/2.0/UDP 64.69.27.120:57036;branch=z9hG4bK.6d757891;rport;alias.
>>
>> From: sip:t...@sip.mytcm.com>.
>>
>> To: sip:grattcis...@sip.mytcm.com>.
>>
>> Contact: sip:t...@sip.mytcm.com>.
>>
>> Call-ID: c1661285-e48c9cf6-...@sip.mytcm.com.
>>
>> CSeq: 1898 NOTIFY.
>>
>> Event: message-summary.
>>
>> Content-Type: application/simple-message-summary.
>>
>> Max-Forwards: 70.
>>
>> Content-Length: 0.
>>
>> Messages-Waiting: 10.
>>
>> Voicemail: 10/20.
>>
>> .
>>
>>
>>
>>
>>
>> U 75.98.168.213:5060-> 64.69.27.120:57036
>>
>> SIP/2.0 483 Too Many Hops.
>>
>> Via: SIP/2.0/UDP
>>
>>
>> 64.69.47.111:57036;received=64.69.47.111;branch=z9hG4bK.6d757891;rport=57036;alias.
>>
>> From: sip:t...@sip.mytcm.com>.
>>
>> To:
>> sip:grattcis...@sip.mytcm.com>;tag=c97b4d1cb1f3d0da549e06a8d482ef63.84af.
>>
>> Call-ID: c1661285-e48c9cf6-...@opensips1.sosglobal.info.
>>
>> CSeq: 1898 NOTIFY.
>>
>> Server: OpenSIPS (1.7.1-notls (x86_64/linux)).
>>
>> Content-Length: 0.
>>
>> .
>>
>>
>>
>> ___
>>
>> 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
>

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


Re: [OpenSIPS-Users] Too many Hops

2012-05-17 Thread duane . larson
Maybe you are getting a -2 return code from your mf_process_maxfwd_header  
function


http://www.opensips.org/html/docs/modules/1.4.x/maxfwd.html#id227234

Before the sl_send_reply("483","Too Many Hops"); in your code do an xlog  
and print out $retcode to see what its value is.






On , Schneur Rosenberg  wrote:

I'm trying to manipulate MWI with sipsak, problem is that I get a



SIP/2.0 483 Too Many Hops, I'm probably sending the packet wrong, here



is the packet and response.





U 64.69.27.120:57036 -> 75.98.168.213:5060



NOTIFY sip:grattcis...@sip.mytcm.com SIP/2.0.



Via: SIP/2.0/UDP 64.69.27.120:57036;branch=z9hG4bK.6d757891;rport;alias.



From: sip:t...@sip.mytcm.com>.



To: sip:grattcis...@sip.mytcm.com>.



Contact: sip:t...@sip.mytcm.com>.



Call-ID: c1661285-e48c9cf6-...@sip.mytcm.com.



CSeq: 1898 NOTIFY.



Event: message-summary.



Content-Type: application/simple-message-summary.



Max-Forwards: 70.



Content-Length: 0.



Messages-Waiting: 10.



Voicemail: 10/20.



.







U 75.98.168.213:5060-> 64.69.27.120:57036



SIP/2.0 483 Too Many Hops.



Via: SIP/2.0/UDP



64.69.47.111:57036;received=64.69.47.111;branch=z9hG4bK.6d757891;rport=57036;alias.



From: sip:t...@sip.mytcm.com>.


To:  
sip:grattcis...@sip.mytcm.com>;tag=c97b4d1cb1f3d0da549e06a8d482ef63.84af.



Call-ID: c1661285-e48c9cf6-...@opensips1.sosglobal.info.



CSeq: 1898 NOTIFY.



Server: OpenSIPS (1.7.1-notls (x86_64/linux)).



Content-Length: 0.



.





___



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


Re: [OpenSIPS-Users] Too Many Hops problem in OpenSIPS

2012-02-17 Thread Flavio Goncalves
Hi,

Usually, too many hops means that the domain is not  in the domain table.
The server identifies the destination as an external server and relay using
dns to the same server.

Flavio E. Goncalves
SipPulse Sip Solutions




On Fri, Feb 17, 2012 at 11:28 AM, Faisal Rehman
wrote:

> Hi Everyone,
>
> I have been using the OpenSIPS configuration file given here in the link
> http://www.opensips.org/Resources/DocsTutAsterisk just for testing &
> integrating with asterisk but I have gone through all the file and couldn't
> find the reason of Too Many Hops even though I changed its value but still
> giving this error & the packet size is also too large, so what should I
> disable in the configuration file given in the above link.
>
>
> Regards,
>
> Faisal Rehman
>
>
> ___
> 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


Re: [OpenSIPS-Users] too many hops error in opensips.cfg

2009-03-20 Thread Iñaki Baz Castillo
El Viernes, 20 de Marzo de 2009, bay2x1 escribió:
> I am trying to create my own opensips.cfg configuration.  My registration
> is working perfectly but my I am having problems in handling invite
> transactions.  Can anyone point out and/or explain what is wrong with my
> code?

Debug your code for free and predict your problems by reading it? Sorry, not 
possible.
You cannot ask for others to spend time solving your problems if you are not 
able to spend some time to write a detailed and well explained mail.

-- 
Iñaki Baz Castillo

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


Re: [OpenSIPS-Users] too many hops error in opensips.cfg

2009-03-20 Thread Bogdan-Andrei Iancu
Hi,

When asking for help, please specify your problem - what error you get, 
what it's not working, etc - all these, as accurate as possible.

Generic "having problem with" statements give no info about your issue, 
so nobody will be able to help you.

Regards,
Bogdan


bay2x1 wrote:
> I am trying to create my own opensips.cfg configuration.  My registration is
> working perfectly but my I am having problems in handling invite
> transactions.  Can anyone point out and/or explain what is wrong with my
> code?
>
> # main request routing logic
>
> route{
>
>
>
>
>   if(!mf_process_maxfwd_header("10")){
>   sl_send_reply("483", "Too Many Hops");
>   exit;
>   };
>
> #sequential request goes here 
>   if(has_totag()){
>   if(loose_route()){
>   if(is_method("BYE")){
>   setflag(1);
>   setflag(3);
>   }
>   route(2);
>   } else {
>
>   if(is_method("ACK")){
>   if(t_check_trans()){
>   t_relay();
>   exit;
>   }else{
>   exit;
>   };
>   }
>   sl_send_reply("404", "Not here");
>
>   };
>   exit;
>   };
>
>   #initial request goes here
>
>   if(is_method("CANCEL")){
>   if(t_check_trans()){
>   t_relay();
>   }
>   exit;
>   }
>
>
>   t_check_trans();
>   
>   if(method=='REGISTER'){
>   route(1);
>   }else if (!is_method("REGISTER|MESSAGE")) {
>   record_route();
>   if((method=="INVITE" && !has_totag())){
>   route(2);
>   };
>   
>   };
> }
>
> route[1] {   
>
>
>
>
>   if(is_uri_host_local()) {
>   if (!www_authorize("", "subscriber"))
>   {
>   xlog("RQINC-INFO: WWW Registration Challenge by: 
> $fu\n");
>   www_challenge("", "0");
>   exit;
>   
>   }
>   
>   if (!check_to()) 
>   {
>   sl_send_reply("403","Forbidden auth ID");
>   exit;
>   }
>
>   
>   if (!save("location"))
>   sl_reply_error();
>
>   exit;
>   } else if {
>   sl_send_reply("403", "Forbidden");
>   };
> }
>
> route[2] {
>
>
>
>   
>   xlog("RQINC INFO:  Processing Outbound Request! \n");
>   xlog("RQINC INFO:  Request Method=$rm! CSEQ=$cs \n");
>   t_on_branch("2");
>   t_on_reply("2");
>   t_on_failure("1");  
>   
>
>   if(!t_relay()){
>   sl_reply_error();
>   exit;
>   };
>   
>   exit;
> }
>
>
>
>
> branch_route[2] {
>   xlog("RQINC INFO: New Branch at $ru \n");
>   xlog("RQINC INFO: $bR = branch CSEQ=$cs\n");
> }
>
> onreply_route[2] {
>   xlog("RQINC INFO: Incoming Reply \n");
>   xlog("RQINC INFO: Reply = $rr and Reply status = $rs  CSEQ=$cs\n");
> }
>
> failure_route[1] {
>
>   xlog("RQINC INFO: Request Failure \n");
>   if (t_was_cancelled()) {
>   xlog("Transaction Cancelled --rqinc CSEQ=$cs\n");
>   exit;
>   }
>   exit;
> }
>
>   


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


Re: [OpenSIPS-Users] Too many hops

2009-01-06 Thread Bogdan-Andrei Iancu
Hi,

You mean opensermyadmin? it should be compatible

Regards,
Bogdan

J Santos wrote:
> Thank you,
> does anybody knows if the openseradmin tool can be used for opensips ?
> thanks
> Jair Santos
>
> -Original Message-
> *From:* Alex Balashov [mailto:abalas...@evaristesys.com]
> *Sent:* Monday, December 29, 2008 12:09 PM
> *To:* Jeff Pyle
> *Cc:* J Santos; 
>     *Subject:* Re: [OpenSIPS-Users] Too many hops
>
> Most likely you are relaying INVITEs or other end-to-end requests
> without altering the Request URI domain, thus forwarding them back
> to the proxy.
>
> On Dec 29, 2008, at 3:02 PM, Jeff Pyle  <mailto:jp...@fidelityvoice.com>> wrote:
>
>> Most likely there is a problem in your routing logic that is
>> causing a loop. Each iteration of the loop causes one more “hop”.
>> At some point, there are too many hops.
>>
>> I would suggest adding some xlog lines to your script and
>> watching the log output to see where your routing is taking you.
>> You should be able to see where the problem is with that.
>>
>>
>>
>> - Jeff
>>
>>
>>
>>
>> On 12/29/08 2:22 PM, "J Santos" > <mailto:jsantos5...@gmail.com>> wrote:
>>
>>
>> Hi all,
>>
>> I have two Xlite registered with opensips when configured
>> with the box IP address. I can make calls between these phones.
>>
>> I created a SRV record and configured one of the phones with
>> the domain and it is not registering. It is returning the
>> message "Registration error:483 Too many hops".
>>
>> It looks like it is coming from
>>
>> if (!mf_process_maxfwd_header("10")) {
>> sl_send_reply("483","Too Many Hops");
>> exit;
>> but why ? I have only these two phones in the network.
>>
>> Firewall is disabled and I am forwarding ports UDP 5060-5070
>> to the opensips box.
>>
>> Any ideas?
>>
>> thanks
>>
>> Jair Santos
>>
>>
>>
>> 
>> 
>> ___
>> Users mailing list
>> Users@lists.opensips.org <mailto:Users@lists.opensips.org>
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org <mailto:Users@lists.opensips.org>
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.176 / Virus Database: 270.10.1/1868 - Release Date:
> 12/29/2008 10:48 AM
>
> 
>
> ___
> 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


Re: [OpenSIPS-Users] Too many hops

2008-12-29 Thread J Santos
 
Thank you,
 
does anybody knows if the openseradmin tool can be used for opensips ?
 
thanks
 
Jair Santos
 
 

 

-Original Message-
From: Alex Balashov [mailto:abalas...@evaristesys.com] 
Sent: Monday, December 29, 2008 12:09 PM
To: Jeff Pyle
Cc: J Santos; 
Subject: Re: [OpenSIPS-Users] Too many hops


Most likely you are relaying INVITEs or other end-to-end requests without
altering the Request URI domain, thus forwarding them back to the proxy.

On Dec 29, 2008, at 3:02 PM, Jeff Pyle  wrote:



Most likely there is a problem in your routing logic that is causing a loop.
Each iteration of the loop causes one more "hop".  At some point, there are
too many hops.

I would suggest adding some xlog lines to your script and watching the log
output to see where your routing is taking you.  You should be able to see
where the problem is with that.



- Jeff




On 12/29/08 2:22 PM, "J Santos"  wrote:




Hi all,

I have two Xlite registered with opensips when configured with the box IP
address. I can make calls between these phones.

I created a SRV record  and configured one of the phones with the domain and
it is not registering. It is returning the message "Registration error:483
Too many hops".

It looks like it is coming from 

if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
exit;
but why ? I have only these two phones in the network.

Firewall is disabled and I am forwarding ports UDP 5060-5070  to the
opensips box.

Any ideas?

thanks

Jair Santos

 


  _  

___
Users mailing list
Users@lists.opensips.org
 <http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
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


No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.176 / Virus Database: 270.10.1/1868 - Release Date: 12/29/2008
10:48 AM


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


Re: [OpenSIPS-Users] Too many hops

2008-12-29 Thread Alex Balashov
Most likely you are relaying INVITEs or other end-to-end requests  
without altering the Request URI domain, thus forwarding them back to  
the proxy.


On Dec 29, 2008, at 3:02 PM, Jeff Pyle  wrote:

Most likely there is a problem in your routing logic that is causing  
a loop.  Each iteration of the loop causes one more “hop”.  At  
some point, there are too many hops.


I would suggest adding some xlog lines to your script and watching  
the log output to see where your routing is taking you.  You should  
be able to see where the problem is with that.




- Jeff




On 12/29/08 2:22 PM, "J Santos"  wrote:


Hi all,

I have two Xlite registered with opensips when configured with the  
box IP address. I can make calls between these phones.


I created a SRV record  and configured one of the phones with the  
domain and it is not registering. It is returning the message  
"Registration error:483  Too many hops".


It looks like it is coming from

if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
exit;
but why ? I have only these two phones in the network.

Firewall is disabled and I am forwarding ports UDP 5060-5070  to the  
opensips box.


Any ideas?

thanks

Jair Santos



___
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
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Too many hops

2008-12-29 Thread Jeff Pyle
Most likely there is a problem in your routing logic that is causing a loop.
Each iteration of the loop causes one more ³hop².  At some point, there are
too many hops.

I would suggest adding some xlog lines to your script and watching the log
output to see where your routing is taking you.  You should be able to see
where the problem is with that.



- Jeff




On 12/29/08 2:22 PM, "J Santos"  wrote:

>  
> Hi all,
>  
> I have two Xlite registered with opensips when configured with the box IP
> address. I can make calls between these phones.
>  
> I created a SRV record  and configured one of the phones with the domain and
> it is not registering. It is returning the message "Registration error:483
> Too many hops".
>  
> It looks like it is coming from
>  
> if (!mf_process_maxfwd_header("10")) {
> sl_send_reply("483","Too Many Hops");
> exit;
> but why ? I have only these two phones in the network.
>  
> Firewall is disabled and I am forwarding ports UDP 5060-5070  to the opensips
> box.
>  
> Any ideas?
>  
> thanks
>  
> Jair Santos
>  
>  
> 
> 
> ___
> 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