SUBSCRIBE

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

SUBSCRIBE

Slava Bendersky-2
Hello Everyone,
What possible cause that opensips generate 500 error on SUBSCRIBE 

#### Presence
loadmodule "presence.so"
loadmodule "presence_mwi.so"
loadmodule "presence_xml.so"
loadmodule "presence_dialoginfo.so"
loadmodule "presence_callinfo.so"
loadmodule "pua.so"
loadmodule "pua_dialoginfo.so"
loadmodule "xcap.so"
modparam("presence|xcap|pua","db_url",")
#modparam("presence","server_address","sip:proxy@")  multi home 
modparam("presence", "clean_period",  30)
modparam("presence", "mix_dialog_presence", 1)
modparam("presence_xml", "force_active", 1)
#modparam("pua_dialoginfo", "presence_server", "sip:sbc@) multi home


2018/10/29 08:50:30.061342 190.240.46.242:36868 -> 190.248.157.3:5084
SUBSCRIBE sip:[hidden email]:5160 SIP/2.0
Via: SIP/2.0/TCP 192.168.1.65:19464;branch=z9hG4bK1855278236;rport;alias
From: <sip:[hidden email]:5160>;tag=473433483
To: <sip:[hidden email]:5160>
CSeq: 21200 SUBSCRIBE
Contact: <sip:101@192.168.1.65:19464;transport=tcp>
X-Grandstream-PBX: true
Max-Forwards: 70
User-Agent: Grandstream GXP1760W 1.0.1.74
Expires: 432000
Supported: replaces, path, timer
Event: message-summary
Accept: application/simple-message-summary
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0



2018/10/29 08:50:30.062338 190.248.157.3:5084 -> 190.240.46.242:36868
SIP/2.0 500 Server error occurred (1/SL)
Via: SIP/2.0/TCP 192.168.1.65:19464;received=190.240.46.242;branch=z9hG4bK1855278236;rport=36868;alias
From: <sip:[hidden email]:5160>;tag=473433483
To: <sip:[hidden email]:5160>;tag=a3f6a7240e26af61ce52d7ac2261cc82.ee28
CSeq: 21200 SUBSCRIBE
Server: OpenSIPS (3.0.0-dev (x86_64/linux))
Content-Length: 0


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: SUBSCRIBE

Slava Bendersky-2
That error message in log 

Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]: ERROR:core:get_out_socket: no socket found
Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]: ERROR:tm:t_uac: no corresponding socket for af 2
Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]: ERROR:pua:send_publish_int: failed to send PUBLISH
Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]: ERROR:pua_dialoginfo:dialog_publish: sending publish failed for pres_uri [sip:[hidden email]:5160] to server []
Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]: ERROR:core:get_out_socket: no socket found
Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]: ERROR:tm:t_uac: no corresponding socket for af 2

LAN side is UDP and WAN side TCP. Multi home environment. 
volga629

From: "Slava Bendersky" <[hidden email]>
To: "OpenSIPS users mailling list" <[hidden email]>
Sent: Monday, October 29, 2018 11:01:42 AM
Subject: [OpenSIPS-Users] SUBSCRIBE

Hello Everyone,
What possible cause that opensips generate 500 error on SUBSCRIBE 

