Re: [OpenSIPS-Users] Question about error 500 only via WIFI

2022-05-12 Thread Rodrigo Pimenta Carvalho
Hi.  I found the error cause.  But I still don't know why I have such issue.


When I use my Internet Link (WIFI in my home office), the SIP register message 
is sent correctly. Like this:

Session Initiation Protocol (REGISTER)
Request-Line: REGISTER sip:54.233.189.46:5060;transport=UDP SIP/2.0
Method: REGISTER
Request-URI: sip:54.233.189.46:5060;transport=UDP
[Resent Packet: False]
Message Header
Via: SIP/2.0/UDP 
192.168.1.103:5060;branch=z9hG4bK-524287-1---6dbfa766cffddeee;rport
Max-Forwards: 70
Contact: 

To: ;transport=UDP>
From: ;tag=98bfc34c
Call-ID: H1E0jkwiMniiyT5az1BT7g..
CSeq: 1 REGISTER
Expires: 60
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, 
SUBSCRIBE
User-Agent: Zoiper v2.10.18.1-mod
Allow-Events: presence, kpml, talk
Content-Length: 0

Opensips got the message above.

However, when I use the GSM mobile network (from VIVO) , some service changes 
the content of the SIP Register message. Like this:

Session Initiation Protocol (REGISTER)
Request-Line: REGISTER sip:[64:ff9b::36e9:bd2e]:5060;transport=UDP SIP/2.0
Method: REGISTER
Request-URI: sip:[64:ff9b::36e9:bd2e]:5060;transport=UDP
[Resent Packet: False]
Message Header
Via: SIP/2.0/UDP 
[64:ff9b::c000:4];branch=z9hG4bK-524287-1---0a8189adf6c3449a
Max-Forwards: 70
Contact: 

To: 
From: ;tag=f19aea4d
Call-ID: VICBinZsDk5_ZhpHGd__CQ..
CSeq: 1 REGISTER
Expires: 60
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, 
SUBSCRIBE
User-Agent: Zoiper v2.10.18.1-mod
Allow-Events: presence, kpml, talk
Content-Length: 0


That is why Opensips returns error 500. I guess some service changed IPv4 to 
something IPv6.
Could it be caused by the GSM operator (VIVO) ?
What should I investigage to solve this problem?

Any hint will be very helpful !

Thanks alot.

RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL: 979


De: Users  em nome de Daniel Zanutti 

Enviado: quinta-feira, 12 de maio de 2022 11:57
Para: OpenSIPS users mailling list 
Assunto: Re: [OpenSIPS-Users] Question about error 500 only via WIFI

Olá Rodrigo, tudo bem? Saudações de São Paulo!

Opensips doesn't differentiate the network, it will look just to the sip 
packet. I recommend you sniff through your packets and check what's different. 
Probably there's somenthing on opensips log you didn't get yet, recommend you 
take a look there first btw.

About push, I think you're enable push notifications on your device, take a 
look: https://www.zoiper.com/en/support/home/article/205/Zoiper%20Push%20Proxy

Regards


On Wed, May 11, 2022 at 4:13 PM Rodrigo Pimenta Carvalho 
mailto:pime...@inatel.br>> wrote:
Hi.

My SIP proxy is an OpenSIPS version 2.4.7. It was 'off' for a while and today I 
turned it on again for some tests.

I usually use my home office local WIFI to connect my softphones to the network 
and it can be all connected (online) to this SIP proxy.

However, if I use the mobile network (LTE/4G) to connect the softphones to the 
SIP proxy, the OpenSIP returns an error 500. That is: "SIP/2.0 500 Server error 
occurred (7/TM)".

One of the softphones (Zoiper) allows me to use a kind of "proxy PUSH". If I 
use it, the problem is solved even while using the mobile network.

What is a proxy PUSH?  Why OpenSIPs return error in a case, but not in the 
other one?
What could I do to avoid using a 'proxy PUSH'?

Local WIFI and mobile network come from different carriers.

Any hint will be very helpful!

Best regards.

RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL: 979

___
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] Question about error 500 only via WIFI

2022-05-12 Thread Rodrigo Pimenta Carvalho
Olá Daniel.

Thank you !
I will take a look.

Regards.

RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL: 979


De: Users  em nome de Daniel Zanutti 

Enviado: quinta-feira, 12 de maio de 2022 11:57
Para: OpenSIPS users mailling list 
Assunto: Re: [OpenSIPS-Users] Question about error 500 only via WIFI

