Olá Rodrigo The problem seems to be the IPV6 addresses. Did you look at the logs to know exactly why opensips refused the call?
IPV4 is almost out in Brazil, mobile carriers are using ipv6 addresses on mobile devices. This is the issue, but in theory opensips should handle this seamlessly. Do you have IPV6 in your server or the message came on ipv4 address but SIP has ipv6 addresses? I recommend you check logs, the issue should be there. Also, if you plan to allow mobile devices, you should be prepared to use ipv6 on your net. On Thu, May 12, 2022 at 4:57 PM Rodrigo Pimenta Carvalho <pime...@inatel.br> wrote: > 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: <sip:55555@192.168.1.103:5060 > ;rinstance=1afa98b2b6d17a34;transport=UDP> > To: <sip:55555@54.233.189.46:5060>;transport=UDP> > From: <sip:55555@54.233.189.46:5060;transport=UDP>;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: <sip:55555@*[64:ff9b::c000:4]* > :5060;transport=UDP;rinstance=ffaac43f13178e89> > To: <sip:55555@*[64:ff9b::36e9:bd2e]*:5060> > From: <sip:55555@*[64:ff9b::36e9:bd2e]*:5060>;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 <users-boun...@lists.opensips.org> em nome de Daniel Zanutti < > daniel.zanu...@gmail.com> > *Enviado:* quinta-feira, 12 de maio de 2022 11:57 > *Para:* OpenSIPS users mailling list <users@lists.opensips.org> > *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 < > 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 >
_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users