#### Presence
loadmodule "presence.so"
loadmodule "presence_mwi.so"
loadmodule "presence_xml.so"
loadmodule "presence_dialoginfo.so"
loadmodule "presence_callinfo.so"
loadmodule "pua.so"
loadmodule "pua_dialoginfo.so"
loadmodule "xcap.so"
modparam("presence|xcap|pua","db_url",")
#modparam("presence","server_address","sip:proxy@")  multi home 
modparam("presence", "clean_period",  30)
modparam("presence", "mix_dialog_presence", 1)
modparam("presence_xml", "force_active", 1)
#modparam("pua_dialoginfo", "presence_server", "sip:sbc@) multi home


2018/10/29 08:50:30.061342 190.240.46.242:36868 -> 190.248.157.3:5084
SUBSCRIBE sip:[hidden email]:5160 SIP/2.0
Via: SIP/2.0/TCP 192.168.1.65:19464;branch=z9hG4bK1855278236;rport;alias
From: <sip:[hidden email]:5160>;tag=473433483
To: <sip:[hidden email]:5160>
CSeq: 21200 SUBSCRIBE
Contact: <sip:101@192.168.1.65:19464;transport=tcp>
X-Grandstream-PBX: true
Max-Forwards: 70
User-Agent: Grandstream GXP1760W 1.0.1.74
Expires: 432000
Supported: replaces, path, timer
Event: message-summary
Accept: application/simple-message-summary
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0



2018/10/29 08:50:30.062338 190.248.157.3:5084 -> 190.240.46.242:36868
SIP/2.0 500 Server error occurred (1/SL)
Via: SIP/2.0/TCP 192.168.1.65:19464;received=190.240.46.242;branch=z9hG4bK1855278236;rport=36868;alias
From: <sip:[hidden email]:5160>;tag=473433483
To: <sip:[hidden email]:5160>;tag=a3f6a7240e26af61ce52d7ac2261cc82.ee28
CSeq: 21200 SUBSCRIBE
Server: OpenSIPS (3.0.0-dev (x86_64/linux))
Content-Length: 0


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

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: SUBSCRIBE

Bogdan-Andrei Iancu-2
Hi Slava,

Maybe the same destination may be reached (from the IP routing table perspective) via multiple interfaces like via interface A and interface B - and OS (via mhomed) selected interface A , but OpenSIPS listen only on B.

Such a setup may lead to the error you listed - OS picking up for routing a local interface that is not used by OpenSIPS.

Regards,
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
OpenSIPS Bootcamp 2018
  http://opensips.org/training/OpenSIPS_Bootcamp_2018/
On 10/29/2018 04:10 PM, Slava Bendersky wrote:
That error message in log 

Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]: ERROR:core:get_out_socket: no socket found
Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]: ERROR:tm:t_uac: no corresponding socket for af 2
Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]: ERROR:pua:send_publish_int: failed to send PUBLISH
Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]: ERROR:pua_dialoginfo:dialog_publish: sending publish failed for pres_uri [<a class="moz-txt-link-freetext" href="sip:106@domain.com:5160">sip:106@...:5160] to server []
Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]: ERROR:core:get_out_socket: no socket found
Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]: ERROR:tm:t_uac: no corresponding socket for af 2

LAN side is UDP and WAN side TCP. Multi home environment. 
volga629

From: "Slava Bendersky" [hidden email]
To: "OpenSIPS users mailling list" [hidden email]
Sent: Monday, October 29, 2018 11:01:42 AM
Subject: [OpenSIPS-Users] SUBSCRIBE

Hello Everyone,
What possible cause that opensips generate 500 error on SUBSCRIBE 