Olá Rodrigo, tudo bem? Saudações de São Paulo!

Opensips doesn't differentiate the network, it will look just to the sip 
packet. I recommend you sniff through your packets and check what's different. 
Probably there's somenthing on opensips log you didn't get yet, recommend you 
take a look there first btw.

About push, I think you're enable push notifications on your device, take a 
look: https://www.zoiper.com/en/support/home/article/205/Zoiper%20Push%20Proxy

Regards


On Wed, May 11, 2022 at 4:13 PM Rodrigo Pimenta Carvalho 
mailto:pime...@inatel.br>> wrote:
Hi.

My SIP proxy is an OpenSIPS version 2.4.7. It was 'off' for a while and today I 
turned it on again for some tests.

I usually use my home office local WIFI to connect my softphones to the network 
and it can be all connected (online) to this SIP proxy.

However, if I use the mobile network (LTE/4G) to connect the softphones to the 
SIP proxy, the OpenSIP returns an error 500. That is: "SIP/2.0 500 Server error 
occurred (7/TM)".

One of the softphones (Zoiper) allows me to use a kind of "proxy PUSH". If I 
use it, the problem is solved even while using the mobile network.

What is a proxy PUSH?  Why OpenSIPs return error in a case, but not in the 
other one?
What could I do to avoid using a 'proxy PUSH'?

Local WIFI and mobile network come from different carriers.

Any hint will be very helpful!

Best regards.

RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL: 979

___
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] Question about error 500 only via WIFI

2022-05-12 Thread Daniel Zanutti
Olá Rodrigo, tudo bem? Saudações de São Paulo!

Opensips doesn't differentiate the network, it will look just to the sip
packet. I recommend you sniff through your packets and check what's
different. Probably there's somenthing on opensips log you didn't get yet,
recommend you take a look there first btw.

About push, I think you're enable push notifications on your device, take a
look:
https://www.zoiper.com/en/support/home/article/205/Zoiper%20Push%20Proxy

Regards


On Wed, May 11, 2022 at 4:13 PM Rodrigo Pimenta Carvalho 
wrote:

> Hi.
>
> My SIP proxy is an OpenSIPS version 2.4.7. It was 'off' for a while and
> today I turned it on again for some tests.
>
> I usually use my home office local WIFI to connect my softphones to the
> network and it can be all connected (online) to this SIP proxy.
>
> However, if I use the mobile network (LTE/4G) to connect the softphones to
> the SIP proxy, the OpenSIP returns an error 500. That is: "SIP/2.0 500
> Server error occurred (7/TM)".
>
> One of the softphones (Zoiper) allows me to use a kind of "proxy PUSH". If
> I use it, the problem is solved even while using the mobile network.
>
> What is a proxy PUSH?  Why OpenSIPs return error in a case, but not in the
> other one?
> What could I do to avoid using a 'proxy PUSH'?
>
> Local WIFI and mobile network come from different carriers.
>
> Any hint will be very helpful!
>
> Best regards.
>
> RODRIGO PIMENTA CARVALHO
> Inatel Competence Center
> Software
> Ph: +55 35 3471 9200 RAMAL: 979
>
> ___
> 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] Need some help in clusterer table and its use in opensips 3.2 .

2022-05-12 Thread Sasmita Panda
Hi ,

my_node_id parameter is to define that particular node id . But how will I
define the cluster_id parameter? I want to differentiate both clusters .
I have added my_node_id parameter already . But by default its looking for
cluster_id:1 . But in the database I have defined cluster_id :2 .

modparam("clusterer", "my_node_id", 1)

How will I associate the database and config ?

*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Thu, May 12, 2022 at 1:20 PM Chester Lee  wrote:

> Hi,
>
> You can specify cluster id in the config. please refer to
> https://opensips.org/docs/modules/3.2.x/clusterer.html#param_my_node_id
>
> I hope this helps.
>
> Regards
> Chester
>
>
> 2022년 5월 12일 (목) 오후 4:06, Sasmita Panda 님이 작성:
>
>> Hi All ,
>>
>> I have 2 opesips cluster each cluster has 2 opensips node . I want to
>> define all the cluster node information in a single opensips database .
>>
>> My clusterer table looks like below .
>>
>>
>> +++-+---+---+-+--+--+---++
>> | id | cluster_id | node_id | url   | state |
>> no_ping_retries | priority | sip_addr | flags | description|
>>
>> +++-+---+---+-+--+--+---++
>> |  1 |  1 |   1 | bin:1.1.1.1: | 1 |   3
>> |   50 | NULL | seed  | Node A |
>> |  2 |  1 |   2 | bin:2.2.2.2:  | 1 |
>> 3 |   50 | NULL | seed  | Node B |
>> |  3 |  2 |   1 | bin:3.3.3.3: | 1 |   3
>> |   50 | NULL | NULL  | cluster2 Node1 |
>> |  4 |  2 |   2 | bin:4.4.4.4: | 1 |   3
>> |   50 | NULL | NULL  | cluster2 Node2 |
>>
>> +++-+---+---+-+--+--+---++
>>
>> In pensips 3.2 there is no cluster_id parameter to define in the config .
>> In the config I don't want to add the IP in the config  . For cluster 2 ,
>> when I am defining node 1 , its taking the value of node 1 of cluster 1 .
>>
>> Is this possible anyhow or I have to save the data in a different
>> database ?
>>
>>
>> *Thanks & Regards*
>> *Sasmita Panda*
>> *Senior Network Testing and Software Engineer*
>> *3CLogic , ph:07827611765*
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>
> --
> __
>
>
> 이 기 원 CTO실 / 매니저
> (주)직방 | 010.6479.1321 | ches...@zigbang.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] Need some help in clusterer table and its use in opensips 3.2 .

2022-05-12 Thread Chester Lee
Hi,

You can specify cluster id in the config. please refer to
https://opensips.org/docs/modules/3.2.x/clusterer.html#param_my_node_id

I hope this helps.

Regards
Chester


2022년 5월 12일 (목) 오후 4:06, Sasmita Panda 님이 작성:

> Hi All ,
>
> I have 2 opesips cluster each cluster has 2 opensips node . I want to
> define all the cluster node information in a single opensips database .
>
> My clusterer table looks like below .
>
>
> +++-+---+---+-+--+--+---++
> | id | cluster_id | node_id | url   | state |
> no_ping_retries | priority | sip_addr | flags | description|
>
> +++-+---+---+-+--+--+---++
> |  1 |  1 |   1 | bin:1.1.1.1: | 1 |   3
> |   50 | NULL | seed  | Node A |
> |  2 |  1 |   2 | bin:2.2.2.2:  | 1 |   3
> |   50 | NULL | seed  | Node B |
> |  3 |  2 |   1 | bin:3.3.3.3: | 1 |   3
> |   50 | NULL | NULL  | cluster2 Node1 |
> |  4 |  2 |   2 | bin:4.4.4.4: | 1 |   3
> |   50 | NULL | NULL  | cluster2 Node2 |
>
> +++-+---+---+-+--+--+---++
>
> In pensips 3.2 there is no cluster_id parameter to define in the config .
> In the config I don't want to add the IP in the config  . For cluster 2 ,
> when I am defining node 1 , its taking the value of node 1 of cluster 1 .
>
> Is this possible anyhow or I have to save the data in a different database
> ?
>
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Senior Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


-- 
__


이 기 원 CTO실 / 매니저
(주)직방 | 010.6479.1321 | ches...@zigbang.com

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


[OpenSIPS-Users] Need some help in clusterer table and its use in opensips 3.2 .

2022-05-12 Thread Sasmita Panda
Hi All ,

I have 2 opesips cluster each cluster has 2 opensips node . I want to
define all the cluster node information in a single opensips database .

My clusterer table looks like below .

+++-+---+---+-+--+--+---++
| id | cluster_id | node_id | url   | state |
no_ping_retries | priority | sip_addr | flags | description|
+++-+---+---+-+--+--+---++
|  1 |  1 |   1 | bin:1.1.1.1: | 1 |   3 |
  50 | NULL | seed  | Node A |
|  2 |  1 |   2 | bin:2.2.2.2:  | 1 |   3 |
  50 | NULL | seed  | Node B |
|  3 |  2 |   1 | bin:3.3.3.3: | 1 |   3 |
  50 | NULL | NULL  | cluster2 Node1 |
|  4 |  2 |   2 | bin:4.4.4.4: | 1 |   3 |
  50 | NULL | NULL  | cluster2 Node2 |
+++-+---+---+-+--+--+---++

In pensips 3.2 there is no cluster_id parameter to define in the config .
In the config I don't want to add the IP in the config  . For cluster 2 ,
when I am defining node 1 , its taking the value of node 1 of cluster 1 .

Is this possible anyhow or I have to save the data in a different database ?


*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users