#### Presence
loadmodule "presence.so"
loadmodule "presence_mwi.so"
loadmodule "presence_xml.so"
loadmodule "presence_dialoginfo.so"
loadmodule "presence_callinfo.so"
loadmodule "pua.so"
loadmodule "pua_dialoginfo.so"
loadmodule "xcap.so"
modparam("presence|xcap|pua","db_url",")
#modparam("presence","server_address",<a class="moz-txt-link-rfc2396E" href="sip:proxy@">"sip:proxy@")  multi home 
modparam("presence", "clean_period",  30)
modparam("presence", "mix_dialog_presence", 1)
modparam("presence_xml", "force_active", 1)
#modparam("pua_dialoginfo", "presence_server", "<a class="moz-txt-link-freetext" href="sip:sbc@">sip:sbc@) multi home


2018/10/29 08:50:30.061342 190.240.46.242:36868 -> 190.248.157.3:5084
SUBSCRIBE <a class="moz-txt-link-freetext" href="sip:101@domain.tld:5160">sip:101@...:5160 SIP/2.0
Via: SIP/2.0/TCP 192.168.1.65:19464;branch=z9hG4bK1855278236;rport;alias
From: <a class="moz-txt-link-rfc2396E" href="sip:101@domain.tld:5160"><sip:101@...:5160>;tag=473433483
To: <a class="moz-txt-link-rfc2396E" href="sip:101@domain.tld:5160"><sip:101@...:5160>
CSeq: 21200 SUBSCRIBE
Contact: <a class="moz-txt-link-rfc2396E" href="sip:101@192.168.1.65:19464;transport=tcp"><sip:101@192.168.1.65:19464;transport=tcp>
X-Grandstream-PBX: true
Max-Forwards: 70
User-Agent: Grandstream GXP1760W 1.0.1.74
Expires: 432000
Supported: replaces, path, timer
Event: message-summary
Accept: application/simple-message-summary
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0



2018/10/29 08:50:30.062338 190.248.157.3:5084 -> 190.240.46.242:36868
SIP/2.0 500 Server error occurred (1/SL)
Via: SIP/2.0/TCP 192.168.1.65:19464;received=190.240.46.242;branch=z9hG4bK1855278236;rport=36868;alias
From: <a class="moz-txt-link-rfc2396E" href="sip:101@domain.tld:5160"><sip:101@...:5160>;tag=473433483
To: <a class="moz-txt-link-rfc2396E" href="sip:101@domain.tld:5160"><sip:101@...:5160>;tag=a3f6a7240e26af61ce52d7ac2261cc82.ee28
CSeq: 21200 SUBSCRIBE
Server: OpenSIPS (3.0.0-dev (x86_64/linux))
Content-Length: 0


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


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


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: SUBSCRIBE

Slava Bendersky-2
In that setup freeswitch boxes directly connected to opensips LAN side and opensips listen for for two interfaces internal and external. UDP and TCP.

volga629


From: "Bogdan-Andrei Iancu" <[hidden email]>
To: "OpenSIPS users mailling list" <[hidden email]>, "Slava Bendersky" <[hidden email]>
Sent: Monday, October 29, 2018 2:13:06 PM
Subject: Re: [OpenSIPS-Users] SUBSCRIBE

Hi Slava,

Maybe the same destination may be reached (from the IP routing table perspective) via multiple interfaces like via interface A and interface B - and OS (via mhomed) selected interface A , but OpenSIPS listen only on B.

Such a setup may lead to the error you listed - OS picking up for routing a local interface that is not used by OpenSIPS.

Regards,
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
OpenSIPS Bootcamp 2018
  http://opensips.org/training/OpenSIPS_Bootcamp_2018/
On 10/29/2018 04:10 PM, Slava Bendersky wrote:
That error message in log 

Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]: ERROR:core:get_out_socket: no socket found
Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]: ERROR:tm:t_uac: no corresponding socket for af 2
Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]: ERROR:pua:send_publish_int: failed to send PUBLISH
Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]: ERROR:pua_dialoginfo:dialog_publish: sending publish failed for pres_uri [<a class="moz-txt-link-freetext" href="sip:106@domain.com:5160" target="_blank">sip:106@...:5160] to server []
Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]: ERROR:core:get_out_socket: no socket found
Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]: ERROR:tm:t_uac: no corresponding socket for af 2

LAN side is UDP and WAN side TCP. Multi home environment. 
volga629

From: "Slava Bendersky" [hidden email]
To: "OpenSIPS users mailling list" [hidden email]
Sent: Monday, October 29, 2018 11:01:42 AM
Subject: [OpenSIPS-Users] SUBSCRIBE

Hello Everyone,
What possible cause that opensips generate 500 error on SUBSCRIBE 

#### Presence
loadmodule "presence.so"
loadmodule "presence_mwi.so"
loadmodule "presence_xml.so"
loadmodule "presence_dialoginfo.so"
loadmodule "presence_callinfo.so"
loadmodule "pua.so"
loadmodule "pua_dialoginfo.so"
loadmodule "xcap.so"
modparam("presence|xcap|pua","db_url",")
#modparam("presence","server_address",<a class="moz-txt-link-rfc2396E" href="sip:proxy@" target="_blank">"sip:proxy@")  multi home 
modparam("presence", "clean_period",  30)
modparam("presence", "mix_dialog_presence", 1)
modparam("presence_xml", "force_active", 1)
#modparam("pua_dialoginfo", "presence_server", "<a class="moz-txt-link-freetext" href="sip:sbc@" target="_blank">sip:sbc@) multi home


2018/10/29 08:50:30.061342 190.240.46.242:36868 -> 190.248.157.3:5084
SUBSCRIBE <a class="moz-txt-link-freetext" href="sip:101@domain.tld:5160" target="_blank">sip:101@...:5160 SIP/2.0
Via: SIP/2.0/TCP 192.168.1.65:19464;branch=z9hG4bK1855278236;rport;alias
From: <a class="moz-txt-link-rfc2396E" href="sip:101@domain.tld:5160" target="_blank"><sip:101@...:5160>;tag=473433483
To: <a class="moz-txt-link-rfc2396E" href="sip:101@domain.tld:5160" target="_blank"><sip:101@...:5160>
CSeq: 21200 SUBSCRIBE
Contact: <a class="moz-txt-link-rfc2396E" href="sip:101@192.168.1.65:19464;transport=tcp" target="_blank"><sip:101@192.168.1.65:19464;transport=tcp>
X-Grandstream-PBX: true
Max-Forwards: 70
User-Agent: Grandstream GXP1760W 1.0.1.74
Expires: 432000
Supported: replaces, path, timer
Event: message-summary
Accept: application/simple-message-summary
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0



2018/10/29 08:50:30.062338 190.248.157.3:5084 -> 190.240.46.242:36868
SIP/2.0 500 Server error occurred (1/SL)
Via: SIP/2.0/TCP 192.168.1.65:19464;received=190.240.46.242;branch=z9hG4bK1855278236;rport=36868;alias
From: <a class="moz-txt-link-rfc2396E" href="sip:101@domain.tld:5160" target="_blank"><sip:101@...:5160>;tag=473433483
To: <a class="moz-txt-link-rfc2396E" href="sip:101@domain.tld:5160" target="_blank"><sip:101@...:5160>;tag=a3f6a7240e26af61ce52d7ac2261cc82.ee28
CSeq: 21200 SUBSCRIBE
Server: OpenSIPS (3.0.0-dev (x86_64/linux))
Content-Length: 0


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


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



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: SUBSCRIBE

Bogdan-Andrei Iancu-2
Hi Slava,

I see you use 3.0, so I pushed a small commit to print more information - this will help to understand your failure.

Update and be sure you have this commit
    https://github.com/OpenSIPS/opensips/commit/e4868acfb1bd92fd9ec32489c18b0aaebbf8fc5b

and give it a try.

Regards,
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
OpenSIPS Bootcamp 2018
  http://opensips.org/training/OpenSIPS_Bootcamp_2018/
On 10/29/2018 07:16 PM, Slava Bendersky wrote:
In that setup freeswitch boxes directly connected to opensips LAN side and opensips listen for for two interfaces internal and external. UDP and TCP.

volga629


From: "Bogdan-Andrei Iancu" [hidden email]
To: "OpenSIPS users mailling list" [hidden email], "Slava Bendersky" [hidden email]
Sent: Monday, October 29, 2018 2:13:06 PM
Subject: Re: [OpenSIPS-Users] SUBSCRIBE

Hi Slava,

Maybe the same destination may be reached (from the IP routing table perspective) via multiple interfaces like via interface A and interface B - and OS (via mhomed) selected interface A , but OpenSIPS listen only on B.

Such a setup may lead to the error you listed - OS picking up for routing a local interface that is not used by OpenSIPS.

Regards,
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
OpenSIPS Bootcamp 2018
  http://opensips.org/training/OpenSIPS_Bootcamp_2018/
On 10/29/2018 04:10 PM, Slava Bendersky wrote:
That error message in log 

Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]: ERROR:core:get_out_socket: no socket found
Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]: ERROR:tm:t_uac: no corresponding socket for af 2
Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]: ERROR:pua:send_publish_int: failed to send PUBLISH
Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]: ERROR:pua_dialoginfo:dialog_publish: sending publish failed for pres_uri [<a class="moz-txt-link-freetext" href="sip:106@domain.com:5160" target="_blank" moz-do-not-send="true">sip:106@...:5160] to server []
Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]: ERROR:core:get_out_socket: no socket found
Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]: ERROR:tm:t_uac: no corresponding socket for af 2

LAN side is UDP and WAN side TCP. Multi home environment. 
volga629

From: "Slava Bendersky" [hidden email]
To: "OpenSIPS users mailling list" [hidden email]
Sent: Monday, October 29, 2018 11:01:42 AM
Subject: [OpenSIPS-Users] SUBSCRIBE

Hello Everyone,
What possible cause that opensips generate 500 error on SUBSCRIBE 

#### Presence
loadmodule "presence.so"
loadmodule "presence_mwi.so"
loadmodule "presence_xml.so"
loadmodule "presence_dialoginfo.so"
loadmodule "presence_callinfo.so"
loadmodule "pua.so"
loadmodule "pua_dialoginfo.so"
loadmodule "xcap.so"
modparam("presence|xcap|pua","db_url",")
#modparam("presence","server_address",<a class="moz-txt-link-rfc2396E" href="sip:proxy@" target="_blank" moz-do-not-send="true">"sip:proxy@")  multi home 
modparam("presence", "clean_period",  30)
modparam("presence", "mix_dialog_presence", 1)
modparam("presence_xml", "force_active", 1)
#modparam("pua_dialoginfo", "presence_server", "<a class="moz-txt-link-freetext" href="sip:sbc@" target="_blank" moz-do-not-send="true">sip:sbc@) multi home


2018/10/29 08:50:30.061342 190.240.46.242:36868 -> 190.248.157.3:5084
SUBSCRIBE <a class="moz-txt-link-freetext" href="sip:101@domain.tld:5160" target="_blank" moz-do-not-send="true">sip:101@...:5160 SIP/2.0
Via: SIP/2.0/TCP 192.168.1.65:19464;branch=z9hG4bK1855278236;rport;alias
From: <a class="moz-txt-link-rfc2396E" href="sip:101@domain.tld:5160" target="_blank" moz-do-not-send="true"><sip:101@...:5160>;tag=473433483
To: <a class="moz-txt-link-rfc2396E" href="sip:101@domain.tld:5160" target="_blank" moz-do-not-send="true"><sip:101@...:5160>
CSeq: 21200 SUBSCRIBE
Contact: <a class="moz-txt-link-rfc2396E" href="sip:101@192.168.1.65:19464;transport=tcp" target="_blank" moz-do-not-send="true"><sip:101@192.168.1.65:19464;transport=tcp>
X-Grandstream-PBX: true
Max-Forwards: 70
User-Agent: Grandstream GXP1760W 1.0.1.74
Expires: 432000
Supported: replaces, path, timer
Event: message-summary
Accept: application/simple-message-summary
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0



2018/10/29 08:50:30.062338 190.248.157.3:5084 -> 190.240.46.242:36868
SIP/2.0 500 Server error occurred (1/SL)
Via: SIP/2.0/TCP 192.168.1.65:19464;received=190.240.46.242;branch=z9hG4bK1855278236;rport=36868;alias
From: <a class="moz-txt-link-rfc2396E" href="sip:101@domain.tld:5160" target="_blank" moz-do-not-send="true"><sip:101@...:5160>;tag=473433483
To: <a class="moz-txt-link-rfc2396E" href="sip:101@domain.tld:5160" target="_blank" moz-do-not-send="true"><sip:101@...:5160>;tag=a3f6a7240e26af61ce52d7ac2261cc82.ee28
CSeq: 21200 SUBSCRIBE
Server: OpenSIPS (3.0.0-dev (x86_64/linux))
Content-Length: 0


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


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




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