Presence issue. How packet should look?
Hi! I’m trying to subscribe to Freeswitch with this packet SUBSCRIBE sip:*55@master.rufan.at SIP/2.0 Record-Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> Via: SIP/2.0/UDP 212.232.26.232:5060 ;branch=z9hG4bKbb4c.eafe0e8f9ec4b28fb6e4056a64c702ed.0 Via: SIP/2.0/UDP 192.168.88.59:37600 ;received=176.37.91.15;branch=z9hG4bK-rzfuku5tc99o;rport=37600 Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> From: <sip:607@master.rufan.at>;tag=jz8i26dy0f To: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 CSeq: 610 SUBSCRIBE Max-Forwards: 69 User-Agent: snom760/8.7.5.35 Contact: <sip:607@176.37.91.15:37600;line=ukipitb6>;reg-id=1 Event: dialog Accept: application/dialog-info+xml Expires: 80 Content-Length: 0 Path: <sip:212.232.26.232:5060;lr;received=sip:176.37.91.15:37600> X-AUTH-IP: 176.37.91.15 Actually I get Accepted (202) But with NOTIFY from freeswitch I got this NOTIFY sip:607@176.37.91.15:37600;line=ukipitb6 SIP/2.0 Via: SIP/2.0/UDP 10.0.20.71;rport;branch=z9hG4bKS5ZKag4N6XXFK Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on Record-Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on Max-Forwards: 70 From: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF To: <sip:607@master.rufan.at>;tag=jz8i26dy0f Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 CSeq: 297327351 NOTIFY Contact: <sip:*55@10.0.20.71:5060> User-Agent: FreeSWITCH Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE Supported: path, replaces Event: dialog Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer Subscription-State: active;expires=80 Content-Type: application/dialog-info+xml Content-Length: 152 <?xml version="1.0"?> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="8" state="full" entity="sip:*55@master.rufan.at"> </dialog-info> Problem is, XML data is empty, cause actually there is no registrations for *55 extension. Why it’s not sending «Unavail» or smth. like this? What is the correct packet for SUBSCRIBE? Or internal profile? Internal profile is nonce-ttl [60] auth-calls [true] inbound-reg-force-matching-username [true] auth-all-packets [false] ext-rtp-ip [10.0.20.71] ext-sip-ip [10.0.20.71] rtp-timeout-sec [300] rtp-hold-timeout-sec [1800] tls-verify-policy [all] multiple-registrations [contact] enable-timer [false] dbname [share_presence] send-presence-on-register [true] inbound-codec-negotiation [greedy] NDLB-force-rport [safe] challenge-realm [auto_to] outbound-proxy [10.0.20.70] track-calls [true] nat-options-ping [true] liberal-dtmf [true] all-reg-options-ping [true] force-publish-expires [true] unregister-on-options-fail [true] user-agent-string [FreeSWITCH] log-auth-failures [true] forward-unsolicited-mwi-notify [false] context [public] rfc2833-pt [101] sip-port [5060] dialplan [XML] dtmf-duration [2000] inbound-codec-prefs [G7221@32000h,G7221@16000h,G722,PCMU,PCMA,OPUS,SILK] outbound-codec-prefs [G7221@32000h,G7221@16000h,G722,PCMU,PCMA,OPUS,SILK] rtp-timer-name [soft] rtp-ip [10.0.20.71] sip-ip [10.0.20.71] hold-music [local_stream://default] apply-nat-acl [nat.auto] aggressive-nat-detection [true] apply-inbound-acl [domains] local-network-acl [localnet.auto] record-path [/usr/local/freeswitch/recordings] record-template [${domain_name}/archive/${strftime(%Y)}/${strftime(%b)}/${strftime(%d)}/${uuid}.${record_ext}] manage-presence [true] presence-probe-on-register [true] manage-shared-appearance [true] tls [false] -- Best regards, Igor
I wish had $1,000.00 for every time I answer this one... :) Ok here is what is the problem, you have the device setup to register to the domain, but its subscribing to the IP ergo domain != ip when it search for any subscriptions. See force-subscription-domain, force-register-domain and force-register-db-domain Those all have to align perfectly for things to behave properly. Thanks, On Wed, Mar 9, 2016 at 12:57 PM, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
Hi! I’m trying to subscribe to Freeswitch with this packet
SUBSCRIBE sip:*55@master.rufan.at SIP/2.0 Record-Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> Via: SIP/2.0/UDP 212.232.26.232:5060 ;branch=z9hG4bKbb4c.eafe0e8f9ec4b28fb6e4056a64c702ed.0 Via: SIP/2.0/UDP 192.168.88.59:37600 ;received=176.37.91.15;branch=z9hG4bK-rzfuku5tc99o;rport=37600 Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> From: <sip:607@master.rufan.at>;tag=jz8i26dy0f To: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 CSeq: 610 SUBSCRIBE Max-Forwards: 69 User-Agent: snom760/8.7.5.35 Contact: <sip:607@176.37.91.15:37600;line=ukipitb6>;reg-id=1 Event: dialog Accept: application/dialog-info+xml Expires: 80 Content-Length: 0 Path: <sip:212.232.26.232:5060;lr;received=sip:176.37.91.15:37600> X-AUTH-IP: 176.37.91.15
Actually I get Accepted (202)
But with NOTIFY from freeswitch I got this
NOTIFY sip:607@176.37.91.15:37600;line=ukipitb6 SIP/2.0 Via: SIP/2.0/UDP 10.0.20.71;rport;branch=z9hG4bKS5ZKag4N6XXFK Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on Record-Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on Max-Forwards: 70 From: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF To: <sip:607@master.rufan.at>;tag=jz8i26dy0f Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 CSeq: 297327351 NOTIFY Contact: <sip:*55@10.0.20.71:5060> User-Agent: FreeSWITCH Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE Supported: path, replaces Event: dialog Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer Subscription-State: active;expires=80 Content-Type: application/dialog-info+xml Content-Length: 152
<?xml version="1.0"?> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="8" state="full" entity="sip:*55@master.rufan.at"> </dialog-info>
Problem is, XML data is empty, cause actually there is no registrations for *55 extension. Why it’s not sending «Unavail» or smth. like this? What is the correct packet for SUBSCRIBE? Or internal profile?
Internal profile is nonce-ttl [60] auth-calls [true] inbound-reg-force-matching-username [true] auth-all-packets [false] ext-rtp-ip [10.0.20.71] ext-sip-ip [10.0.20.71] rtp-timeout-sec [300] rtp-hold-timeout-sec [1800] tls-verify-policy [all] multiple-registrations [contact] enable-timer [false] dbname [share_presence] send-presence-on-register [true] inbound-codec-negotiation [greedy] NDLB-force-rport [safe] challenge-realm [auto_to] outbound-proxy [10.0.20.70] track-calls [true] nat-options-ping [true] liberal-dtmf [true] all-reg-options-ping [true] force-publish-expires [true] unregister-on-options-fail [true] user-agent-string [FreeSWITCH] log-auth-failures [true] forward-unsolicited-mwi-notify [false] context [public] rfc2833-pt [101] sip-port [5060] dialplan [XML] dtmf-duration [2000] inbound-codec-prefs [G7221@32000h,G7221@16000h,G722,PCMU,PCMA,OPUS,SILK] outbound-codec-prefs [G7221@32000h,G7221@16000h,G722,PCMU,PCMA,OPUS,SILK] rtp-timer-name [soft] rtp-ip [10.0.20.71] sip-ip [10.0.20.71] hold-music [local_stream://default] apply-nat-acl [nat.auto] aggressive-nat-detection [true] apply-inbound-acl [domains] local-network-acl [localnet.auto] record-path [/usr/local/freeswitch/recordings] record-template [${domain_name}/archive/${strftime(%Y)}/${strftime(%b)}/${strftime(%d)}/${uuid}.${record_ext}] manage-presence [true] presence-probe-on-register [true] manage-shared-appearance [true] tls [false]
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
As I tried, these options are really not est with multi-tenant. And really, where is device is Subscribed to IP? I don’t see any IP’s in R-URI or To/From. Record-Route is just for keep packets back and Contact is actual device IP and port. 2016-03-09 21:21 GMT+02:00 Brian West <brian@freeswitch.org>:
I wish had $1,000.00 for every time I answer this one... :)
Ok here is what is the problem, you have the device setup to register to the domain, but its subscribing to the IP ergo domain != ip when it search for any subscriptions.
See force-subscription-domain, force-register-domain and force-register-db-domain
Those all have to align perfectly for things to behave properly.
Thanks,
On Wed, Mar 9, 2016 at 12:57 PM, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
Hi! I’m trying to subscribe to Freeswitch with this packet
SUBSCRIBE sip:*55@master.rufan.at SIP/2.0 Record-Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> Via: SIP/2.0/UDP 212.232.26.232:5060 ;branch=z9hG4bKbb4c.eafe0e8f9ec4b28fb6e4056a64c702ed.0 Via: SIP/2.0/UDP 192.168.88.59:37600 ;received=176.37.91.15;branch=z9hG4bK-rzfuku5tc99o;rport=37600 Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> From: <sip:607@master.rufan.at>;tag=jz8i26dy0f To: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 CSeq: 610 SUBSCRIBE Max-Forwards: 69 User-Agent: snom760/8.7.5.35 Contact: <sip:607@176.37.91.15:37600;line=ukipitb6>;reg-id=1 Event: dialog Accept: application/dialog-info+xml Expires: 80 Content-Length: 0 Path: <sip:212.232.26.232:5060;lr;received=sip:176.37.91.15:37600> X-AUTH-IP: 176.37.91.15
Actually I get Accepted (202)
But with NOTIFY from freeswitch I got this
NOTIFY sip:607@176.37.91.15:37600;line=ukipitb6 SIP/2.0 Via: SIP/2.0/UDP 10.0.20.71;rport;branch=z9hG4bKS5ZKag4N6XXFK Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on Record-Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on Max-Forwards: 70 From: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF To: <sip:607@master.rufan.at>;tag=jz8i26dy0f Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 CSeq: 297327351 NOTIFY Contact: <sip:*55@10.0.20.71:5060> User-Agent: FreeSWITCH Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE Supported: path, replaces Event: dialog Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer Subscription-State: active;expires=80 Content-Type: application/dialog-info+xml Content-Length: 152
<?xml version="1.0"?> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="8" state="full" entity="sip:*55@master.rufan.at"> </dialog-info>
Problem is, XML data is empty, cause actually there is no registrations for *55 extension. Why it’s not sending «Unavail» or smth. like this? What is the correct packet for SUBSCRIBE? Or internal profile?
Internal profile is nonce-ttl [60] auth-calls [true] inbound-reg-force-matching-username [true] auth-all-packets [false] ext-rtp-ip [10.0.20.71] ext-sip-ip [10.0.20.71] rtp-timeout-sec [300] rtp-hold-timeout-sec [1800] tls-verify-policy [all] multiple-registrations [contact] enable-timer [false] dbname [share_presence] send-presence-on-register [true] inbound-codec-negotiation [greedy] NDLB-force-rport [safe] challenge-realm [auto_to] outbound-proxy [10.0.20.70] track-calls [true] nat-options-ping [true] liberal-dtmf [true] all-reg-options-ping [true] force-publish-expires [true] unregister-on-options-fail [true] user-agent-string [FreeSWITCH] log-auth-failures [true] forward-unsolicited-mwi-notify [false] context [public] rfc2833-pt [101] sip-port [5060] dialplan [XML] dtmf-duration [2000] inbound-codec-prefs [G7221@32000h,G7221@16000h,G722,PCMU,PCMA,OPUS,SILK] outbound-codec-prefs [G7221@32000h,G7221@16000h,G722,PCMU,PCMA,OPUS,SILK] rtp-timer-name [soft] rtp-ip [10.0.20.71] sip-ip [10.0.20.71] hold-music [local_stream://default] apply-nat-acl [nat.auto] aggressive-nat-detection [true] apply-inbound-acl [domains] local-network-acl [localnet.auto] record-path [/usr/local/freeswitch/recordings] record-template [${domain_name}/archive/${strftime(%Y)}/${strftime(%b)}/${strftime(%d)}/${uuid}.${record_ext}] manage-presence [true] presence-probe-on-register [true] manage-shared-appearance [true] tls [false]
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
The only time I've ever seen this issue is when its a domain/ip mismatch, and many devices like yealink and the like will subscribe to the IP even when you put in the domain name in some firmwares. So you'll need to test, check and verify its doing what you think it is. Also out of the box we force the domain to the IP, unless you change it. Doing anything multi-tenant requires your endpoints to behave properly too. /b On Wed, Mar 9, 2016 at 1:34 PM, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
As I tried, these options are really not est with multi-tenant. And really, where is device is Subscribed to IP? I don’t see any IP’s in R-URI or To/From. Record-Route is just for keep packets back and Contact is actual device IP and port.
2016-03-09 21:21 GMT+02:00 Brian West <brian@freeswitch.org>:
I wish had $1,000.00 for every time I answer this one... :)
Ok here is what is the problem, you have the device setup to register to the domain, but its subscribing to the IP ergo domain != ip when it search for any subscriptions.
See force-subscription-domain, force-register-domain and force-register-db-domain
Those all have to align perfectly for things to behave properly.
Thanks,
On Wed, Mar 9, 2016 at 12:57 PM, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
Hi! I’m trying to subscribe to Freeswitch with this packet
SUBSCRIBE sip:*55@master.rufan.at SIP/2.0 Record-Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> Via: SIP/2.0/UDP 212.232.26.232:5060 ;branch=z9hG4bKbb4c.eafe0e8f9ec4b28fb6e4056a64c702ed.0 Via: SIP/2.0/UDP 192.168.88.59:37600 ;received=176.37.91.15;branch=z9hG4bK-rzfuku5tc99o;rport=37600 Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> From: <sip:607@master.rufan.at>;tag=jz8i26dy0f To: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 CSeq: 610 SUBSCRIBE Max-Forwards: 69 User-Agent: snom760/8.7.5.35 Contact: <sip:607@176.37.91.15:37600;line=ukipitb6>;reg-id=1 Event: dialog Accept: application/dialog-info+xml Expires: 80 Content-Length: 0 Path: <sip:212.232.26.232:5060;lr;received=sip:176.37.91.15:37600> X-AUTH-IP: 176.37.91.15
Actually I get Accepted (202)
But with NOTIFY from freeswitch I got this
NOTIFY sip:607@176.37.91.15:37600;line=ukipitb6 SIP/2.0 Via: SIP/2.0/UDP 10.0.20.71;rport;branch=z9hG4bKS5ZKag4N6XXFK Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on Record-Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on Max-Forwards: 70 From: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF To: <sip:607@master.rufan.at>;tag=jz8i26dy0f Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 CSeq: 297327351 NOTIFY Contact: <sip:*55@10.0.20.71:5060> User-Agent: FreeSWITCH Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE Supported: path, replaces Event: dialog Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer Subscription-State: active;expires=80 Content-Type: application/dialog-info+xml Content-Length: 152
<?xml version="1.0"?> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="8" state="full" entity="sip:*55@master.rufan.at"> </dialog-info>
Problem is, XML data is empty, cause actually there is no registrations for *55 extension. Why it’s not sending «Unavail» or smth. like this? What is the correct packet for SUBSCRIBE? Or internal profile?
Internal profile is nonce-ttl [60] auth-calls [true] inbound-reg-force-matching-username [true] auth-all-packets [false] ext-rtp-ip [10.0.20.71] ext-sip-ip [10.0.20.71] rtp-timeout-sec [300] rtp-hold-timeout-sec [1800] tls-verify-policy [all] multiple-registrations [contact] enable-timer [false] dbname [share_presence] send-presence-on-register [true] inbound-codec-negotiation [greedy] NDLB-force-rport [safe] challenge-realm [auto_to] outbound-proxy [10.0.20.70] track-calls [true] nat-options-ping [true] liberal-dtmf [true] all-reg-options-ping [true] force-publish-expires [true] unregister-on-options-fail [true] user-agent-string [FreeSWITCH] log-auth-failures [true] forward-unsolicited-mwi-notify [false] context [public] rfc2833-pt [101] sip-port [5060] dialplan [XML] dtmf-duration [2000] inbound-codec-prefs [G7221@32000h,G7221@16000h,G722,PCMU,PCMA,OPUS,SILK] outbound-codec-prefs [G7221@32000h,G7221@16000h ,G722,PCMU,PCMA,OPUS,SILK] rtp-timer-name [soft] rtp-ip [10.0.20.71] sip-ip [10.0.20.71] hold-music [local_stream://default] apply-nat-acl [nat.auto] aggressive-nat-detection [true] apply-inbound-acl [domains] local-network-acl [localnet.auto] record-path [/usr/local/freeswitch/recordings] record-template [${domain_name}/archive/${strftime(%Y)}/${strftime(%b)}/${strftime(%d)}/${uuid}.${record_ext}] manage-presence [true] presence-probe-on-register [true] manage-shared-appearance [true] tls [false]
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
Thanks, I’m putting a domain in every SUBSCRIBE request I’m passing through. So, I’m 100% sure, there is domains everywhere, no IP’s in R-URI, To or From. Btw, this situation is only when device is not registered, If device is registered and ringing/talking, I’ve got correct XML info’s. Situation is only when I’m trying to subscribe on non-existing device. Or device is unregistered and also, in NOTIFY XML data is like this. 2016-03-09 21:38 GMT+02:00 Brian West <brian@freeswitch.org>:
The only time I've ever seen this issue is when its a domain/ip mismatch, and many devices like yealink and the like will subscribe to the IP even when you put in the domain name in some firmwares. So you'll need to test, check and verify its doing what you think it is.
Also out of the box we force the domain to the IP, unless you change it. Doing anything multi-tenant requires your endpoints to behave properly too.
/b
On Wed, Mar 9, 2016 at 1:34 PM, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
As I tried, these options are really not est with multi-tenant. And really, where is device is Subscribed to IP? I don’t see any IP’s in R-URI or To/From. Record-Route is just for keep packets back and Contact is actual device IP and port.
2016-03-09 21:21 GMT+02:00 Brian West <brian@freeswitch.org>:
I wish had $1,000.00 for every time I answer this one... :)
Ok here is what is the problem, you have the device setup to register to the domain, but its subscribing to the IP ergo domain != ip when it search for any subscriptions.
See force-subscription-domain, force-register-domain and force-register-db-domain
Those all have to align perfectly for things to behave properly.
Thanks,
On Wed, Mar 9, 2016 at 12:57 PM, Igor Olhovskiy <igorolhovskiy@gmail.com
wrote:
Hi! I’m trying to subscribe to Freeswitch with this packet
SUBSCRIBE sip:*55@master.rufan.at SIP/2.0 Record-Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> Via: SIP/2.0/UDP 212.232.26.232:5060 ;branch=z9hG4bKbb4c.eafe0e8f9ec4b28fb6e4056a64c702ed.0 Via: SIP/2.0/UDP 192.168.88.59:37600 ;received=176.37.91.15;branch=z9hG4bK-rzfuku5tc99o;rport=37600 Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> From: <sip:607@master.rufan.at>;tag=jz8i26dy0f To: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 CSeq: 610 SUBSCRIBE Max-Forwards: 69 User-Agent: snom760/8.7.5.35 Contact: <sip:607@176.37.91.15:37600;line=ukipitb6>;reg-id=1 Event: dialog Accept: application/dialog-info+xml Expires: 80 Content-Length: 0 Path: <sip:212.232.26.232:5060;lr;received=sip:176.37.91.15:37600> X-AUTH-IP: 176.37.91.15
Actually I get Accepted (202)
But with NOTIFY from freeswitch I got this
NOTIFY sip:607@176.37.91.15:37600;line=ukipitb6 SIP/2.0 Via: SIP/2.0/UDP 10.0.20.71;rport;branch=z9hG4bKS5ZKag4N6XXFK Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on Record-Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on Max-Forwards: 70 From: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF To: <sip:607@master.rufan.at>;tag=jz8i26dy0f Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 CSeq: 297327351 NOTIFY Contact: <sip:*55@10.0.20.71:5060> User-Agent: FreeSWITCH Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE Supported: path, replaces Event: dialog Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer Subscription-State: active;expires=80 Content-Type: application/dialog-info+xml Content-Length: 152
<?xml version="1.0"?> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="8" state="full" entity="sip:*55@master.rufan.at"> </dialog-info>
Problem is, XML data is empty, cause actually there is no registrations for *55 extension. Why it’s not sending «Unavail» or smth. like this? What is the correct packet for SUBSCRIBE? Or internal profile?
Internal profile is nonce-ttl [60] auth-calls [true] inbound-reg-force-matching-username [true] auth-all-packets [false] ext-rtp-ip [10.0.20.71] ext-sip-ip [10.0.20.71] rtp-timeout-sec [300] rtp-hold-timeout-sec [1800] tls-verify-policy [all] multiple-registrations [contact] enable-timer [false] dbname [share_presence] send-presence-on-register [true] inbound-codec-negotiation [greedy] NDLB-force-rport [safe] challenge-realm [auto_to] outbound-proxy [10.0.20.70] track-calls [true] nat-options-ping [true] liberal-dtmf [true] all-reg-options-ping [true] force-publish-expires [true] unregister-on-options-fail [true] user-agent-string [FreeSWITCH] log-auth-failures [true] forward-unsolicited-mwi-notify [false] context [public] rfc2833-pt [101] sip-port [5060] dialplan [XML] dtmf-duration [2000] inbound-codec-prefs [G7221@32000h,G7221@16000h ,G722,PCMU,PCMA,OPUS,SILK] outbound-codec-prefs [G7221@32000h,G7221@16000h ,G722,PCMU,PCMA,OPUS,SILK] rtp-timer-name [soft] rtp-ip [10.0.20.71] sip-ip [10.0.20.71] hold-music [local_stream://default] apply-nat-acl [nat.auto] aggressive-nat-detection [true] apply-inbound-acl [domains] local-network-acl [localnet.auto] record-path [/usr/local/freeswitch/recordings] record-template [${domain_name}/archive/${strftime(%Y)}/${strftime(%b)}/${strftime(%d)}/${uuid}.${record_ext}] manage-presence [true] presence-probe-on-register [true] manage-shared-appearance [true] tls [false]
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
Make sure you're not forcing them to the IP because we do so in our vanilla configs to make it easier on everyone. :) Also I can't tell what rev of FreeSWITCH you're on. On Wed, Mar 9, 2016 at 1:43 PM, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
Thanks,
I’m putting a domain in every SUBSCRIBE request I’m passing through. So, I’m 100% sure, there is domains everywhere, no IP’s in R-URI, To or From. Btw, this situation is only when device is not registered, If device is registered and ringing/talking, I’ve got correct XML info’s. Situation is only when I’m trying to subscribe on non-existing device. Or device is unregistered and also, in NOTIFY XML data is like this.
2016-03-09 21:38 GMT+02:00 Brian West <brian@freeswitch.org>:
The only time I've ever seen this issue is when its a domain/ip mismatch, and many devices like yealink and the like will subscribe to the IP even when you put in the domain name in some firmwares. So you'll need to test, check and verify its doing what you think it is.
Also out of the box we force the domain to the IP, unless you change it. Doing anything multi-tenant requires your endpoints to behave properly too.
/b
On Wed, Mar 9, 2016 at 1:34 PM, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
As I tried, these options are really not est with multi-tenant. And really, where is device is Subscribed to IP? I don’t see any IP’s in R-URI or To/From. Record-Route is just for keep packets back and Contact is actual device IP and port.
2016-03-09 21:21 GMT+02:00 Brian West <brian@freeswitch.org>:
I wish had $1,000.00 for every time I answer this one... :)
Ok here is what is the problem, you have the device setup to register to the domain, but its subscribing to the IP ergo domain != ip when it search for any subscriptions.
See force-subscription-domain, force-register-domain and force-register-db-domain
Those all have to align perfectly for things to behave properly.
Thanks,
On Wed, Mar 9, 2016 at 12:57 PM, Igor Olhovskiy < igorolhovskiy@gmail.com> wrote:
Hi! I’m trying to subscribe to Freeswitch with this packet
SUBSCRIBE sip:*55@master.rufan.at SIP/2.0 Record-Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> Via: SIP/2.0/UDP 212.232.26.232:5060 ;branch=z9hG4bKbb4c.eafe0e8f9ec4b28fb6e4056a64c702ed.0 Via: SIP/2.0/UDP 192.168.88.59:37600 ;received=176.37.91.15;branch=z9hG4bK-rzfuku5tc99o;rport=37600 Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> From: <sip:607@master.rufan.at>;tag=jz8i26dy0f To: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 CSeq: 610 SUBSCRIBE Max-Forwards: 69 User-Agent: snom760/8.7.5.35 Contact: <sip:607@176.37.91.15:37600;line=ukipitb6>;reg-id=1 Event: dialog Accept: application/dialog-info+xml Expires: 80 Content-Length: 0 Path: <sip:212.232.26.232:5060;lr;received=sip:176.37.91.15:37600> X-AUTH-IP: 176.37.91.15
Actually I get Accepted (202)
But with NOTIFY from freeswitch I got this
NOTIFY sip:607@176.37.91.15:37600;line=ukipitb6 SIP/2.0 Via: SIP/2.0/UDP 10.0.20.71;rport;branch=z9hG4bKS5ZKag4N6XXFK Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on Record-Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on Max-Forwards: 70 From: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF To: <sip:607@master.rufan.at>;tag=jz8i26dy0f Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 CSeq: 297327351 NOTIFY Contact: <sip:*55@10.0.20.71:5060> User-Agent: FreeSWITCH Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE Supported: path, replaces Event: dialog Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer Subscription-State: active;expires=80 Content-Type: application/dialog-info+xml Content-Length: 152
<?xml version="1.0"?> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="8" state="full" entity="sip:*55@master.rufan.at"> </dialog-info>
Problem is, XML data is empty, cause actually there is no registrations for *55 extension. Why it’s not sending «Unavail» or smth. like this? What is the correct packet for SUBSCRIBE? Or internal profile?
Internal profile is nonce-ttl [60] auth-calls [true] inbound-reg-force-matching-username [true] auth-all-packets [false] ext-rtp-ip [10.0.20.71] ext-sip-ip [10.0.20.71] rtp-timeout-sec [300] rtp-hold-timeout-sec [1800] tls-verify-policy [all] multiple-registrations [contact] enable-timer [false] dbname [share_presence] send-presence-on-register [true] inbound-codec-negotiation [greedy] NDLB-force-rport [safe] challenge-realm [auto_to] outbound-proxy [10.0.20.70] track-calls [true] nat-options-ping [true] liberal-dtmf [true] all-reg-options-ping [true] force-publish-expires [true] unregister-on-options-fail [true] user-agent-string [FreeSWITCH] log-auth-failures [true] forward-unsolicited-mwi-notify [false] context [public] rfc2833-pt [101] sip-port [5060] dialplan [XML] dtmf-duration [2000] inbound-codec-prefs [G7221@32000h,G7221@16000h ,G722,PCMU,PCMA,OPUS,SILK] outbound-codec-prefs [G7221@32000h,G7221@16000h ,G722,PCMU,PCMA,OPUS,SILK] rtp-timer-name [soft] rtp-ip [10.0.20.71] sip-ip [10.0.20.71] hold-music [local_stream://default] apply-nat-acl [nat.auto] aggressive-nat-detection [true] apply-inbound-acl [domains] local-network-acl [localnet.auto] record-path [/usr/local/freeswitch/recordings] record-template [${domain_name}/archive/${strftime(%Y)}/${strftime(%b)}/${strftime(%d)}/${uuid}.${record_ext}] manage-presence [true] presence-probe-on-register [true] manage-shared-appearance [true] tls [false]
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
No, no IP’s, only domain names. Also, I’ve disabled force-subscription-domain, force-register-domain and force-register-db-domain due to multitenancy Sorry, forgot to mention FreeSWITCH Version 1.6.6+git~20160111T201612Z~d2d0b3283a~64bit 2016-03-09 21:46 GMT+02:00 Brian West <brian@freeswitch.org>:
Make sure you're not forcing them to the IP because we do so in our vanilla configs to make it easier on everyone. :) Also I can't tell what rev of FreeSWITCH you're on.
On Wed, Mar 9, 2016 at 1:43 PM, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
Thanks,
I’m putting a domain in every SUBSCRIBE request I’m passing through. So, I’m 100% sure, there is domains everywhere, no IP’s in R-URI, To or From. Btw, this situation is only when device is not registered, If device is registered and ringing/talking, I’ve got correct XML info’s. Situation is only when I’m trying to subscribe on non-existing device. Or device is unregistered and also, in NOTIFY XML data is like this.
2016-03-09 21:38 GMT+02:00 Brian West <brian@freeswitch.org>:
The only time I've ever seen this issue is when its a domain/ip mismatch, and many devices like yealink and the like will subscribe to the IP even when you put in the domain name in some firmwares. So you'll need to test, check and verify its doing what you think it is.
Also out of the box we force the domain to the IP, unless you change it. Doing anything multi-tenant requires your endpoints to behave properly too.
/b
On Wed, Mar 9, 2016 at 1:34 PM, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
As I tried, these options are really not est with multi-tenant. And really, where is device is Subscribed to IP? I don’t see any IP’s in R-URI or To/From. Record-Route is just for keep packets back and Contact is actual device IP and port.
2016-03-09 21:21 GMT+02:00 Brian West <brian@freeswitch.org>:
I wish had $1,000.00 for every time I answer this one... :)
Ok here is what is the problem, you have the device setup to register to the domain, but its subscribing to the IP ergo domain != ip when it search for any subscriptions.
See force-subscription-domain, force-register-domain and force-register-db-domain
Those all have to align perfectly for things to behave properly.
Thanks,
On Wed, Mar 9, 2016 at 12:57 PM, Igor Olhovskiy < igorolhovskiy@gmail.com> wrote:
Hi! I’m trying to subscribe to Freeswitch with this packet
SUBSCRIBE sip:*55@master.rufan.at SIP/2.0 Record-Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> Via: SIP/2.0/UDP 212.232.26.232:5060 ;branch=z9hG4bKbb4c.eafe0e8f9ec4b28fb6e4056a64c702ed.0 Via: SIP/2.0/UDP 192.168.88.59:37600 ;received=176.37.91.15;branch=z9hG4bK-rzfuku5tc99o;rport=37600 Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> From: <sip:607@master.rufan.at>;tag=jz8i26dy0f To: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 CSeq: 610 SUBSCRIBE Max-Forwards: 69 User-Agent: snom760/8.7.5.35 Contact: <sip:607@176.37.91.15:37600;line=ukipitb6>;reg-id=1 Event: dialog Accept: application/dialog-info+xml Expires: 80 Content-Length: 0 Path: <sip:212.232.26.232:5060;lr;received=sip:176.37.91.15:37600> X-AUTH-IP: 176.37.91.15
Actually I get Accepted (202)
But with NOTIFY from freeswitch I got this
NOTIFY sip:607@176.37.91.15:37600;line=ukipitb6 SIP/2.0 Via: SIP/2.0/UDP 10.0.20.71;rport;branch=z9hG4bKS5ZKag4N6XXFK Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on Record-Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on Max-Forwards: 70 From: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF To: <sip:607@master.rufan.at>;tag=jz8i26dy0f Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 CSeq: 297327351 NOTIFY Contact: <sip:*55@10.0.20.71:5060> User-Agent: FreeSWITCH Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE Supported: path, replaces Event: dialog Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer Subscription-State: active;expires=80 Content-Type: application/dialog-info+xml Content-Length: 152
<?xml version="1.0"?> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="8" state="full" entity="sip:*55@master.rufan.at"> </dialog-info>
Problem is, XML data is empty, cause actually there is no registrations for *55 extension. Why it’s not sending «Unavail» or smth. like this? What is the correct packet for SUBSCRIBE? Or internal profile?
Internal profile is nonce-ttl [60] auth-calls [true] inbound-reg-force-matching-username [true] auth-all-packets [false] ext-rtp-ip [10.0.20.71] ext-sip-ip [10.0.20.71] rtp-timeout-sec [300] rtp-hold-timeout-sec [1800] tls-verify-policy [all] multiple-registrations [contact] enable-timer [false] dbname [share_presence] send-presence-on-register [true] inbound-codec-negotiation [greedy] NDLB-force-rport [safe] challenge-realm [auto_to] outbound-proxy [10.0.20.70] track-calls [true] nat-options-ping [true] liberal-dtmf [true] all-reg-options-ping [true] force-publish-expires [true] unregister-on-options-fail [true] user-agent-string [FreeSWITCH] log-auth-failures [true] forward-unsolicited-mwi-notify [false] context [public] rfc2833-pt [101] sip-port [5060] dialplan [XML] dtmf-duration [2000] inbound-codec-prefs [G7221@32000h,G7221@16000h ,G722,PCMU,PCMA,OPUS,SILK] outbound-codec-prefs [G7221@32000h,G7221@16000h ,G722,PCMU,PCMA,OPUS,SILK] rtp-timer-name [soft] rtp-ip [10.0.20.71] sip-ip [10.0.20.71] hold-music [local_stream://default] apply-nat-acl [nat.auto] aggressive-nat-detection [true] apply-inbound-acl [domains] local-network-acl [localnet.auto] record-path [/usr/local/freeswitch/recordings] record-template [${domain_name}/archive/${strftime(%Y)}/${strftime(%b)}/${strftime(%d)}/${uuid}.${record_ext}] manage-presence [true] presence-probe-on-register [true] manage-shared-appearance [true] tls [false]
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
What do the entries in the subscription table look like? And can I see the subscribe packets please? On Wed, Mar 9, 2016 at 1:49 PM, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
No, no IP’s, only domain names. Also, I’ve disabled force-subscription-domain, force-register-domain and force-register-db-domain due to multitenancy
Sorry, forgot to mention FreeSWITCH Version 1.6.6+git~20160111T201612Z~d2d0b3283a~64bit
2016-03-09 21:46 GMT+02:00 Brian West <brian@freeswitch.org>:
Make sure you're not forcing them to the IP because we do so in our vanilla configs to make it easier on everyone. :) Also I can't tell what rev of FreeSWITCH you're on.
On Wed, Mar 9, 2016 at 1:43 PM, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
Thanks,
I’m putting a domain in every SUBSCRIBE request I’m passing through. So, I’m 100% sure, there is domains everywhere, no IP’s in R-URI, To or From. Btw, this situation is only when device is not registered, If device is registered and ringing/talking, I’ve got correct XML info’s. Situation is only when I’m trying to subscribe on non-existing device. Or device is unregistered and also, in NOTIFY XML data is like this.
2016-03-09 21:38 GMT+02:00 Brian West <brian@freeswitch.org>:
The only time I've ever seen this issue is when its a domain/ip mismatch, and many devices like yealink and the like will subscribe to the IP even when you put in the domain name in some firmwares. So you'll need to test, check and verify its doing what you think it is.
Also out of the box we force the domain to the IP, unless you change it. Doing anything multi-tenant requires your endpoints to behave properly too.
/b
On Wed, Mar 9, 2016 at 1:34 PM, Igor Olhovskiy <igorolhovskiy@gmail.com
wrote:
As I tried, these options are really not est with multi-tenant. And really, where is device is Subscribed to IP? I don’t see any IP’s in R-URI or To/From. Record-Route is just for keep packets back and Contact is actual device IP and port.
2016-03-09 21:21 GMT+02:00 Brian West <brian@freeswitch.org>:
I wish had $1,000.00 for every time I answer this one... :)
Ok here is what is the problem, you have the device setup to register to the domain, but its subscribing to the IP ergo domain != ip when it search for any subscriptions.
See force-subscription-domain, force-register-domain and force-register-db-domain
Those all have to align perfectly for things to behave properly.
Thanks,
On Wed, Mar 9, 2016 at 12:57 PM, Igor Olhovskiy < igorolhovskiy@gmail.com> wrote:
> Hi! > I’m trying to subscribe to Freeswitch with this packet > > SUBSCRIBE sip:*55@master.rufan.at SIP/2.0 > Record-Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> > Via: SIP/2.0/UDP 212.232.26.232:5060 > ;branch=z9hG4bKbb4c.eafe0e8f9ec4b28fb6e4056a64c702ed.0 > Via: SIP/2.0/UDP 192.168.88.59:37600 > ;received=176.37.91.15;branch=z9hG4bK-rzfuku5tc99o;rport=37600 > Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> > From: <sip:607@master.rufan.at>;tag=jz8i26dy0f > To: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF > Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 > CSeq: 610 SUBSCRIBE > Max-Forwards: 69 > User-Agent: snom760/8.7.5.35 > Contact: <sip:607@176.37.91.15:37600;line=ukipitb6>;reg-id=1 > Event: dialog > Accept: application/dialog-info+xml > Expires: 80 > Content-Length: 0 > Path: <sip:212.232.26.232:5060;lr;received=sip:176.37.91.15:37600> > X-AUTH-IP: 176.37.91.15 > > Actually I get Accepted (202) > > But with NOTIFY from freeswitch I got this > > NOTIFY sip:607@176.37.91.15:37600;line=ukipitb6 SIP/2.0 > Via: SIP/2.0/UDP 10.0.20.71;rport;branch=z9hG4bKS5ZKag4N6XXFK > Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on > Record-Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on > Max-Forwards: 70 > From: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF > To: <sip:607@master.rufan.at>;tag=jz8i26dy0f > Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 > CSeq: 297327351 NOTIFY > Contact: <sip:*55@10.0.20.71:5060> > User-Agent: FreeSWITCH > Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, > REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE > Supported: path, replaces > Event: dialog > Allow-Events: talk, hold, conference, presence, as-feature-event, > dialog, line-seize, call-info, sla, include-session-description, > presence.winfo, message-summary, refer > Subscription-State: active;expires=80 > Content-Type: application/dialog-info+xml > Content-Length: 152 > > <?xml version="1.0"?> > <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="8" > state="full" entity="sip:*55@master.rufan.at"> > </dialog-info> > > Problem is, XML data is empty, cause actually there is no > registrations for *55 extension. > Why it’s not sending «Unavail» or smth. like this? What is the > correct packet for SUBSCRIBE? Or internal profile? > > Internal profile is > nonce-ttl [60] > auth-calls [true] > inbound-reg-force-matching-username [true] > auth-all-packets [false] > ext-rtp-ip [10.0.20.71] > ext-sip-ip [10.0.20.71] > rtp-timeout-sec [300] > rtp-hold-timeout-sec [1800] > tls-verify-policy [all] > multiple-registrations [contact] > enable-timer [false] > dbname [share_presence] > send-presence-on-register [true] > inbound-codec-negotiation [greedy] > NDLB-force-rport [safe] > challenge-realm [auto_to] > outbound-proxy [10.0.20.70] > track-calls [true] > nat-options-ping [true] > liberal-dtmf [true] > all-reg-options-ping [true] > force-publish-expires [true] > unregister-on-options-fail [true] > user-agent-string [FreeSWITCH] > log-auth-failures [true] > forward-unsolicited-mwi-notify [false] > context [public] > rfc2833-pt [101] > sip-port [5060] > dialplan [XML] > dtmf-duration [2000] > inbound-codec-prefs [G7221@32000h,G7221@16000h > ,G722,PCMU,PCMA,OPUS,SILK] > outbound-codec-prefs [G7221@32000h,G7221@16000h > ,G722,PCMU,PCMA,OPUS,SILK] > rtp-timer-name [soft] > rtp-ip [10.0.20.71] > sip-ip [10.0.20.71] > hold-music [local_stream://default] > apply-nat-acl [nat.auto] > aggressive-nat-detection [true] > apply-inbound-acl [domains] > local-network-acl [localnet.auto] > record-path [/usr/local/freeswitch/recordings] > record-template > [${domain_name}/archive/${strftime(%Y)}/${strftime(%b)}/${strftime(%d)}/${uuid}.${record_ext}] > manage-presence [true] > presence-probe-on-register [true] > manage-shared-appearance [true] > tls [false] > > > -- > Best regards, > Igor > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE: > http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org >
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
Not sure I can pick correct entity, but from table sip_subscriptions; proto | sip_user | sip_host | sub_to_user | sub_to_host | presence_hosts | event | contact | call_id | full_from | full_via | expires | user_agent | accept | profile_name | hostname | network_port | network_ip | version | orig_proto | full_to -------+----------+-----------------+-------------+-----------------+----------------+--------+------------------------------------------------------------------------------------------------------------------+----------------------------------+-----------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+------------+------------------------------+-----------------------------------------------------------------------+--------------+----------+--------------+------------+---------+------------+------------------------------------------------- sip | 608 | master.rufan.at | *55 | master.rufan.at | | dialog | "user" <sip:608@176.37.91.15:1024;fs_path=sip%3A10.0.20.70%3A5060%3Bftag%3D634732653%3Blr%3Don> | 1681459928-5060-12@BJC.BGI.II.GA | < sip:608@master.rufan.at>;tag=634732653 | SIP/2.0/UDP 212.232.26.232:5060;branch=z9hG4bK9eec.47a95c33507bedf392053497d676dd1f.0;received=10.0.20.70 | 1457553810 | Grandstream GXP2160 1.0.5.33 | application/dialog-info+xml, multipart/related, application/rlmi+xml | internal | fsw04-0 | 5060 | 10.0.20.70 | 0 | | <sip:*55@master.rufan.at>;tag=T8d4diV1izE2 sip | 606 | master.rufan.at | *55 | master.rufan.at | | dialog | "606 - MRA" <sip:606@176.37.91.15:5060;fs_path=sip%3A10.0.20.70%3A5060%3Bftag%3D3377511430%3Blr%3Don> | 0_596236462@192.168.88.58 | "606 - MRA" < sip:606@master.rufan.at:5060>;tag=3377511430 | SIP/2.0/UDP 212.232.26.232:5060;branch=z9hG4bK5d5a.c87742c8e9417011a9886ed13f0b46ea.0;received=10.0.20.70 | 1457554621 | Yealink SIP-T48G 35.80.0.95 | application/dialog-info+xml | internal | fsw04-0 | 5060 | 10.0.20.70 | 0 | | <sip:*55@master.rufan.at:5060>;tag=ziusfu8L3hlO sip | 609 | master.rufan.at | *55 | master.rufan.at | | dialog | "user" <sip:609@192.168.2.111:11887;transport=TCP;fs_path=sip%3A10.0.20.70%3A5060%3Bftag%3D2961540197%3Blr%3Don> | 1_1073683000@192.168.2.111 | <sip:609@master.rufan.at:5060>;tag=2961540197 | SIP/2.0/UDP 212.232.26.232:5060;branch=z9hG4bK99ff.cd4b0bc5bc0f9d8839eb10da2fd6a4ab.0;i=3;received=10.0.20.70 | 1457555453 | Yealink SIP-T42G 29.80.0.95 | application/dialog-info+xml | internal | fsw04-0 | 5060 | 10.0.20.70 | 6 | | <sip:*55@master.rufan.at:5060
;tag=Pe1EElSL1Wux sip | 602 | master.rufan.at | *55 | master.rufan.at | | dialog | "user" <sip:602@192.168.2.126:5060;fs_path=sip%3A10.0.20.70%3A5060%3Bftag%3D2476761298%3Blr%3Don> | 2_2942107447@192.168.2.126 | < sip:602@master.rufan.at:5060>;tag=2476761298 | SIP/2.0/UDP 212.232.26.232:5060;branch=z9hG4bKe3ca.a3991d3ba90178ee0fedf31576837f6b.0;received=10.0.20.70 | 1457555268 | Yealink SIP-T48G 35.80.0.95 | application/dialog-info+xml | internal | fsw04-0 | 5060 | 10.0.20.70 | 9 | | <sip:*55@master.rufan.at:5060>;tag=JIBAb590T27W (4 rows)
It’s for *55 and domain = master.rufan.at And the packet actually (Grandstream) SUBSCRIBE sip:*55@master.rufan.at SIP/2.0 Record-Route: <sip:10.0.20.70:5060;ftag=113168616;lr=on> Via: SIP/2.0/UDP 212.232.26.232:5060 ;branch=z9hG4bK93c7.7c2cdb9650455af02d6d10035bf3b61e.0 Via: SIP/2.0/UDP 192.168.88.60:5060 ;received=176.37.91.15;branch=z9hG4bK1367793990;rport=1024 From: <sip:608@master.rufan.at>;tag=113168616 To: <sip:*55@master.rufan.at> Call-ID: 676611784-5060-14@BJC.BGI.II.GA CSeq: 20120 SUBSCRIBE Contact: <sip:608@176.37.91.15:1024> X-Grandstream-PBX: true Max-Forwards: 69 User-Agent: Grandstream GXP2160 1.0.5.33 Expires: 180 Supported: replaces, path, timer, eventlist Event: dialog Accept: application/dialog-info+xml,multipart/related,application/rlmi+xml Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE Content-Length: 0 Path: <sip:212.232.26.232:5060;lr;received=sip:176.37.91.15:1024> X-AUTH-IP: 176.37.91.15 (Yealink) SUBSCRIBE sip:*55@master.rufan.at SIP/2.0 Record-Route: <sip:10.0.20.70:5060;ftag=1995090923;lr=on> Via: SIP/2.0/UDP 212.232.26.232:5060 ;branch=z9hG4bK8da1.d094596a4b93e6c890de68f180007279.0 Via: SIP/2.0/UDP 192.168.88.58:5060 ;rport=5060;received=176.37.91.15;branch=z9hG4bK2944115790 From: "606 - MRA" <sip:606@master.rufan.at:5060>;tag=1995090923 To: <sip:*55@master.rufan.at:5060> Call-ID: 0_1262134978@192.168.88.58 CSeq: 1 SUBSCRIBE Contact: <sip:606@176.37.91.15:5060> Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE Accept: application/dialog-info+xml Max-Forwards: 69 User-Agent: Yealink SIP-T48G 35.80.0.95 Expires: 1800 Event: dialog Content-Length: 0 Path: <sip:212.232.26.232:5060;lr;received=sip:176.37.91.15:5060> X-AUTH-IP: 176.37.91.15 And NOTIFY for Yealink NOTIFY sip:606@176.37.91.15:5060 SIP/2.0 Via: SIP/2.0/UDP 10.0.20.71;rport;branch=z9hG4bKa1XSXZtH9Zrtg Route: <sip:10.0.20.70:5060>;ftag=1995090923;lr=on Record-Route: <sip:10.0.20.70:5060>;ftag=1995090923;lr=on Max-Forwards: 70 From: <sip:*55@master.rufan.at:5060>;tag=3TCMXfAmcte4 To: "606 - MRA" <sip:606@master.rufan.at:5060>;tag=1995090923 Call-ID: 0_1262134978@192.168.88.58 CSeq: 297553154 NOTIFY Contact: <sip:*55@10.0.20.71:5060> User-Agent: FreeSWITCH Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE Supported: path, replaces Event: dialog Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer Subscription-State: active;expires=1800 Content-Type: application/dialog-info+xml Content-Length: 152 <?xml version="1.0"?> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity="sip:*55@master.rufan.at"> </dialog-info> 2016-03-09 21:53 GMT+02:00 Brian West <brian@freeswitch.org>:
What do the entries in the subscription table look like? And can I see the subscribe packets please?
On Wed, Mar 9, 2016 at 1:49 PM, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
No, no IP’s, only domain names. Also, I’ve disabled force-subscription-domain, force-register-domain and force-register-db-domain due to multitenancy
Sorry, forgot to mention FreeSWITCH Version 1.6.6+git~20160111T201612Z~d2d0b3283a~64bit
2016-03-09 21:46 GMT+02:00 Brian West <brian@freeswitch.org>:
Make sure you're not forcing them to the IP because we do so in our vanilla configs to make it easier on everyone. :) Also I can't tell what rev of FreeSWITCH you're on.
On Wed, Mar 9, 2016 at 1:43 PM, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
Thanks,
I’m putting a domain in every SUBSCRIBE request I’m passing through. So, I’m 100% sure, there is domains everywhere, no IP’s in R-URI, To or From. Btw, this situation is only when device is not registered, If device is registered and ringing/talking, I’ve got correct XML info’s. Situation is only when I’m trying to subscribe on non-existing device. Or device is unregistered and also, in NOTIFY XML data is like this.
2016-03-09 21:38 GMT+02:00 Brian West <brian@freeswitch.org>:
The only time I've ever seen this issue is when its a domain/ip mismatch, and many devices like yealink and the like will subscribe to the IP even when you put in the domain name in some firmwares. So you'll need to test, check and verify its doing what you think it is.
Also out of the box we force the domain to the IP, unless you change it. Doing anything multi-tenant requires your endpoints to behave properly too.
/b
On Wed, Mar 9, 2016 at 1:34 PM, Igor Olhovskiy < igorolhovskiy@gmail.com> wrote:
As I tried, these options are really not est with multi-tenant. And really, where is device is Subscribed to IP? I don’t see any IP’s in R-URI or To/From. Record-Route is just for keep packets back and Contact is actual device IP and port.
2016-03-09 21:21 GMT+02:00 Brian West <brian@freeswitch.org>:
> I wish had $1,000.00 for every time I answer this one... :) > > Ok here is what is the problem, you have the device setup to > register to the domain, but its subscribing to the IP ergo domain != ip > when it search for any subscriptions. > > See force-subscription-domain, force-register-domain and > force-register-db-domain > > Those all have to align perfectly for things to behave properly. > > Thanks, > > > > On Wed, Mar 9, 2016 at 12:57 PM, Igor Olhovskiy < > igorolhovskiy@gmail.com> wrote: > >> Hi! >> I’m trying to subscribe to Freeswitch with this packet >> >> SUBSCRIBE sip:*55@master.rufan.at SIP/2.0 >> Record-Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> >> Via: SIP/2.0/UDP 212.232.26.232:5060 >> ;branch=z9hG4bKbb4c.eafe0e8f9ec4b28fb6e4056a64c702ed.0 >> Via: SIP/2.0/UDP 192.168.88.59:37600 >> ;received=176.37.91.15;branch=z9hG4bK-rzfuku5tc99o;rport=37600 >> Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> >> From: <sip:607@master.rufan.at>;tag=jz8i26dy0f >> To: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF >> Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 >> CSeq: 610 SUBSCRIBE >> Max-Forwards: 69 >> User-Agent: snom760/8.7.5.35 >> Contact: <sip:607@176.37.91.15:37600;line=ukipitb6>;reg-id=1 >> Event: dialog >> Accept: application/dialog-info+xml >> Expires: 80 >> Content-Length: 0 >> Path: <sip:212.232.26.232:5060;lr;received=sip:176.37.91.15:37600> >> X-AUTH-IP: 176.37.91.15 >> >> Actually I get Accepted (202) >> >> But with NOTIFY from freeswitch I got this >> >> NOTIFY sip:607@176.37.91.15:37600;line=ukipitb6 SIP/2.0 >> Via: SIP/2.0/UDP 10.0.20.71;rport;branch=z9hG4bKS5ZKag4N6XXFK >> Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on >> Record-Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on >> Max-Forwards: 70 >> From: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF >> To: <sip:607@master.rufan.at>;tag=jz8i26dy0f >> Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 >> CSeq: 297327351 NOTIFY >> Contact: <sip:*55@10.0.20.71:5060> >> User-Agent: FreeSWITCH >> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, >> REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE >> Supported: path, replaces >> Event: dialog >> Allow-Events: talk, hold, conference, presence, as-feature-event, >> dialog, line-seize, call-info, sla, include-session-description, >> presence.winfo, message-summary, refer >> Subscription-State: active;expires=80 >> Content-Type: application/dialog-info+xml >> Content-Length: 152 >> >> <?xml version="1.0"?> >> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="8" >> state="full" entity="sip:*55@master.rufan.at"> >> </dialog-info> >> >> Problem is, XML data is empty, cause actually there is no >> registrations for *55 extension. >> Why it’s not sending «Unavail» or smth. like this? What is the >> correct packet for SUBSCRIBE? Or internal profile? >> >> Internal profile is >> nonce-ttl [60] >> auth-calls [true] >> inbound-reg-force-matching-username [true] >> auth-all-packets [false] >> ext-rtp-ip [10.0.20.71] >> ext-sip-ip [10.0.20.71] >> rtp-timeout-sec [300] >> rtp-hold-timeout-sec [1800] >> tls-verify-policy [all] >> multiple-registrations [contact] >> enable-timer [false] >> dbname [share_presence] >> send-presence-on-register [true] >> inbound-codec-negotiation [greedy] >> NDLB-force-rport [safe] >> challenge-realm [auto_to] >> outbound-proxy [10.0.20.70] >> track-calls [true] >> nat-options-ping [true] >> liberal-dtmf [true] >> all-reg-options-ping [true] >> force-publish-expires [true] >> unregister-on-options-fail [true] >> user-agent-string [FreeSWITCH] >> log-auth-failures [true] >> forward-unsolicited-mwi-notify [false] >> context [public] >> rfc2833-pt [101] >> sip-port [5060] >> dialplan [XML] >> dtmf-duration [2000] >> inbound-codec-prefs [G7221@32000h,G7221@16000h >> ,G722,PCMU,PCMA,OPUS,SILK] >> outbound-codec-prefs [G7221@32000h,G7221@16000h >> ,G722,PCMU,PCMA,OPUS,SILK] >> rtp-timer-name [soft] >> rtp-ip [10.0.20.71] >> sip-ip [10.0.20.71] >> hold-music [local_stream://default] >> apply-nat-acl [nat.auto] >> aggressive-nat-detection [true] >> apply-inbound-acl [domains] >> local-network-acl [localnet.auto] >> record-path [/usr/local/freeswitch/recordings] >> record-template >> [${domain_name}/archive/${strftime(%Y)}/${strftime(%b)}/${strftime(%d)}/${uuid}.${record_ext}] >> manage-presence [true] >> presence-probe-on-register [true] >> manage-shared-appearance [true] >> tls [false] >> >> >> -- >> Best regards, >> Igor >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting@freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users@lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE: >> http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > > > -- > > *Brian West* > brian@freeswitch.org > > > *Twitter: @FreeSWITCH , @briankwest* > http://www.freeswitchbook.com > http://www.freeswitchcookbook.com > https://www.gofundme.com/freeswitch_ubuntu > > Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: > /r/freeswitch <https://www.reddit.com/r/freeswitch> > > *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) > *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE: > http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org >
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
You're not registering direct to FreeSWITCH are you, that may be something to investigate, This is generated in sofia_presence.c, line 2424, switch_snprintf(key, sizeof(key), "%s%s", user, host); data = switch_core_hash_find(sh->hash, key); if (data) { It would indicate that switch_core_hash_find may not be returning the key, you may need to debug what exactly is being put into that hash to being with. On Wed, Mar 9, 2016 at 2:05 PM, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
Not sure I can pick correct entity, but from table sip_subscriptions;
proto | sip_user | sip_host | sub_to_user | sub_to_host | presence_hosts | event | contact | call_id | full_from | full_via | expires | user_agent | accept | profile_name | hostname | network_port | network_ip | version | orig_proto | full_to
-------+----------+-----------------+-------------+-----------------+----------------+--------+------------------------------------------------------------------------------------------------------------------+----------------------------------+-----------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+------------+------------------------------+-----------------------------------------------------------------------+--------------+----------+--------------+------------+---------+------------+------------------------------------------------- sip | 608 | master.rufan.at | *55 | master.rufan.at | | dialog | "user" <sip:608@176.37.91.15:1024;fs_path=sip%3A10.0.20.70%3A5060%3Bftag%3D634732653%3Blr%3Don> | 1681459928-5060-12@BJC.BGI.II.GA | < sip:608@master.rufan.at>;tag=634732653 | SIP/2.0/UDP 212.232.26.232:5060;branch=z9hG4bK9eec.47a95c33507bedf392053497d676dd1f.0;received=10.0.20.70 | 1457553810 | Grandstream GXP2160 1.0.5.33 | application/dialog-info+xml, multipart/related, application/rlmi+xml | internal | fsw04-0 | 5060 | 10.0.20.70 | 0 | | <sip:*55@master.rufan.at>;tag=T8d4diV1izE2 sip | 606 | master.rufan.at | *55 | master.rufan.at | | dialog | "606 - MRA" <sip:606@176.37.91.15:5060;fs_path=sip%3A10.0.20.70%3A5060%3Bftag%3D3377511430%3Blr%3Don> | 0_596236462@192.168.88.58 | "606 - MRA" < sip:606@master.rufan.at:5060>;tag=3377511430 | SIP/2.0/UDP 212.232.26.232:5060;branch=z9hG4bK5d5a.c87742c8e9417011a9886ed13f0b46ea.0;received=10.0.20.70 | 1457554621 | Yealink SIP-T48G 35.80.0.95 | application/dialog-info+xml | internal | fsw04-0 | 5060 | 10.0.20.70 | 0 | | <sip:*55@master.rufan.at:5060>;tag=ziusfu8L3hlO sip | 609 | master.rufan.at | *55 | master.rufan.at | | dialog | "user" <sip:609@192.168.2.111:11887;transport=TCP;fs_path=sip%3A10.0.20.70%3A5060%3Bftag%3D2961540197%3Blr%3Don> | 1_1073683000@192.168.2.111 | <sip:609@master.rufan.at:5060>;tag=2961540197 | SIP/2.0/UDP 212.232.26.232:5060;branch=z9hG4bK99ff.cd4b0bc5bc0f9d8839eb10da2fd6a4ab.0;i=3;received=10.0.20.70 | 1457555453 | Yealink SIP-T42G 29.80.0.95 | application/dialog-info+xml | internal | fsw04-0 | 5060 | 10.0.20.70 | 6 | | <sip:*55@master.rufan.at:5060
;tag=Pe1EElSL1Wux sip | 602 | master.rufan.at | *55 | master.rufan.at | | dialog | "user" <sip:602@192.168.2.126:5060;fs_path=sip%3A10.0.20.70%3A5060%3Bftag%3D2476761298%3Blr%3Don> | 2_2942107447@192.168.2.126 | < sip:602@master.rufan.at:5060>;tag=2476761298 | SIP/2.0/UDP 212.232.26.232:5060;branch=z9hG4bKe3ca.a3991d3ba90178ee0fedf31576837f6b.0;received=10.0.20.70 | 1457555268 | Yealink SIP-T48G 35.80.0.95 | application/dialog-info+xml | internal | fsw04-0 | 5060 | 10.0.20.70 | 9 | | <sip:*55@master.rufan.at:5060>;tag=JIBAb590T27W (4 rows)
It’s for *55 and domain = master.rufan.at
And the packet actually (Grandstream) SUBSCRIBE sip:*55@master.rufan.at SIP/2.0 Record-Route: <sip:10.0.20.70:5060;ftag=113168616;lr=on> Via: SIP/2.0/UDP 212.232.26.232:5060 ;branch=z9hG4bK93c7.7c2cdb9650455af02d6d10035bf3b61e.0 Via: SIP/2.0/UDP 192.168.88.60:5060 ;received=176.37.91.15;branch=z9hG4bK1367793990;rport=1024 From: <sip:608@master.rufan.at>;tag=113168616 To: <sip:*55@master.rufan.at> Call-ID: 676611784-5060-14@BJC.BGI.II.GA CSeq: 20120 SUBSCRIBE Contact: <sip:608@176.37.91.15:1024> X-Grandstream-PBX: true Max-Forwards: 69 User-Agent: Grandstream GXP2160 1.0.5.33 Expires: 180 Supported: replaces, path, timer, eventlist Event: dialog Accept: application/dialog-info+xml,multipart/related,application/rlmi+xml Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE Content-Length: 0 Path: <sip:212.232.26.232:5060;lr;received=sip:176.37.91.15:1024> X-AUTH-IP: 176.37.91.15
(Yealink) SUBSCRIBE sip:*55@master.rufan.at SIP/2.0 Record-Route: <sip:10.0.20.70:5060;ftag=1995090923;lr=on> Via: SIP/2.0/UDP 212.232.26.232:5060 ;branch=z9hG4bK8da1.d094596a4b93e6c890de68f180007279.0 Via: SIP/2.0/UDP 192.168.88.58:5060 ;rport=5060;received=176.37.91.15;branch=z9hG4bK2944115790 From: "606 - MRA" <sip:606@master.rufan.at:5060>;tag=1995090923 To: <sip:*55@master.rufan.at:5060> Call-ID: 0_1262134978@192.168.88.58 CSeq: 1 SUBSCRIBE Contact: <sip:606@176.37.91.15:5060> Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE Accept: application/dialog-info+xml Max-Forwards: 69 User-Agent: Yealink SIP-T48G 35.80.0.95 Expires: 1800 Event: dialog Content-Length: 0 Path: <sip:212.232.26.232:5060;lr;received=sip:176.37.91.15:5060> X-AUTH-IP: 176.37.91.15
And NOTIFY for Yealink NOTIFY sip:606@176.37.91.15:5060 SIP/2.0 Via: SIP/2.0/UDP 10.0.20.71;rport;branch=z9hG4bKa1XSXZtH9Zrtg Route: <sip:10.0.20.70:5060>;ftag=1995090923;lr=on Record-Route: <sip:10.0.20.70:5060>;ftag=1995090923;lr=on Max-Forwards: 70 From: <sip:*55@master.rufan.at:5060>;tag=3TCMXfAmcte4 To: "606 - MRA" <sip:606@master.rufan.at:5060>;tag=1995090923 Call-ID: 0_1262134978@192.168.88.58 CSeq: 297553154 NOTIFY Contact: <sip:*55@10.0.20.71:5060> User-Agent: FreeSWITCH Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE Supported: path, replaces Event: dialog Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer Subscription-State: active;expires=1800 Content-Type: application/dialog-info+xml Content-Length: 152
<?xml version="1.0"?> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity="sip:*55@master.rufan.at"> </dialog-info>
2016-03-09 21:53 GMT+02:00 Brian West <brian@freeswitch.org>:
What do the entries in the subscription table look like? And can I see the subscribe packets please?
On Wed, Mar 9, 2016 at 1:49 PM, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
No, no IP’s, only domain names. Also, I’ve disabled force-subscription-domain, force-register-domain and force-register-db-domain due to multitenancy
Sorry, forgot to mention FreeSWITCH Version 1.6.6+git~20160111T201612Z~d2d0b3283a~64bit
2016-03-09 21:46 GMT+02:00 Brian West <brian@freeswitch.org>:
Make sure you're not forcing them to the IP because we do so in our vanilla configs to make it easier on everyone. :) Also I can't tell what rev of FreeSWITCH you're on.
On Wed, Mar 9, 2016 at 1:43 PM, Igor Olhovskiy <igorolhovskiy@gmail.com
wrote:
Thanks,
I’m putting a domain in every SUBSCRIBE request I’m passing through. So, I’m 100% sure, there is domains everywhere, no IP’s in R-URI, To or From. Btw, this situation is only when device is not registered, If device is registered and ringing/talking, I’ve got correct XML info’s. Situation is only when I’m trying to subscribe on non-existing device. Or device is unregistered and also, in NOTIFY XML data is like this.
2016-03-09 21:38 GMT+02:00 Brian West <brian@freeswitch.org>:
The only time I've ever seen this issue is when its a domain/ip mismatch, and many devices like yealink and the like will subscribe to the IP even when you put in the domain name in some firmwares. So you'll need to test, check and verify its doing what you think it is.
Also out of the box we force the domain to the IP, unless you change it. Doing anything multi-tenant requires your endpoints to behave properly too.
/b
On Wed, Mar 9, 2016 at 1:34 PM, Igor Olhovskiy < igorolhovskiy@gmail.com> wrote:
> As I tried, these options are really not est with multi-tenant. > And really, where is device is Subscribed to IP? I don’t see any > IP’s in R-URI or To/From. > Record-Route is just for keep packets back and Contact is actual > device IP and port. > > 2016-03-09 21:21 GMT+02:00 Brian West <brian@freeswitch.org>: > >> I wish had $1,000.00 for every time I answer this one... :) >> >> Ok here is what is the problem, you have the device setup to >> register to the domain, but its subscribing to the IP ergo domain != ip >> when it search for any subscriptions. >> >> See force-subscription-domain, force-register-domain and >> force-register-db-domain >> >> Those all have to align perfectly for things to behave properly. >> >> Thanks, >> >> >> >> On Wed, Mar 9, 2016 at 12:57 PM, Igor Olhovskiy < >> igorolhovskiy@gmail.com> wrote: >> >>> Hi! >>> I’m trying to subscribe to Freeswitch with this packet >>> >>> SUBSCRIBE sip:*55@master.rufan.at SIP/2.0 >>> Record-Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> >>> Via: SIP/2.0/UDP 212.232.26.232:5060 >>> ;branch=z9hG4bKbb4c.eafe0e8f9ec4b28fb6e4056a64c702ed.0 >>> Via: SIP/2.0/UDP 192.168.88.59:37600 >>> ;received=176.37.91.15;branch=z9hG4bK-rzfuku5tc99o;rport=37600 >>> Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> >>> From: <sip:607@master.rufan.at>;tag=jz8i26dy0f >>> To: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF >>> Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 >>> CSeq: 610 SUBSCRIBE >>> Max-Forwards: 69 >>> User-Agent: snom760/8.7.5.35 >>> Contact: <sip:607@176.37.91.15:37600;line=ukipitb6>;reg-id=1 >>> Event: dialog >>> Accept: application/dialog-info+xml >>> Expires: 80 >>> Content-Length: 0 >>> Path: <sip:212.232.26.232:5060;lr;received=sip:176.37.91.15:37600> >>> X-AUTH-IP: 176.37.91.15 >>> >>> Actually I get Accepted (202) >>> >>> But with NOTIFY from freeswitch I got this >>> >>> NOTIFY sip:607@176.37.91.15:37600;line=ukipitb6 SIP/2.0 >>> Via: SIP/2.0/UDP 10.0.20.71;rport;branch=z9hG4bKS5ZKag4N6XXFK >>> Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on >>> Record-Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on >>> Max-Forwards: 70 >>> From: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF >>> To: <sip:607@master.rufan.at>;tag=jz8i26dy0f >>> Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 >>> CSeq: 297327351 NOTIFY >>> Contact: <sip:*55@10.0.20.71:5060> >>> User-Agent: FreeSWITCH >>> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, >>> REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE >>> Supported: path, replaces >>> Event: dialog >>> Allow-Events: talk, hold, conference, presence, as-feature-event, >>> dialog, line-seize, call-info, sla, include-session-description, >>> presence.winfo, message-summary, refer >>> Subscription-State: active;expires=80 >>> Content-Type: application/dialog-info+xml >>> Content-Length: 152 >>> >>> <?xml version="1.0"?> >>> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" >>> version="8" state="full" entity="sip:*55@master.rufan.at"> >>> </dialog-info> >>> >>> Problem is, XML data is empty, cause actually there is no >>> registrations for *55 extension. >>> Why it’s not sending «Unavail» or smth. like this? What is the >>> correct packet for SUBSCRIBE? Or internal profile? >>> >>> Internal profile is >>> nonce-ttl [60] >>> auth-calls [true] >>> inbound-reg-force-matching-username [true] >>> auth-all-packets [false] >>> ext-rtp-ip [10.0.20.71] >>> ext-sip-ip [10.0.20.71] >>> rtp-timeout-sec [300] >>> rtp-hold-timeout-sec [1800] >>> tls-verify-policy [all] >>> multiple-registrations [contact] >>> enable-timer [false] >>> dbname [share_presence] >>> send-presence-on-register [true] >>> inbound-codec-negotiation [greedy] >>> NDLB-force-rport [safe] >>> challenge-realm [auto_to] >>> outbound-proxy [10.0.20.70] >>> track-calls [true] >>> nat-options-ping [true] >>> liberal-dtmf [true] >>> all-reg-options-ping [true] >>> force-publish-expires [true] >>> unregister-on-options-fail [true] >>> user-agent-string [FreeSWITCH] >>> log-auth-failures [true] >>> forward-unsolicited-mwi-notify [false] >>> context [public] >>> rfc2833-pt [101] >>> sip-port [5060] >>> dialplan [XML] >>> dtmf-duration [2000] >>> inbound-codec-prefs [G7221@32000h,G7221@16000h >>> ,G722,PCMU,PCMA,OPUS,SILK] >>> outbound-codec-prefs [G7221@32000h,G7221@16000h >>> ,G722,PCMU,PCMA,OPUS,SILK] >>> rtp-timer-name [soft] >>> rtp-ip [10.0.20.71] >>> sip-ip [10.0.20.71] >>> hold-music [local_stream://default] >>> apply-nat-acl [nat.auto] >>> aggressive-nat-detection [true] >>> apply-inbound-acl [domains] >>> local-network-acl [localnet.auto] >>> record-path [/usr/local/freeswitch/recordings] >>> record-template >>> [${domain_name}/archive/${strftime(%Y)}/${strftime(%b)}/${strftime(%d)}/${uuid}.${record_ext}] >>> manage-presence [true] >>> presence-probe-on-register [true] >>> manage-shared-appearance [true] >>> tls [false] >>> >>> >>> -- >>> Best regards, >>> Igor >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting@freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users@lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE: >>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >> >> >> >> -- >> >> *Brian West* >> brian@freeswitch.org >> >> >> *Twitter: @FreeSWITCH , @briankwest* >> http://www.freeswitchbook.com >> http://www.freeswitchcookbook.com >> https://www.gofundme.com/freeswitch_ubuntu >> >> Got Bugs? Report them here <https://freeswitch.org/jira>! | >> Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> >> >> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) >> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting@freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users@lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE: >> http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > > > -- > Best regards, > Igor > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE: > http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org >
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
Yep, I’m using Kamailio as a proxy, but it just forward REGISTER to Freeswitch, That’s just adds few more lines packet and populates fields with actual external addresses and port data. Debug may be hard for me (I’m not a programmer, actually), but will try, Thanks. 2016-03-09 22:28 GMT+02:00 Brian West <brian@freeswitch.org>:
You're not registering direct to FreeSWITCH are you, that may be something to investigate,
This is generated in sofia_presence.c, line 2424,
switch_snprintf(key, sizeof(key), "%s%s", user, host);
data = switch_core_hash_find(sh->hash, key);
if (data) {
It would indicate that switch_core_hash_find may not be returning the key, you may need to debug what exactly is being put into that hash to being with.
On Wed, Mar 9, 2016 at 2:05 PM, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
Not sure I can pick correct entity, but from table sip_subscriptions;
proto | sip_user | sip_host | sub_to_user | sub_to_host | presence_hosts | event | contact | call_id | full_from | full_via | expires | user_agent | accept | profile_name | hostname | network_port | network_ip | version | orig_proto | full_to
-------+----------+-----------------+-------------+-----------------+----------------+--------+------------------------------------------------------------------------------------------------------------------+----------------------------------+-----------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+------------+------------------------------+-----------------------------------------------------------------------+--------------+----------+--------------+------------+---------+------------+------------------------------------------------- sip | 608 | master.rufan.at | *55 | master.rufan.at | | dialog | "user" <sip:608@176.37.91.15:1024;fs_path=sip%3A10.0.20.70%3A5060%3Bftag%3D634732653%3Blr%3Don> | 1681459928-5060-12@BJC.BGI.II.GA | < sip:608@master.rufan.at>;tag=634732653 | SIP/2.0/UDP 212.232.26.232:5060;branch=z9hG4bK9eec.47a95c33507bedf392053497d676dd1f.0;received=10.0.20.70 | 1457553810 | Grandstream GXP2160 1.0.5.33 | application/dialog-info+xml, multipart/related, application/rlmi+xml | internal | fsw04-0 | 5060 | 10.0.20.70 | 0 | | <sip:*55@master.rufan.at>;tag=T8d4diV1izE2 sip | 606 | master.rufan.at | *55 | master.rufan.at | | dialog | "606 - MRA" <sip:606@176.37.91.15:5060;fs_path=sip%3A10.0.20.70%3A5060%3Bftag%3D3377511430%3Blr%3Don> | 0_596236462@192.168.88.58 | "606 - MRA" < sip:606@master.rufan.at:5060>;tag=3377511430 | SIP/2.0/UDP 212.232.26.232:5060;branch=z9hG4bK5d5a.c87742c8e9417011a9886ed13f0b46ea.0;received=10.0.20.70 | 1457554621 | Yealink SIP-T48G 35.80.0.95 | application/dialog-info+xml | internal | fsw04-0 | 5060 | 10.0.20.70 | 0 | | <sip:*55@master.rufan.at:5060>;tag=ziusfu8L3hlO sip | 609 | master.rufan.at | *55 | master.rufan.at | | dialog | "user" <sip:609@192.168.2.111:11887;transport=TCP;fs_path=sip%3A10.0.20.70%3A5060%3Bftag%3D2961540197%3Blr%3Don> | 1_1073683000@192.168.2.111 | <sip:609@master.rufan.at:5060>;tag=2961540197 | SIP/2.0/UDP 212.232.26.232:5060;branch=z9hG4bK99ff.cd4b0bc5bc0f9d8839eb10da2fd6a4ab.0;i=3;received=10.0.20.70 | 1457555453 | Yealink SIP-T42G 29.80.0.95 | application/dialog-info+xml | internal | fsw04-0 | 5060 | 10.0.20.70 | 6 | | <sip:*55@master.rufan.at:5060
;tag=Pe1EElSL1Wux sip | 602 | master.rufan.at | *55 | master.rufan.at | | dialog | "user" <sip:602@192.168.2.126:5060;fs_path=sip%3A10.0.20.70%3A5060%3Bftag%3D2476761298%3Blr%3Don> | 2_2942107447@192.168.2.126 | < sip:602@master.rufan.at:5060>;tag=2476761298 | SIP/2.0/UDP 212.232.26.232:5060;branch=z9hG4bKe3ca.a3991d3ba90178ee0fedf31576837f6b.0;received=10.0.20.70 | 1457555268 | Yealink SIP-T48G 35.80.0.95 | application/dialog-info+xml | internal | fsw04-0 | 5060 | 10.0.20.70 | 9 | | <sip:*55@master.rufan.at:5060>;tag=JIBAb590T27W (4 rows)
It’s for *55 and domain = master.rufan.at
And the packet actually (Grandstream) SUBSCRIBE sip:*55@master.rufan.at SIP/2.0 Record-Route: <sip:10.0.20.70:5060;ftag=113168616;lr=on> Via: SIP/2.0/UDP 212.232.26.232:5060 ;branch=z9hG4bK93c7.7c2cdb9650455af02d6d10035bf3b61e.0 Via: SIP/2.0/UDP 192.168.88.60:5060 ;received=176.37.91.15;branch=z9hG4bK1367793990;rport=1024 From: <sip:608@master.rufan.at>;tag=113168616 To: <sip:*55@master.rufan.at> Call-ID: 676611784-5060-14@BJC.BGI.II.GA CSeq: 20120 SUBSCRIBE Contact: <sip:608@176.37.91.15:1024> X-Grandstream-PBX: true Max-Forwards: 69 User-Agent: Grandstream GXP2160 1.0.5.33 Expires: 180 Supported: replaces, path, timer, eventlist Event: dialog Accept: application/dialog-info+xml,multipart/related,application/rlmi+xml Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE Content-Length: 0 Path: <sip:212.232.26.232:5060;lr;received=sip:176.37.91.15:1024> X-AUTH-IP: 176.37.91.15
(Yealink) SUBSCRIBE sip:*55@master.rufan.at SIP/2.0 Record-Route: <sip:10.0.20.70:5060;ftag=1995090923;lr=on> Via: SIP/2.0/UDP 212.232.26.232:5060 ;branch=z9hG4bK8da1.d094596a4b93e6c890de68f180007279.0 Via: SIP/2.0/UDP 192.168.88.58:5060 ;rport=5060;received=176.37.91.15;branch=z9hG4bK2944115790 From: "606 - MRA" <sip:606@master.rufan.at:5060>;tag=1995090923 To: <sip:*55@master.rufan.at:5060> Call-ID: 0_1262134978@192.168.88.58 CSeq: 1 SUBSCRIBE Contact: <sip:606@176.37.91.15:5060> Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE Accept: application/dialog-info+xml Max-Forwards: 69 User-Agent: Yealink SIP-T48G 35.80.0.95 Expires: 1800 Event: dialog Content-Length: 0 Path: <sip:212.232.26.232:5060;lr;received=sip:176.37.91.15:5060> X-AUTH-IP: 176.37.91.15
And NOTIFY for Yealink NOTIFY sip:606@176.37.91.15:5060 SIP/2.0 Via: SIP/2.0/UDP 10.0.20.71;rport;branch=z9hG4bKa1XSXZtH9Zrtg Route: <sip:10.0.20.70:5060>;ftag=1995090923;lr=on Record-Route: <sip:10.0.20.70:5060>;ftag=1995090923;lr=on Max-Forwards: 70 From: <sip:*55@master.rufan.at:5060>;tag=3TCMXfAmcte4 To: "606 - MRA" <sip:606@master.rufan.at:5060>;tag=1995090923 Call-ID: 0_1262134978@192.168.88.58 CSeq: 297553154 NOTIFY Contact: <sip:*55@10.0.20.71:5060> User-Agent: FreeSWITCH Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE Supported: path, replaces Event: dialog Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer Subscription-State: active;expires=1800 Content-Type: application/dialog-info+xml Content-Length: 152
<?xml version="1.0"?> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity="sip:*55@master.rufan.at"> </dialog-info>
2016-03-09 21:53 GMT+02:00 Brian West <brian@freeswitch.org>:
What do the entries in the subscription table look like? And can I see the subscribe packets please?
On Wed, Mar 9, 2016 at 1:49 PM, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
No, no IP’s, only domain names. Also, I’ve disabled force-subscription-domain, force-register-domain and force-register-db-domain due to multitenancy
Sorry, forgot to mention FreeSWITCH Version 1.6.6+git~20160111T201612Z~d2d0b3283a~64bit
2016-03-09 21:46 GMT+02:00 Brian West <brian@freeswitch.org>:
Make sure you're not forcing them to the IP because we do so in our vanilla configs to make it easier on everyone. :) Also I can't tell what rev of FreeSWITCH you're on.
On Wed, Mar 9, 2016 at 1:43 PM, Igor Olhovskiy < igorolhovskiy@gmail.com> wrote:
Thanks,
I’m putting a domain in every SUBSCRIBE request I’m passing through. So, I’m 100% sure, there is domains everywhere, no IP’s in R-URI, To or From. Btw, this situation is only when device is not registered, If device is registered and ringing/talking, I’ve got correct XML info’s. Situation is only when I’m trying to subscribe on non-existing device. Or device is unregistered and also, in NOTIFY XML data is like this.
2016-03-09 21:38 GMT+02:00 Brian West <brian@freeswitch.org>:
> The only time I've ever seen this issue is when its a domain/ip > mismatch, and many devices like yealink and the like will subscribe to the > IP even when you put in the domain name in some firmwares. So you'll need > to test, check and verify its doing what you think it is. > > Also out of the box we force the domain to the IP, unless you change > it. Doing anything multi-tenant requires your endpoints to behave properly > too. > > /b > > > On Wed, Mar 9, 2016 at 1:34 PM, Igor Olhovskiy < > igorolhovskiy@gmail.com> wrote: > >> As I tried, these options are really not est with multi-tenant. >> And really, where is device is Subscribed to IP? I don’t see any >> IP’s in R-URI or To/From. >> Record-Route is just for keep packets back and Contact is actual >> device IP and port. >> >> 2016-03-09 21:21 GMT+02:00 Brian West <brian@freeswitch.org>: >> >>> I wish had $1,000.00 for every time I answer this one... :) >>> >>> Ok here is what is the problem, you have the device setup to >>> register to the domain, but its subscribing to the IP ergo domain != ip >>> when it search for any subscriptions. >>> >>> See force-subscription-domain, force-register-domain and >>> force-register-db-domain >>> >>> Those all have to align perfectly for things to behave properly. >>> >>> Thanks, >>> >>> >>> >>> On Wed, Mar 9, 2016 at 12:57 PM, Igor Olhovskiy < >>> igorolhovskiy@gmail.com> wrote: >>> >>>> Hi! >>>> I’m trying to subscribe to Freeswitch with this packet >>>> >>>> SUBSCRIBE sip:*55@master.rufan.at SIP/2.0 >>>> Record-Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> >>>> Via: SIP/2.0/UDP 212.232.26.232:5060 >>>> ;branch=z9hG4bKbb4c.eafe0e8f9ec4b28fb6e4056a64c702ed.0 >>>> Via: SIP/2.0/UDP 192.168.88.59:37600 >>>> ;received=176.37.91.15;branch=z9hG4bK-rzfuku5tc99o;rport=37600 >>>> Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> >>>> From: <sip:607@master.rufan.at>;tag=jz8i26dy0f >>>> To: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF >>>> Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 >>>> CSeq: 610 SUBSCRIBE >>>> Max-Forwards: 69 >>>> User-Agent: snom760/8.7.5.35 >>>> Contact: <sip:607@176.37.91.15:37600;line=ukipitb6>;reg-id=1 >>>> Event: dialog >>>> Accept: application/dialog-info+xml >>>> Expires: 80 >>>> Content-Length: 0 >>>> Path: <sip:212.232.26.232:5060;lr;received=sip:176.37.91.15:37600 >>>> > >>>> X-AUTH-IP: 176.37.91.15 >>>> >>>> Actually I get Accepted (202) >>>> >>>> But with NOTIFY from freeswitch I got this >>>> >>>> NOTIFY sip:607@176.37.91.15:37600;line=ukipitb6 SIP/2.0 >>>> Via: SIP/2.0/UDP 10.0.20.71;rport;branch=z9hG4bKS5ZKag4N6XXFK >>>> Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on >>>> Record-Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on >>>> Max-Forwards: 70 >>>> From: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF >>>> To: <sip:607@master.rufan.at>;tag=jz8i26dy0f >>>> Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 >>>> CSeq: 297327351 NOTIFY >>>> Contact: <sip:*55@10.0.20.71:5060> >>>> User-Agent: FreeSWITCH >>>> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, >>>> REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE >>>> Supported: path, replaces >>>> Event: dialog >>>> Allow-Events: talk, hold, conference, presence, as-feature-event, >>>> dialog, line-seize, call-info, sla, include-session-description, >>>> presence.winfo, message-summary, refer >>>> Subscription-State: active;expires=80 >>>> Content-Type: application/dialog-info+xml >>>> Content-Length: 152 >>>> >>>> <?xml version="1.0"?> >>>> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" >>>> version="8" state="full" entity="sip:*55@master.rufan.at"> >>>> </dialog-info> >>>> >>>> Problem is, XML data is empty, cause actually there is no >>>> registrations for *55 extension. >>>> Why it’s not sending «Unavail» or smth. like this? What is the >>>> correct packet for SUBSCRIBE? Or internal profile? >>>> >>>> Internal profile is >>>> nonce-ttl [60] >>>> auth-calls [true] >>>> inbound-reg-force-matching-username [true] >>>> auth-all-packets [false] >>>> ext-rtp-ip [10.0.20.71] >>>> ext-sip-ip [10.0.20.71] >>>> rtp-timeout-sec [300] >>>> rtp-hold-timeout-sec [1800] >>>> tls-verify-policy [all] >>>> multiple-registrations [contact] >>>> enable-timer [false] >>>> dbname [share_presence] >>>> send-presence-on-register [true] >>>> inbound-codec-negotiation [greedy] >>>> NDLB-force-rport [safe] >>>> challenge-realm [auto_to] >>>> outbound-proxy [10.0.20.70] >>>> track-calls [true] >>>> nat-options-ping [true] >>>> liberal-dtmf [true] >>>> all-reg-options-ping [true] >>>> force-publish-expires [true] >>>> unregister-on-options-fail [true] >>>> user-agent-string [FreeSWITCH] >>>> log-auth-failures [true] >>>> forward-unsolicited-mwi-notify [false] >>>> context [public] >>>> rfc2833-pt [101] >>>> sip-port [5060] >>>> dialplan [XML] >>>> dtmf-duration [2000] >>>> inbound-codec-prefs [G7221@32000h,G7221@16000h >>>> ,G722,PCMU,PCMA,OPUS,SILK] >>>> outbound-codec-prefs [G7221@32000h,G7221@16000h >>>> ,G722,PCMU,PCMA,OPUS,SILK] >>>> rtp-timer-name [soft] >>>> rtp-ip [10.0.20.71] >>>> sip-ip [10.0.20.71] >>>> hold-music [local_stream://default] >>>> apply-nat-acl [nat.auto] >>>> aggressive-nat-detection [true] >>>> apply-inbound-acl [domains] >>>> local-network-acl [localnet.auto] >>>> record-path [/usr/local/freeswitch/recordings] >>>> record-template >>>> [${domain_name}/archive/${strftime(%Y)}/${strftime(%b)}/${strftime(%d)}/${uuid}.${record_ext}] >>>> manage-presence [true] >>>> presence-probe-on-register [true] >>>> manage-shared-appearance [true] >>>> tls [false] >>>> >>>> >>>> -- >>>> Best regards, >>>> Igor >>>> >>>> >>>> _________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting@freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users@lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE: >>>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>>> http://www.freeswitch.org >>>> >>> >>> >>> >>> -- >>> >>> *Brian West* >>> brian@freeswitch.org >>> >>> >>> *Twitter: @FreeSWITCH , @briankwest* >>> http://www.freeswitchbook.com >>> http://www.freeswitchcookbook.com >>> https://www.gofundme.com/freeswitch_ubuntu >>> >>> Got Bugs? Report them here <https://freeswitch.org/jira>! | >>> Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> >>> >>> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) >>> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting@freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users@lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE: >>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >> >> >> >> -- >> Best regards, >> Igor >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting@freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users@lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE: >> http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > > > -- > > *Brian West* > brian@freeswitch.org > > > *Twitter: @FreeSWITCH , @briankwest* > http://www.freeswitchbook.com > http://www.freeswitchcookbook.com > https://www.gofundme.com/freeswitch_ubuntu > > Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: > /r/freeswitch <https://www.reddit.com/r/freeswitch> > > *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) > *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE: > http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org >
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
Gotta start somewhere, if you join IRC or Hipchat we can help. On Wed, Mar 9, 2016 at 2:57 PM, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
Yep, I’m using Kamailio as a proxy, but it just forward REGISTER to Freeswitch, That’s just adds few more lines packet and populates fields with actual external addresses and port data. Debug may be hard for me (I’m not a programmer, actually), but will try,
Thanks.
2016-03-09 22:28 GMT+02:00 Brian West <brian@freeswitch.org>:
You're not registering direct to FreeSWITCH are you, that may be something to investigate,
This is generated in sofia_presence.c, line 2424,
switch_snprintf(key, sizeof(key), "%s%s", user, host);
data = switch_core_hash_find(sh->hash, key);
if (data) {
It would indicate that switch_core_hash_find may not be returning the key, you may need to debug what exactly is being put into that hash to being with.
On Wed, Mar 9, 2016 at 2:05 PM, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
Not sure I can pick correct entity, but from table sip_subscriptions;
proto | sip_user | sip_host | sub_to_user | sub_to_host | presence_hosts | event | contact | call_id | full_from | full_via | expires | user_agent | accept | profile_name | hostname | network_port | network_ip | version | orig_proto | full_to
-------+----------+-----------------+-------------+-----------------+----------------+--------+------------------------------------------------------------------------------------------------------------------+----------------------------------+-----------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+------------+------------------------------+-----------------------------------------------------------------------+--------------+----------+--------------+------------+---------+------------+------------------------------------------------- sip | 608 | master.rufan.at | *55 | master.rufan.at | | dialog | "user" <sip:608@176.37.91.15:1024;fs_path=sip%3A10.0.20.70%3A5060%3Bftag%3D634732653%3Blr%3Don> | 1681459928-5060-12@BJC.BGI.II.GA | < sip:608@master.rufan.at>;tag=634732653 | SIP/2.0/UDP 212.232.26.232:5060;branch=z9hG4bK9eec.47a95c33507bedf392053497d676dd1f.0;received=10.0.20.70 | 1457553810 | Grandstream GXP2160 1.0.5.33 | application/dialog-info+xml, multipart/related, application/rlmi+xml | internal | fsw04-0 | 5060 | 10.0.20.70 | 0 | | <sip:*55@master.rufan.at>;tag=T8d4diV1izE2 sip | 606 | master.rufan.at | *55 | master.rufan.at | | dialog | "606 - MRA" <sip:606@176.37.91.15:5060;fs_path=sip%3A10.0.20.70%3A5060%3Bftag%3D3377511430%3Blr%3Don> | 0_596236462@192.168.88.58 | "606 - MRA" < sip:606@master.rufan.at:5060>;tag=3377511430 | SIP/2.0/UDP 212.232.26.232:5060;branch=z9hG4bK5d5a.c87742c8e9417011a9886ed13f0b46ea.0;received=10.0.20.70 | 1457554621 | Yealink SIP-T48G 35.80.0.95 | application/dialog-info+xml | internal | fsw04-0 | 5060 | 10.0.20.70 | 0 | | <sip:*55@master.rufan.at:5060>;tag=ziusfu8L3hlO sip | 609 | master.rufan.at | *55 | master.rufan.at | | dialog | "user" <sip:609@192.168.2.111:11887;transport=TCP;fs_path=sip%3A10.0.20.70%3A5060%3Bftag%3D2961540197%3Blr%3Don> | 1_1073683000@192.168.2.111 | <sip:609@master.rufan.at:5060>;tag=2961540197 | SIP/2.0/UDP 212.232.26.232:5060;branch=z9hG4bK99ff.cd4b0bc5bc0f9d8839eb10da2fd6a4ab.0;i=3;received=10.0.20.70 | 1457555453 | Yealink SIP-T42G 29.80.0.95 | application/dialog-info+xml | internal | fsw04-0 | 5060 | 10.0.20.70 | 6 | | <sip:* 55@master.rufan.at:5060>;tag=Pe1EElSL1Wux sip | 602 | master.rufan.at | *55 | master.rufan.at | | dialog | "user" <sip:602@192.168.2.126:5060;fs_path=sip%3A10.0.20.70%3A5060%3Bftag%3D2476761298%3Blr%3Don> | 2_2942107447@192.168.2.126 | < sip:602@master.rufan.at:5060>;tag=2476761298 | SIP/2.0/UDP 212.232.26.232:5060;branch=z9hG4bKe3ca.a3991d3ba90178ee0fedf31576837f6b.0;received=10.0.20.70 | 1457555268 | Yealink SIP-T48G 35.80.0.95 | application/dialog-info+xml | internal | fsw04-0 | 5060 | 10.0.20.70 | 9 | | <sip:*55@master.rufan.at:5060>;tag=JIBAb590T27W (4 rows)
It’s for *55 and domain = master.rufan.at
And the packet actually (Grandstream) SUBSCRIBE sip:*55@master.rufan.at SIP/2.0 Record-Route: <sip:10.0.20.70:5060;ftag=113168616;lr=on> Via: SIP/2.0/UDP 212.232.26.232:5060 ;branch=z9hG4bK93c7.7c2cdb9650455af02d6d10035bf3b61e.0 Via: SIP/2.0/UDP 192.168.88.60:5060 ;received=176.37.91.15;branch=z9hG4bK1367793990;rport=1024 From: <sip:608@master.rufan.at>;tag=113168616 To: <sip:*55@master.rufan.at> Call-ID: 676611784-5060-14@BJC.BGI.II.GA CSeq: 20120 SUBSCRIBE Contact: <sip:608@176.37.91.15:1024> X-Grandstream-PBX: true Max-Forwards: 69 User-Agent: Grandstream GXP2160 1.0.5.33 Expires: 180 Supported: replaces, path, timer, eventlist Event: dialog Accept: application/dialog-info+xml,multipart/related,application/rlmi+xml Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE Content-Length: 0 Path: <sip:212.232.26.232:5060;lr;received=sip:176.37.91.15:1024> X-AUTH-IP: 176.37.91.15
(Yealink) SUBSCRIBE sip:*55@master.rufan.at SIP/2.0 Record-Route: <sip:10.0.20.70:5060;ftag=1995090923;lr=on> Via: SIP/2.0/UDP 212.232.26.232:5060 ;branch=z9hG4bK8da1.d094596a4b93e6c890de68f180007279.0 Via: SIP/2.0/UDP 192.168.88.58:5060 ;rport=5060;received=176.37.91.15;branch=z9hG4bK2944115790 From: "606 - MRA" <sip:606@master.rufan.at:5060>;tag=1995090923 To: <sip:*55@master.rufan.at:5060> Call-ID: 0_1262134978@192.168.88.58 CSeq: 1 SUBSCRIBE Contact: <sip:606@176.37.91.15:5060> Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE Accept: application/dialog-info+xml Max-Forwards: 69 User-Agent: Yealink SIP-T48G 35.80.0.95 Expires: 1800 Event: dialog Content-Length: 0 Path: <sip:212.232.26.232:5060;lr;received=sip:176.37.91.15:5060> X-AUTH-IP: 176.37.91.15
And NOTIFY for Yealink NOTIFY sip:606@176.37.91.15:5060 SIP/2.0 Via: SIP/2.0/UDP 10.0.20.71;rport;branch=z9hG4bKa1XSXZtH9Zrtg Route: <sip:10.0.20.70:5060>;ftag=1995090923;lr=on Record-Route: <sip:10.0.20.70:5060>;ftag=1995090923;lr=on Max-Forwards: 70 From: <sip:*55@master.rufan.at:5060>;tag=3TCMXfAmcte4 To: "606 - MRA" <sip:606@master.rufan.at:5060>;tag=1995090923 Call-ID: 0_1262134978@192.168.88.58 CSeq: 297553154 NOTIFY Contact: <sip:*55@10.0.20.71:5060> User-Agent: FreeSWITCH Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE Supported: path, replaces Event: dialog Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer Subscription-State: active;expires=1800 Content-Type: application/dialog-info+xml Content-Length: 152
<?xml version="1.0"?> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity="sip:*55@master.rufan.at"> </dialog-info>
2016-03-09 21:53 GMT+02:00 Brian West <brian@freeswitch.org>:
What do the entries in the subscription table look like? And can I see the subscribe packets please?
On Wed, Mar 9, 2016 at 1:49 PM, Igor Olhovskiy <igorolhovskiy@gmail.com
wrote:
No, no IP’s, only domain names. Also, I’ve disabled force-subscription-domain, force-register-domain and force-register-db-domain due to multitenancy
Sorry, forgot to mention FreeSWITCH Version 1.6.6+git~20160111T201612Z~d2d0b3283a~64bit
2016-03-09 21:46 GMT+02:00 Brian West <brian@freeswitch.org>:
Make sure you're not forcing them to the IP because we do so in our vanilla configs to make it easier on everyone. :) Also I can't tell what rev of FreeSWITCH you're on.
On Wed, Mar 9, 2016 at 1:43 PM, Igor Olhovskiy < igorolhovskiy@gmail.com> wrote:
> Thanks, > > I’m putting a domain in every SUBSCRIBE request I’m passing through. > So, I’m 100% sure, there is domains everywhere, no IP’s in R-URI, To or > From. > Btw, this situation is only when device is not registered, If device > is registered and ringing/talking, I’ve got correct XML info’s. > Situation is only when I’m trying to subscribe on non-existing > device. Or device is unregistered and also, in NOTIFY XML data is like this. > > 2016-03-09 21:38 GMT+02:00 Brian West <brian@freeswitch.org>: > >> The only time I've ever seen this issue is when its a domain/ip >> mismatch, and many devices like yealink and the like will subscribe to the >> IP even when you put in the domain name in some firmwares. So you'll need >> to test, check and verify its doing what you think it is. >> >> Also out of the box we force the domain to the IP, unless you >> change it. Doing anything multi-tenant requires your endpoints to behave >> properly too. >> >> /b >> >> >> On Wed, Mar 9, 2016 at 1:34 PM, Igor Olhovskiy < >> igorolhovskiy@gmail.com> wrote: >> >>> As I tried, these options are really not est with multi-tenant. >>> And really, where is device is Subscribed to IP? I don’t see any >>> IP’s in R-URI or To/From. >>> Record-Route is just for keep packets back and Contact is actual >>> device IP and port. >>> >>> 2016-03-09 21:21 GMT+02:00 Brian West <brian@freeswitch.org>: >>> >>>> I wish had $1,000.00 for every time I answer this one... :) >>>> >>>> Ok here is what is the problem, you have the device setup to >>>> register to the domain, but its subscribing to the IP ergo domain != ip >>>> when it search for any subscriptions. >>>> >>>> See force-subscription-domain, force-register-domain and >>>> force-register-db-domain >>>> >>>> Those all have to align perfectly for things to behave properly. >>>> >>>> Thanks, >>>> >>>> >>>> >>>> On Wed, Mar 9, 2016 at 12:57 PM, Igor Olhovskiy < >>>> igorolhovskiy@gmail.com> wrote: >>>> >>>>> Hi! >>>>> I’m trying to subscribe to Freeswitch with this packet >>>>> >>>>> SUBSCRIBE sip:*55@master.rufan.at SIP/2.0 >>>>> Record-Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> >>>>> Via: SIP/2.0/UDP 212.232.26.232:5060 >>>>> ;branch=z9hG4bKbb4c.eafe0e8f9ec4b28fb6e4056a64c702ed.0 >>>>> Via: SIP/2.0/UDP 192.168.88.59:37600 >>>>> ;received=176.37.91.15;branch=z9hG4bK-rzfuku5tc99o;rport=37600 >>>>> Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> >>>>> From: <sip:607@master.rufan.at>;tag=jz8i26dy0f >>>>> To: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF >>>>> Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 >>>>> CSeq: 610 SUBSCRIBE >>>>> Max-Forwards: 69 >>>>> User-Agent: snom760/8.7.5.35 >>>>> Contact: <sip:607@176.37.91.15:37600;line=ukipitb6>;reg-id=1 >>>>> Event: dialog >>>>> Accept: application/dialog-info+xml >>>>> Expires: 80 >>>>> Content-Length: 0 >>>>> Path: <sip:212.232.26.232:5060;lr;received=sip: >>>>> 176.37.91.15:37600> >>>>> X-AUTH-IP: 176.37.91.15 >>>>> >>>>> Actually I get Accepted (202) >>>>> >>>>> But with NOTIFY from freeswitch I got this >>>>> >>>>> NOTIFY sip:607@176.37.91.15:37600;line=ukipitb6 SIP/2.0 >>>>> Via: SIP/2.0/UDP 10.0.20.71;rport;branch=z9hG4bKS5ZKag4N6XXFK >>>>> Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on >>>>> Record-Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on >>>>> Max-Forwards: 70 >>>>> From: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF >>>>> To: <sip:607@master.rufan.at>;tag=jz8i26dy0f >>>>> Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 >>>>> CSeq: 297327351 NOTIFY >>>>> Contact: <sip:*55@10.0.20.71:5060> >>>>> User-Agent: FreeSWITCH >>>>> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, >>>>> REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE >>>>> Supported: path, replaces >>>>> Event: dialog >>>>> Allow-Events: talk, hold, conference, presence, >>>>> as-feature-event, dialog, line-seize, call-info, sla, >>>>> include-session-description, presence.winfo, message-summary, refer >>>>> Subscription-State: active;expires=80 >>>>> Content-Type: application/dialog-info+xml >>>>> Content-Length: 152 >>>>> >>>>> <?xml version="1.0"?> >>>>> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" >>>>> version="8" state="full" entity="sip:*55@master.rufan.at"> >>>>> </dialog-info> >>>>> >>>>> Problem is, XML data is empty, cause actually there is no >>>>> registrations for *55 extension. >>>>> Why it’s not sending «Unavail» or smth. like this? What is the >>>>> correct packet for SUBSCRIBE? Or internal profile? >>>>> >>>>> Internal profile is >>>>> nonce-ttl [60] >>>>> auth-calls [true] >>>>> inbound-reg-force-matching-username [true] >>>>> auth-all-packets [false] >>>>> ext-rtp-ip [10.0.20.71] >>>>> ext-sip-ip [10.0.20.71] >>>>> rtp-timeout-sec [300] >>>>> rtp-hold-timeout-sec [1800] >>>>> tls-verify-policy [all] >>>>> multiple-registrations [contact] >>>>> enable-timer [false] >>>>> dbname [share_presence] >>>>> send-presence-on-register [true] >>>>> inbound-codec-negotiation [greedy] >>>>> NDLB-force-rport [safe] >>>>> challenge-realm [auto_to] >>>>> outbound-proxy [10.0.20.70] >>>>> track-calls [true] >>>>> nat-options-ping [true] >>>>> liberal-dtmf [true] >>>>> all-reg-options-ping [true] >>>>> force-publish-expires [true] >>>>> unregister-on-options-fail [true] >>>>> user-agent-string [FreeSWITCH] >>>>> log-auth-failures [true] >>>>> forward-unsolicited-mwi-notify [false] >>>>> context [public] >>>>> rfc2833-pt [101] >>>>> sip-port [5060] >>>>> dialplan [XML] >>>>> dtmf-duration [2000] >>>>> inbound-codec-prefs [G7221@32000h,G7221@16000h >>>>> ,G722,PCMU,PCMA,OPUS,SILK] >>>>> outbound-codec-prefs [G7221@32000h,G7221@16000h >>>>> ,G722,PCMU,PCMA,OPUS,SILK] >>>>> rtp-timer-name [soft] >>>>> rtp-ip [10.0.20.71] >>>>> sip-ip [10.0.20.71] >>>>> hold-music [local_stream://default] >>>>> apply-nat-acl [nat.auto] >>>>> aggressive-nat-detection [true] >>>>> apply-inbound-acl [domains] >>>>> local-network-acl [localnet.auto] >>>>> record-path [/usr/local/freeswitch/recordings] >>>>> record-template >>>>> [${domain_name}/archive/${strftime(%Y)}/${strftime(%b)}/${strftime(%d)}/${uuid}.${record_ext}] >>>>> manage-presence [true] >>>>> presence-probe-on-register [true] >>>>> manage-shared-appearance [true] >>>>> tls [false] >>>>> >>>>> >>>>> -- >>>>> Best regards, >>>>> Igor >>>>> >>>>> >>>>> _________________________________________________________________________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting@freeswitch.org >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users@lists.freeswitch.org >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE: >>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>> http://www.freeswitch.org >>>>> >>>> >>>> >>>> >>>> -- >>>> >>>> *Brian West* >>>> brian@freeswitch.org >>>> >>>> >>>> *Twitter: @FreeSWITCH , @briankwest* >>>> http://www.freeswitchbook.com >>>> http://www.freeswitchcookbook.com >>>> https://www.gofundme.com/freeswitch_ubuntu >>>> >>>> Got Bugs? Report them here <https://freeswitch.org/jira>! | >>>> Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> >>>> >>>> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) >>>> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest >>>> >>>> >>>> _________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting@freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users@lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE: >>>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>>> http://www.freeswitch.org >>>> >>> >>> >>> >>> -- >>> Best regards, >>> Igor >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting@freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users@lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE: >>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >> >> >> >> -- >> >> *Brian West* >> brian@freeswitch.org >> >> >> *Twitter: @FreeSWITCH , @briankwest* >> http://www.freeswitchbook.com >> http://www.freeswitchcookbook.com >> https://www.gofundme.com/freeswitch_ubuntu >> >> Got Bugs? Report them here <https://freeswitch.org/jira>! | >> Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> >> >> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) >> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting@freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users@lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE: >> http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > > > -- > Best regards, > Igor > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE: > http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org >
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
Ok, than I’ll move on IRC. Thanks! 2016-03-09 23:16 GMT+02:00 Brian West <brian@freeswitch.org>:
Gotta start somewhere, if you join IRC or Hipchat we can help.
On Wed, Mar 9, 2016 at 2:57 PM, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
Yep, I’m using Kamailio as a proxy, but it just forward REGISTER to Freeswitch, That’s just adds few more lines packet and populates fields with actual external addresses and port data. Debug may be hard for me (I’m not a programmer, actually), but will try,
Thanks.
2016-03-09 22:28 GMT+02:00 Brian West <brian@freeswitch.org>:
You're not registering direct to FreeSWITCH are you, that may be something to investigate,
This is generated in sofia_presence.c, line 2424,
switch_snprintf(key, sizeof(key), "%s%s", user, host);
data = switch_core_hash_find(sh->hash, key);
if (data) {
It would indicate that switch_core_hash_find may not be returning the key, you may need to debug what exactly is being put into that hash to being with.
On Wed, Mar 9, 2016 at 2:05 PM, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
Not sure I can pick correct entity, but from table sip_subscriptions;
proto | sip_user | sip_host | sub_to_user | sub_to_host | presence_hosts | event | contact | call_id | full_from | full_via | expires | user_agent | accept | profile_name | hostname | network_port | network_ip | version | orig_proto | full_to
-------+----------+-----------------+-------------+-----------------+----------------+--------+------------------------------------------------------------------------------------------------------------------+----------------------------------+-----------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+------------+------------------------------+-----------------------------------------------------------------------+--------------+----------+--------------+------------+---------+------------+------------------------------------------------- sip | 608 | master.rufan.at | *55 | master.rufan.at | | dialog | "user" <sip:608@176.37.91.15:1024;fs_path=sip%3A10.0.20.70%3A5060%3Bftag%3D634732653%3Blr%3Don> | 1681459928-5060-12@BJC.BGI.II.GA | < sip:608@master.rufan.at>;tag=634732653 | SIP/2.0/UDP 212.232.26.232:5060;branch=z9hG4bK9eec.47a95c33507bedf392053497d676dd1f.0;received=10.0.20.70 | 1457553810 | Grandstream GXP2160 1.0.5.33 | application/dialog-info+xml, multipart/related, application/rlmi+xml | internal | fsw04-0 | 5060 | 10.0.20.70 | 0 | | <sip:*55@master.rufan.at>;tag=T8d4diV1izE2 sip | 606 | master.rufan.at | *55 | master.rufan.at | | dialog | "606 - MRA" <sip:606@176.37.91.15:5060;fs_path=sip%3A10.0.20.70%3A5060%3Bftag%3D3377511430%3Blr%3Don> | 0_596236462@192.168.88.58 | "606 - MRA" < sip:606@master.rufan.at:5060>;tag=3377511430 | SIP/2.0/UDP 212.232.26.232:5060;branch=z9hG4bK5d5a.c87742c8e9417011a9886ed13f0b46ea.0;received=10.0.20.70 | 1457554621 | Yealink SIP-T48G 35.80.0.95 | application/dialog-info+xml | internal | fsw04-0 | 5060 | 10.0.20.70 | 0 | | <sip:*55@master.rufan.at:5060>;tag=ziusfu8L3hlO sip | 609 | master.rufan.at | *55 | master.rufan.at | | dialog | "user" <sip:609@192.168.2.111:11887;transport=TCP;fs_path=sip%3A10.0.20.70%3A5060%3Bftag%3D2961540197%3Blr%3Don> | 1_1073683000@192.168.2.111 | <sip:609@master.rufan.at:5060>;tag=2961540197 | SIP/2.0/UDP 212.232.26.232:5060;branch=z9hG4bK99ff.cd4b0bc5bc0f9d8839eb10da2fd6a4ab.0;i=3;received=10.0.20.70 | 1457555453 | Yealink SIP-T42G 29.80.0.95 | application/dialog-info+xml | internal | fsw04-0 | 5060 | 10.0.20.70 | 6 | | <sip:* 55@master.rufan.at:5060>;tag=Pe1EElSL1Wux sip | 602 | master.rufan.at | *55 | master.rufan.at | | dialog | "user" <sip:602@192.168.2.126:5060;fs_path=sip%3A10.0.20.70%3A5060%3Bftag%3D2476761298%3Blr%3Don> | 2_2942107447@192.168.2.126 | < sip:602@master.rufan.at:5060>;tag=2476761298 | SIP/2.0/UDP 212.232.26.232:5060;branch=z9hG4bKe3ca.a3991d3ba90178ee0fedf31576837f6b.0;received=10.0.20.70 | 1457555268 | Yealink SIP-T48G 35.80.0.95 | application/dialog-info+xml | internal | fsw04-0 | 5060 | 10.0.20.70 | 9 | | <sip:*55@master.rufan.at:5060>;tag=JIBAb590T27W (4 rows)
It’s for *55 and domain = master.rufan.at
And the packet actually (Grandstream) SUBSCRIBE sip:*55@master.rufan.at SIP/2.0 Record-Route: <sip:10.0.20.70:5060;ftag=113168616;lr=on> Via: SIP/2.0/UDP 212.232.26.232:5060 ;branch=z9hG4bK93c7.7c2cdb9650455af02d6d10035bf3b61e.0 Via: SIP/2.0/UDP 192.168.88.60:5060 ;received=176.37.91.15;branch=z9hG4bK1367793990;rport=1024 From: <sip:608@master.rufan.at>;tag=113168616 To: <sip:*55@master.rufan.at> Call-ID: 676611784-5060-14@BJC.BGI.II.GA CSeq: 20120 SUBSCRIBE Contact: <sip:608@176.37.91.15:1024> X-Grandstream-PBX: true Max-Forwards: 69 User-Agent: Grandstream GXP2160 1.0.5.33 Expires: 180 Supported: replaces, path, timer, eventlist Event: dialog Accept: application/dialog-info+xml,multipart/related,application/rlmi+xml Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE Content-Length: 0 Path: <sip:212.232.26.232:5060;lr;received=sip:176.37.91.15:1024> X-AUTH-IP: 176.37.91.15
(Yealink) SUBSCRIBE sip:*55@master.rufan.at SIP/2.0 Record-Route: <sip:10.0.20.70:5060;ftag=1995090923;lr=on> Via: SIP/2.0/UDP 212.232.26.232:5060 ;branch=z9hG4bK8da1.d094596a4b93e6c890de68f180007279.0 Via: SIP/2.0/UDP 192.168.88.58:5060 ;rport=5060;received=176.37.91.15;branch=z9hG4bK2944115790 From: "606 - MRA" <sip:606@master.rufan.at:5060>;tag=1995090923 To: <sip:*55@master.rufan.at:5060> Call-ID: 0_1262134978@192.168.88.58 CSeq: 1 SUBSCRIBE Contact: <sip:606@176.37.91.15:5060> Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE Accept: application/dialog-info+xml Max-Forwards: 69 User-Agent: Yealink SIP-T48G 35.80.0.95 Expires: 1800 Event: dialog Content-Length: 0 Path: <sip:212.232.26.232:5060;lr;received=sip:176.37.91.15:5060> X-AUTH-IP: 176.37.91.15
And NOTIFY for Yealink NOTIFY sip:606@176.37.91.15:5060 SIP/2.0 Via: SIP/2.0/UDP 10.0.20.71;rport;branch=z9hG4bKa1XSXZtH9Zrtg Route: <sip:10.0.20.70:5060>;ftag=1995090923;lr=on Record-Route: <sip:10.0.20.70:5060>;ftag=1995090923;lr=on Max-Forwards: 70 From: <sip:*55@master.rufan.at:5060>;tag=3TCMXfAmcte4 To: "606 - MRA" <sip:606@master.rufan.at:5060>;tag=1995090923 Call-ID: 0_1262134978@192.168.88.58 CSeq: 297553154 NOTIFY Contact: <sip:*55@10.0.20.71:5060> User-Agent: FreeSWITCH Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE Supported: path, replaces Event: dialog Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer Subscription-State: active;expires=1800 Content-Type: application/dialog-info+xml Content-Length: 152
<?xml version="1.0"?> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity="sip:*55@master.rufan.at"> </dialog-info>
2016-03-09 21:53 GMT+02:00 Brian West <brian@freeswitch.org>:
What do the entries in the subscription table look like? And can I see the subscribe packets please?
On Wed, Mar 9, 2016 at 1:49 PM, Igor Olhovskiy < igorolhovskiy@gmail.com> wrote:
No, no IP’s, only domain names. Also, I’ve disabled force-subscription-domain, force-register-domain and force-register-db-domain due to multitenancy
Sorry, forgot to mention FreeSWITCH Version 1.6.6+git~20160111T201612Z~d2d0b3283a~64bit
2016-03-09 21:46 GMT+02:00 Brian West <brian@freeswitch.org>:
> Make sure you're not forcing them to the IP because we do so in our > vanilla configs to make it easier on everyone. :) Also I can't tell what > rev of FreeSWITCH you're on. > > On Wed, Mar 9, 2016 at 1:43 PM, Igor Olhovskiy < > igorolhovskiy@gmail.com> wrote: > >> Thanks, >> >> I’m putting a domain in every SUBSCRIBE request I’m passing >> through. So, I’m 100% sure, there is domains everywhere, no IP’s in R-URI, >> To or From. >> Btw, this situation is only when device is not registered, If >> device is registered and ringing/talking, I’ve got correct XML info’s. >> Situation is only when I’m trying to subscribe on non-existing >> device. Or device is unregistered and also, in NOTIFY XML data is like this. >> >> 2016-03-09 21:38 GMT+02:00 Brian West <brian@freeswitch.org>: >> >>> The only time I've ever seen this issue is when its a domain/ip >>> mismatch, and many devices like yealink and the like will subscribe to the >>> IP even when you put in the domain name in some firmwares. So you'll need >>> to test, check and verify its doing what you think it is. >>> >>> Also out of the box we force the domain to the IP, unless you >>> change it. Doing anything multi-tenant requires your endpoints to behave >>> properly too. >>> >>> /b >>> >>> >>> On Wed, Mar 9, 2016 at 1:34 PM, Igor Olhovskiy < >>> igorolhovskiy@gmail.com> wrote: >>> >>>> As I tried, these options are really not est with multi-tenant. >>>> And really, where is device is Subscribed to IP? I don’t see any >>>> IP’s in R-URI or To/From. >>>> Record-Route is just for keep packets back and Contact is actual >>>> device IP and port. >>>> >>>> 2016-03-09 21:21 GMT+02:00 Brian West <brian@freeswitch.org>: >>>> >>>>> I wish had $1,000.00 for every time I answer this one... :) >>>>> >>>>> Ok here is what is the problem, you have the device setup to >>>>> register to the domain, but its subscribing to the IP ergo domain != ip >>>>> when it search for any subscriptions. >>>>> >>>>> See force-subscription-domain, force-register-domain and >>>>> force-register-db-domain >>>>> >>>>> Those all have to align perfectly for things to behave properly. >>>>> >>>>> Thanks, >>>>> >>>>> >>>>> >>>>> On Wed, Mar 9, 2016 at 12:57 PM, Igor Olhovskiy < >>>>> igorolhovskiy@gmail.com> wrote: >>>>> >>>>>> Hi! >>>>>> I’m trying to subscribe to Freeswitch with this packet >>>>>> >>>>>> SUBSCRIBE sip:*55@master.rufan.at SIP/2.0 >>>>>> Record-Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> >>>>>> Via: SIP/2.0/UDP 212.232.26.232:5060 >>>>>> ;branch=z9hG4bKbb4c.eafe0e8f9ec4b28fb6e4056a64c702ed.0 >>>>>> Via: SIP/2.0/UDP 192.168.88.59:37600 >>>>>> ;received=176.37.91.15;branch=z9hG4bK-rzfuku5tc99o;rport=37600 >>>>>> Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> >>>>>> From: <sip:607@master.rufan.at>;tag=jz8i26dy0f >>>>>> To: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF >>>>>> Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 >>>>>> CSeq: 610 SUBSCRIBE >>>>>> Max-Forwards: 69 >>>>>> User-Agent: snom760/8.7.5.35 >>>>>> Contact: <sip:607@176.37.91.15:37600;line=ukipitb6>;reg-id=1 >>>>>> Event: dialog >>>>>> Accept: application/dialog-info+xml >>>>>> Expires: 80 >>>>>> Content-Length: 0 >>>>>> Path: <sip:212.232.26.232:5060;lr;received=sip: >>>>>> 176.37.91.15:37600> >>>>>> X-AUTH-IP: 176.37.91.15 >>>>>> >>>>>> Actually I get Accepted (202) >>>>>> >>>>>> But with NOTIFY from freeswitch I got this >>>>>> >>>>>> NOTIFY sip:607@176.37.91.15:37600;line=ukipitb6 SIP/2.0 >>>>>> Via: SIP/2.0/UDP 10.0.20.71;rport;branch=z9hG4bKS5ZKag4N6XXFK >>>>>> Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on >>>>>> Record-Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on >>>>>> Max-Forwards: 70 >>>>>> From: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF >>>>>> To: <sip:607@master.rufan.at>;tag=jz8i26dy0f >>>>>> Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 >>>>>> CSeq: 297327351 NOTIFY >>>>>> Contact: <sip:*55@10.0.20.71:5060> >>>>>> User-Agent: FreeSWITCH >>>>>> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, >>>>>> UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE >>>>>> Supported: path, replaces >>>>>> Event: dialog >>>>>> Allow-Events: talk, hold, conference, presence, >>>>>> as-feature-event, dialog, line-seize, call-info, sla, >>>>>> include-session-description, presence.winfo, message-summary, refer >>>>>> Subscription-State: active;expires=80 >>>>>> Content-Type: application/dialog-info+xml >>>>>> Content-Length: 152 >>>>>> >>>>>> <?xml version="1.0"?> >>>>>> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" >>>>>> version="8" state="full" entity="sip:*55@master.rufan.at"> >>>>>> </dialog-info> >>>>>> >>>>>> Problem is, XML data is empty, cause actually there is no >>>>>> registrations for *55 extension. >>>>>> Why it’s not sending «Unavail» or smth. like this? What is the >>>>>> correct packet for SUBSCRIBE? Or internal profile? >>>>>> >>>>>> Internal profile is >>>>>> nonce-ttl [60] >>>>>> auth-calls [true] >>>>>> inbound-reg-force-matching-username [true] >>>>>> auth-all-packets [false] >>>>>> ext-rtp-ip [10.0.20.71] >>>>>> ext-sip-ip [10.0.20.71] >>>>>> rtp-timeout-sec [300] >>>>>> rtp-hold-timeout-sec [1800] >>>>>> tls-verify-policy [all] >>>>>> multiple-registrations [contact] >>>>>> enable-timer [false] >>>>>> dbname [share_presence] >>>>>> send-presence-on-register [true] >>>>>> inbound-codec-negotiation [greedy] >>>>>> NDLB-force-rport [safe] >>>>>> challenge-realm [auto_to] >>>>>> outbound-proxy [10.0.20.70] >>>>>> track-calls [true] >>>>>> nat-options-ping [true] >>>>>> liberal-dtmf [true] >>>>>> all-reg-options-ping [true] >>>>>> force-publish-expires [true] >>>>>> unregister-on-options-fail [true] >>>>>> user-agent-string [FreeSWITCH] >>>>>> log-auth-failures [true] >>>>>> forward-unsolicited-mwi-notify [false] >>>>>> context [public] >>>>>> rfc2833-pt [101] >>>>>> sip-port [5060] >>>>>> dialplan [XML] >>>>>> dtmf-duration [2000] >>>>>> inbound-codec-prefs [G7221@32000h,G7221@16000h >>>>>> ,G722,PCMU,PCMA,OPUS,SILK] >>>>>> outbound-codec-prefs [G7221@32000h,G7221@16000h >>>>>> ,G722,PCMU,PCMA,OPUS,SILK] >>>>>> rtp-timer-name [soft] >>>>>> rtp-ip [10.0.20.71] >>>>>> sip-ip [10.0.20.71] >>>>>> hold-music [local_stream://default] >>>>>> apply-nat-acl [nat.auto] >>>>>> aggressive-nat-detection [true] >>>>>> apply-inbound-acl [domains] >>>>>> local-network-acl [localnet.auto] >>>>>> record-path [/usr/local/freeswitch/recordings] >>>>>> record-template >>>>>> [${domain_name}/archive/${strftime(%Y)}/${strftime(%b)}/${strftime(%d)}/${uuid}.${record_ext}] >>>>>> manage-presence [true] >>>>>> presence-probe-on-register [true] >>>>>> manage-shared-appearance [true] >>>>>> tls [false] >>>>>> >>>>>> >>>>>> -- >>>>>> Best regards, >>>>>> Igor >>>>>> >>>>>> >>>>>> _________________________________________________________________________ >>>>>> Professional FreeSWITCH Consulting Services: >>>>>> consulting@freeswitch.org >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://confluence.freeswitch.org >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-users mailing list >>>>>> FreeSWITCH-users@lists.freeswitch.org >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> UNSUBSCRIBE: >>>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>>> http://www.freeswitch.org >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> >>>>> *Brian West* >>>>> brian@freeswitch.org >>>>> >>>>> >>>>> *Twitter: @FreeSWITCH , @briankwest* >>>>> http://www.freeswitchbook.com >>>>> http://www.freeswitchcookbook.com >>>>> https://www.gofundme.com/freeswitch_ubuntu >>>>> >>>>> Got Bugs? Report them here <https://freeswitch.org/jira>! | >>>>> Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> >>>>> >>>>> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) >>>>> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest >>>>> >>>>> >>>>> _________________________________________________________________________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting@freeswitch.org >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users@lists.freeswitch.org >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE: >>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>> http://www.freeswitch.org >>>>> >>>> >>>> >>>> >>>> -- >>>> Best regards, >>>> Igor >>>> >>>> >>>> _________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting@freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users@lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE: >>>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>>> http://www.freeswitch.org >>>> >>> >>> >>> >>> -- >>> >>> *Brian West* >>> brian@freeswitch.org >>> >>> >>> *Twitter: @FreeSWITCH , @briankwest* >>> http://www.freeswitchbook.com >>> http://www.freeswitchcookbook.com >>> https://www.gofundme.com/freeswitch_ubuntu >>> >>> Got Bugs? Report them here <https://freeswitch.org/jira>! | >>> Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> >>> >>> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) >>> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting@freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users@lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE: >>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >> >> >> >> -- >> Best regards, >> Igor >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting@freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users@lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE: >> http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > > > -- > > *Brian West* > brian@freeswitch.org > > > *Twitter: @FreeSWITCH , @briankwest* > http://www.freeswitchbook.com > http://www.freeswitchcookbook.com > https://www.gofundme.com/freeswitch_ubuntu > > Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: > /r/freeswitch <https://www.reddit.com/r/freeswitch> > > *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) > *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE: > http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org >
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
Hi! After some investigations, I’ve find out, that problem with empty answer is SUBSCRIBE packet «Event:» field is «dialog». I think, it should be «presence». Only after it, FS starts to append correct XML info to NOTIFY. But actual problem: FS responds only with pidf+xml, while phone requests Accept: application/dialog-info+xml,multipart/related,application/rlmi+xml More info I’ve added to https://freeswitch.org/jira/browse/FS-8968 PS; If any commercial support options are possible for this issue - I’m ready :) 2016-03-09 23:24 GMT+02:00 Igor Olhovskiy <igorolhovskiy@gmail.com>:
Ok, than I’ll move on IRC. Thanks!
2016-03-09 23:16 GMT+02:00 Brian West <brian@freeswitch.org>:
Gotta start somewhere, if you join IRC or Hipchat we can help.
On Wed, Mar 9, 2016 at 2:57 PM, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
Yep, I’m using Kamailio as a proxy, but it just forward REGISTER to Freeswitch, That’s just adds few more lines packet and populates fields with actual external addresses and port data. Debug may be hard for me (I’m not a programmer, actually), but will try,
Thanks.
2016-03-09 22:28 GMT+02:00 Brian West <brian@freeswitch.org>:
You're not registering direct to FreeSWITCH are you, that may be something to investigate,
This is generated in sofia_presence.c, line 2424,
switch_snprintf(key, sizeof(key), "%s%s", user, host);
data = switch_core_hash_find(sh->hash, key);
if (data) {
It would indicate that switch_core_hash_find may not be returning the key, you may need to debug what exactly is being put into that hash to being with.
On Wed, Mar 9, 2016 at 2:05 PM, Igor Olhovskiy <igorolhovskiy@gmail.com
wrote:
Not sure I can pick correct entity, but from table sip_subscriptions;
proto | sip_user | sip_host | sub_to_user | sub_to_host | presence_hosts | event | contact | call_id | full_from | full_via | expires | user_agent | accept | profile_name | hostname | network_port | network_ip | version | orig_proto | full_to
-------+----------+-----------------+-------------+-----------------+----------------+--------+------------------------------------------------------------------------------------------------------------------+----------------------------------+-----------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+------------+------------------------------+-----------------------------------------------------------------------+--------------+----------+--------------+------------+---------+------------+------------------------------------------------- sip | 608 | master.rufan.at | *55 | master.rufan.at | | dialog | "user" <sip:608@176.37.91.15:1024;fs_path=sip%3A10.0.20.70%3A5060%3Bftag%3D634732653%3Blr%3Don> | 1681459928-5060-12@BJC.BGI.II.GA | < sip:608@master.rufan.at>;tag=634732653 | SIP/2.0/UDP 212.232.26.232:5060;branch=z9hG4bK9eec.47a95c33507bedf392053497d676dd1f.0;received=10.0.20.70 | 1457553810 | Grandstream GXP2160 1.0.5.33 | application/dialog-info+xml, multipart/related, application/rlmi+xml | internal | fsw04-0 | 5060 | 10.0.20.70 | 0 | | <sip:*55@master.rufan.at>;tag=T8d4diV1izE2 sip | 606 | master.rufan.at | *55 | master.rufan.at | | dialog | "606 - MRA" <sip:606@176.37.91.15:5060;fs_path=sip%3A10.0.20.70%3A5060%3Bftag%3D3377511430%3Blr%3Don> | 0_596236462@192.168.88.58 | "606 - MRA" < sip:606@master.rufan.at:5060>;tag=3377511430 | SIP/2.0/UDP 212.232.26.232:5060;branch=z9hG4bK5d5a.c87742c8e9417011a9886ed13f0b46ea.0;received=10.0.20.70 | 1457554621 | Yealink SIP-T48G 35.80.0.95 | application/dialog-info+xml | internal | fsw04-0 | 5060 | 10.0.20.70 | 0 | | <sip:*55@master.rufan.at:5060>;tag=ziusfu8L3hlO sip | 609 | master.rufan.at | *55 | master.rufan.at | | dialog | "user" <sip:609@192.168.2.111:11887;transport=TCP;fs_path=sip%3A10.0.20.70%3A5060%3Bftag%3D2961540197%3Blr%3Don> | 1_1073683000@192.168.2.111 | <sip:609@master.rufan.at:5060>;tag=2961540197 | SIP/2.0/UDP 212.232.26.232:5060;branch=z9hG4bK99ff.cd4b0bc5bc0f9d8839eb10da2fd6a4ab.0;i=3;received=10.0.20.70 | 1457555453 | Yealink SIP-T42G 29.80.0.95 | application/dialog-info+xml | internal | fsw04-0 | 5060 | 10.0.20.70 | 6 | | <sip:* 55@master.rufan.at:5060>;tag=Pe1EElSL1Wux sip | 602 | master.rufan.at | *55 | master.rufan.at | | dialog | "user" <sip:602@192.168.2.126:5060;fs_path=sip%3A10.0.20.70%3A5060%3Bftag%3D2476761298%3Blr%3Don> | 2_2942107447@192.168.2.126 | < sip:602@master.rufan.at:5060>;tag=2476761298 | SIP/2.0/UDP 212.232.26.232:5060;branch=z9hG4bKe3ca.a3991d3ba90178ee0fedf31576837f6b.0;received=10.0.20.70 | 1457555268 | Yealink SIP-T48G 35.80.0.95 | application/dialog-info+xml | internal | fsw04-0 | 5060 | 10.0.20.70 | 9 | | <sip:*55@master.rufan.at:5060>;tag=JIBAb590T27W (4 rows)
It’s for *55 and domain = master.rufan.at
And the packet actually (Grandstream) SUBSCRIBE sip:*55@master.rufan.at SIP/2.0 Record-Route: <sip:10.0.20.70:5060;ftag=113168616;lr=on> Via: SIP/2.0/UDP 212.232.26.232:5060 ;branch=z9hG4bK93c7.7c2cdb9650455af02d6d10035bf3b61e.0 Via: SIP/2.0/UDP 192.168.88.60:5060 ;received=176.37.91.15;branch=z9hG4bK1367793990;rport=1024 From: <sip:608@master.rufan.at>;tag=113168616 To: <sip:*55@master.rufan.at> Call-ID: 676611784-5060-14@BJC.BGI.II.GA CSeq: 20120 SUBSCRIBE Contact: <sip:608@176.37.91.15:1024> X-Grandstream-PBX: true Max-Forwards: 69 User-Agent: Grandstream GXP2160 1.0.5.33 Expires: 180 Supported: replaces, path, timer, eventlist Event: dialog Accept: application/dialog-info+xml,multipart/related,application/rlmi+xml Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE Content-Length: 0 Path: <sip:212.232.26.232:5060;lr;received=sip:176.37.91.15:1024> X-AUTH-IP: 176.37.91.15
(Yealink) SUBSCRIBE sip:*55@master.rufan.at SIP/2.0 Record-Route: <sip:10.0.20.70:5060;ftag=1995090923;lr=on> Via: SIP/2.0/UDP 212.232.26.232:5060 ;branch=z9hG4bK8da1.d094596a4b93e6c890de68f180007279.0 Via: SIP/2.0/UDP 192.168.88.58:5060 ;rport=5060;received=176.37.91.15;branch=z9hG4bK2944115790 From: "606 - MRA" <sip:606@master.rufan.at:5060>;tag=1995090923 To: <sip:*55@master.rufan.at:5060> Call-ID: 0_1262134978@192.168.88.58 CSeq: 1 SUBSCRIBE Contact: <sip:606@176.37.91.15:5060> Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE Accept: application/dialog-info+xml Max-Forwards: 69 User-Agent: Yealink SIP-T48G 35.80.0.95 Expires: 1800 Event: dialog Content-Length: 0 Path: <sip:212.232.26.232:5060;lr;received=sip:176.37.91.15:5060> X-AUTH-IP: 176.37.91.15
And NOTIFY for Yealink NOTIFY sip:606@176.37.91.15:5060 SIP/2.0 Via: SIP/2.0/UDP 10.0.20.71;rport;branch=z9hG4bKa1XSXZtH9Zrtg Route: <sip:10.0.20.70:5060>;ftag=1995090923;lr=on Record-Route: <sip:10.0.20.70:5060>;ftag=1995090923;lr=on Max-Forwards: 70 From: <sip:*55@master.rufan.at:5060>;tag=3TCMXfAmcte4 To: "606 - MRA" <sip:606@master.rufan.at:5060>;tag=1995090923 Call-ID: 0_1262134978@192.168.88.58 CSeq: 297553154 NOTIFY Contact: <sip:*55@10.0.20.71:5060> User-Agent: FreeSWITCH Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE Supported: path, replaces Event: dialog Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer Subscription-State: active;expires=1800 Content-Type: application/dialog-info+xml Content-Length: 152
<?xml version="1.0"?> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity="sip:*55@master.rufan.at"> </dialog-info>
2016-03-09 21:53 GMT+02:00 Brian West <brian@freeswitch.org>:
What do the entries in the subscription table look like? And can I see the subscribe packets please?
On Wed, Mar 9, 2016 at 1:49 PM, Igor Olhovskiy < igorolhovskiy@gmail.com> wrote:
> No, no IP’s, only domain names. > Also, I’ve disabled force-subscription-domain, > force-register-domain and force-register-db-domain due to multitenancy > > Sorry, forgot to mention > FreeSWITCH Version 1.6.6+git~20160111T201612Z~d2d0b3283a~64bit > > 2016-03-09 21:46 GMT+02:00 Brian West <brian@freeswitch.org>: > >> Make sure you're not forcing them to the IP because we do so in our >> vanilla configs to make it easier on everyone. :) Also I can't tell what >> rev of FreeSWITCH you're on. >> >> On Wed, Mar 9, 2016 at 1:43 PM, Igor Olhovskiy < >> igorolhovskiy@gmail.com> wrote: >> >>> Thanks, >>> >>> I’m putting a domain in every SUBSCRIBE request I’m passing >>> through. So, I’m 100% sure, there is domains everywhere, no IP’s in R-URI, >>> To or From. >>> Btw, this situation is only when device is not registered, If >>> device is registered and ringing/talking, I’ve got correct XML info’s. >>> Situation is only when I’m trying to subscribe on non-existing >>> device. Or device is unregistered and also, in NOTIFY XML data is like this. >>> >>> 2016-03-09 21:38 GMT+02:00 Brian West <brian@freeswitch.org>: >>> >>>> The only time I've ever seen this issue is when its a domain/ip >>>> mismatch, and many devices like yealink and the like will subscribe to the >>>> IP even when you put in the domain name in some firmwares. So you'll need >>>> to test, check and verify its doing what you think it is. >>>> >>>> Also out of the box we force the domain to the IP, unless you >>>> change it. Doing anything multi-tenant requires your endpoints to behave >>>> properly too. >>>> >>>> /b >>>> >>>> >>>> On Wed, Mar 9, 2016 at 1:34 PM, Igor Olhovskiy < >>>> igorolhovskiy@gmail.com> wrote: >>>> >>>>> As I tried, these options are really not est with multi-tenant. >>>>> And really, where is device is Subscribed to IP? I don’t see any >>>>> IP’s in R-URI or To/From. >>>>> Record-Route is just for keep packets back and Contact is actual >>>>> device IP and port. >>>>> >>>>> 2016-03-09 21:21 GMT+02:00 Brian West <brian@freeswitch.org>: >>>>> >>>>>> I wish had $1,000.00 for every time I answer this one... :) >>>>>> >>>>>> Ok here is what is the problem, you have the device setup to >>>>>> register to the domain, but its subscribing to the IP ergo domain != ip >>>>>> when it search for any subscriptions. >>>>>> >>>>>> See force-subscription-domain, force-register-domain and >>>>>> force-register-db-domain >>>>>> >>>>>> Those all have to align perfectly for things to behave properly. >>>>>> >>>>>> Thanks, >>>>>> >>>>>> >>>>>> >>>>>> On Wed, Mar 9, 2016 at 12:57 PM, Igor Olhovskiy < >>>>>> igorolhovskiy@gmail.com> wrote: >>>>>> >>>>>>> Hi! >>>>>>> I’m trying to subscribe to Freeswitch with this packet >>>>>>> >>>>>>> SUBSCRIBE sip:*55@master.rufan.at SIP/2.0 >>>>>>> Record-Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> >>>>>>> Via: SIP/2.0/UDP 212.232.26.232:5060 >>>>>>> ;branch=z9hG4bKbb4c.eafe0e8f9ec4b28fb6e4056a64c702ed.0 >>>>>>> Via: SIP/2.0/UDP 192.168.88.59:37600 >>>>>>> ;received=176.37.91.15;branch=z9hG4bK-rzfuku5tc99o;rport=37600 >>>>>>> Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> >>>>>>> From: <sip:607@master.rufan.at>;tag=jz8i26dy0f >>>>>>> To: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF >>>>>>> Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 >>>>>>> CSeq: 610 SUBSCRIBE >>>>>>> Max-Forwards: 69 >>>>>>> User-Agent: snom760/8.7.5.35 >>>>>>> Contact: <sip:607@176.37.91.15:37600;line=ukipitb6>;reg-id=1 >>>>>>> Event: dialog >>>>>>> Accept: application/dialog-info+xml >>>>>>> Expires: 80 >>>>>>> Content-Length: 0 >>>>>>> Path: <sip:212.232.26.232:5060;lr;received=sip: >>>>>>> 176.37.91.15:37600> >>>>>>> X-AUTH-IP: 176.37.91.15 >>>>>>> >>>>>>> Actually I get Accepted (202) >>>>>>> >>>>>>> But with NOTIFY from freeswitch I got this >>>>>>> >>>>>>> NOTIFY sip:607@176.37.91.15:37600;line=ukipitb6 SIP/2.0 >>>>>>> Via: SIP/2.0/UDP 10.0.20.71;rport;branch=z9hG4bKS5ZKag4N6XXFK >>>>>>> Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on >>>>>>> Record-Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on >>>>>>> Max-Forwards: 70 >>>>>>> From: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF >>>>>>> To: <sip:607@master.rufan.at>;tag=jz8i26dy0f >>>>>>> Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 >>>>>>> CSeq: 297327351 NOTIFY >>>>>>> Contact: <sip:*55@10.0.20.71:5060> >>>>>>> User-Agent: FreeSWITCH >>>>>>> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, >>>>>>> UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE >>>>>>> Supported: path, replaces >>>>>>> Event: dialog >>>>>>> Allow-Events: talk, hold, conference, presence, >>>>>>> as-feature-event, dialog, line-seize, call-info, sla, >>>>>>> include-session-description, presence.winfo, message-summary, refer >>>>>>> Subscription-State: active;expires=80 >>>>>>> Content-Type: application/dialog-info+xml >>>>>>> Content-Length: 152 >>>>>>> >>>>>>> <?xml version="1.0"?> >>>>>>> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" >>>>>>> version="8" state="full" entity="sip:*55@master.rufan.at"> >>>>>>> </dialog-info> >>>>>>> >>>>>>> Problem is, XML data is empty, cause actually there is no >>>>>>> registrations for *55 extension. >>>>>>> Why it’s not sending «Unavail» or smth. like this? What is the >>>>>>> correct packet for SUBSCRIBE? Or internal profile? >>>>>>> >>>>>>> Internal profile is >>>>>>> nonce-ttl [60] >>>>>>> auth-calls [true] >>>>>>> inbound-reg-force-matching-username [true] >>>>>>> auth-all-packets [false] >>>>>>> ext-rtp-ip [10.0.20.71] >>>>>>> ext-sip-ip [10.0.20.71] >>>>>>> rtp-timeout-sec [300] >>>>>>> rtp-hold-timeout-sec [1800] >>>>>>> tls-verify-policy [all] >>>>>>> multiple-registrations [contact] >>>>>>> enable-timer [false] >>>>>>> dbname [share_presence] >>>>>>> send-presence-on-register [true] >>>>>>> inbound-codec-negotiation [greedy] >>>>>>> NDLB-force-rport [safe] >>>>>>> challenge-realm [auto_to] >>>>>>> outbound-proxy [10.0.20.70] >>>>>>> track-calls [true] >>>>>>> nat-options-ping [true] >>>>>>> liberal-dtmf [true] >>>>>>> all-reg-options-ping [true] >>>>>>> force-publish-expires [true] >>>>>>> unregister-on-options-fail [true] >>>>>>> user-agent-string [FreeSWITCH] >>>>>>> log-auth-failures [true] >>>>>>> forward-unsolicited-mwi-notify [false] >>>>>>> context [public] >>>>>>> rfc2833-pt [101] >>>>>>> sip-port [5060] >>>>>>> dialplan [XML] >>>>>>> dtmf-duration [2000] >>>>>>> inbound-codec-prefs [G7221@32000h,G7221@16000h >>>>>>> ,G722,PCMU,PCMA,OPUS,SILK] >>>>>>> outbound-codec-prefs [G7221@32000h,G7221@16000h >>>>>>> ,G722,PCMU,PCMA,OPUS,SILK] >>>>>>> rtp-timer-name [soft] >>>>>>> rtp-ip [10.0.20.71] >>>>>>> sip-ip [10.0.20.71] >>>>>>> hold-music [local_stream://default] >>>>>>> apply-nat-acl [nat.auto] >>>>>>> aggressive-nat-detection [true] >>>>>>> apply-inbound-acl [domains] >>>>>>> local-network-acl [localnet.auto] >>>>>>> record-path [/usr/local/freeswitch/recordings] >>>>>>> record-template >>>>>>> [${domain_name}/archive/${strftime(%Y)}/${strftime(%b)}/${strftime(%d)}/${uuid}.${record_ext}] >>>>>>> manage-presence [true] >>>>>>> presence-probe-on-register [true] >>>>>>> manage-shared-appearance [true] >>>>>>> tls [false] >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Best regards, >>>>>>> Igor >>>>>>> >>>>>>> >>>>>>> _________________________________________________________________________ >>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>> consulting@freeswitch.org >>>>>>> http://www.freeswitchsolutions.com >>>>>>> >>>>>>> Official FreeSWITCH Sites >>>>>>> http://www.freeswitch.org >>>>>>> http://confluence.freeswitch.org >>>>>>> http://www.cluecon.com >>>>>>> >>>>>>> FreeSWITCH-users mailing list >>>>>>> FreeSWITCH-users@lists.freeswitch.org >>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>>> UNSUBSCRIBE: >>>>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>>>> http://www.freeswitch.org >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> >>>>>> *Brian West* >>>>>> brian@freeswitch.org >>>>>> >>>>>> >>>>>> *Twitter: @FreeSWITCH , @briankwest* >>>>>> http://www.freeswitchbook.com >>>>>> http://www.freeswitchcookbook.com >>>>>> https://www.gofundme.com/freeswitch_ubuntu >>>>>> >>>>>> Got Bugs? Report them here <https://freeswitch.org/jira>! | >>>>>> Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> >>>>>> >>>>>> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) >>>>>> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest >>>>>> >>>>>> >>>>>> _________________________________________________________________________ >>>>>> Professional FreeSWITCH Consulting Services: >>>>>> consulting@freeswitch.org >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://confluence.freeswitch.org >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-users mailing list >>>>>> FreeSWITCH-users@lists.freeswitch.org >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>>> UNSUBSCRIBE: >>>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>>> http://www.freeswitch.org >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Best regards, >>>>> Igor >>>>> >>>>> >>>>> _________________________________________________________________________ >>>>> Professional FreeSWITCH Consulting Services: >>>>> consulting@freeswitch.org >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://confluence.freeswitch.org >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-users mailing list >>>>> FreeSWITCH-users@lists.freeswitch.org >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>>> UNSUBSCRIBE: >>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>> http://www.freeswitch.org >>>>> >>>> >>>> >>>> >>>> -- >>>> >>>> *Brian West* >>>> brian@freeswitch.org >>>> >>>> >>>> *Twitter: @FreeSWITCH , @briankwest* >>>> http://www.freeswitchbook.com >>>> http://www.freeswitchcookbook.com >>>> https://www.gofundme.com/freeswitch_ubuntu >>>> >>>> Got Bugs? Report them here <https://freeswitch.org/jira>! | >>>> Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> >>>> >>>> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) >>>> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest >>>> >>>> >>>> _________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting@freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users@lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE: >>>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>>> http://www.freeswitch.org >>>> >>> >>> >>> >>> -- >>> Best regards, >>> Igor >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting@freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users@lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE: >>> http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >> >> >> >> -- >> >> *Brian West* >> brian@freeswitch.org >> >> >> *Twitter: @FreeSWITCH , @briankwest* >> http://www.freeswitchbook.com >> http://www.freeswitchcookbook.com >> https://www.gofundme.com/freeswitch_ubuntu >> >> Got Bugs? Report them here <https://freeswitch.org/jira>! | >> Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> >> >> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) >> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting@freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users@lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE: >> http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > > > -- > Best regards, > Igor > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE: > http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org >
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Igor
-- Best regards, Igor
I figured out this issue, and working on if its a bug or limitation. https://freeswitch.org/jira/browse/FS-9384 Mixing the xpdif+xml with dialog+xml may cause undesired behavior. :) /b On Wed, Mar 9, 2016 at 12:57 PM, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
Hi! I’m trying to subscribe to Freeswitch with this packet
SUBSCRIBE sip:*55@master.rufan.at SIP/2.0 Record-Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> Via: SIP/2.0/UDP 212.232.26.232:5060 ;branch=z9hG4bKbb4c.eafe0e8f9ec4b28fb6e4056a64c702ed.0 Via: SIP/2.0/UDP 192.168.88.59:37600 ;received=176.37.91.15;branch=z9hG4bK-rzfuku5tc99o;rport=37600 Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on> From: <sip:607@master.rufan.at>;tag=jz8i26dy0f To: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 CSeq: 610 SUBSCRIBE Max-Forwards: 69 User-Agent: snom760/8.7.5.35 Contact: <sip:607@176.37.91.15:37600;line=ukipitb6>;reg-id=1 Event: dialog Accept: application/dialog-info+xml Expires: 80 Content-Length: 0 Path: <sip:212.232.26.232:5060;lr;received=sip:176.37.91.15:37600> X-AUTH-IP: 176.37.91.15
Actually I get Accepted (202)
But with NOTIFY from freeswitch I got this
NOTIFY sip:607@176.37.91.15:37600;line=ukipitb6 SIP/2.0 Via: SIP/2.0/UDP 10.0.20.71;rport;branch=z9hG4bKS5ZKag4N6XXFK Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on Record-Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=on Max-Forwards: 70 From: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWF To: <sip:607@master.rufan.at>;tag=jz8i26dy0f Call-ID: 313435373534383931393431313632-94bfcwdyrzz2 CSeq: 297327351 NOTIFY Contact: <sip:*55@10.0.20.71:5060> User-Agent: FreeSWITCH Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE Supported: path, replaces Event: dialog Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer Subscription-State: active;expires=80 Content-Type: application/dialog-info+xml Content-Length: 152
<?xml version="1.0"?> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="8" state="full" entity="sip:*55@master.rufan.at"> </dialog-info>
Problem is, XML data is empty, cause actually there is no registrations for *55 extension. Why it’s not sending «Unavail» or smth. like this? What is the correct packet for SUBSCRIBE? Or internal profile?
Internal profile is nonce-ttl [60] auth-calls [true] inbound-reg-force-matching-username [true] auth-all-packets [false] ext-rtp-ip [10.0.20.71] ext-sip-ip [10.0.20.71] rtp-timeout-sec [300] rtp-hold-timeout-sec [1800] tls-verify-policy [all] multiple-registrations [contact] enable-timer [false] dbname [share_presence] send-presence-on-register [true] inbound-codec-negotiation [greedy] NDLB-force-rport [safe] challenge-realm [auto_to] outbound-proxy [10.0.20.70] track-calls [true] nat-options-ping [true] liberal-dtmf [true] all-reg-options-ping [true] force-publish-expires [true] unregister-on-options-fail [true] user-agent-string [FreeSWITCH] log-auth-failures [true] forward-unsolicited-mwi-notify [false] context [public] rfc2833-pt [101] sip-port [5060] dialplan [XML] dtmf-duration [2000] inbound-codec-prefs [G7221@32000h,G7221@16000h,G722,PCMU,PCMA,OPUS,SILK] outbound-codec-prefs [G7221@32000h,G7221@16000h,G722,PCMU,PCMA,OPUS,SILK] rtp-timer-name [soft] rtp-ip [10.0.20.71] sip-ip [10.0.20.71] hold-music [local_stream://default] apply-nat-acl [nat.auto] aggressive-nat-detection [true] apply-inbound-acl [domains] local-network-acl [localnet.auto] record-path [/usr/local/freeswitch/recordings] record-template [${domain_name}/archive/${strftime(%Y)}/${strftime(%b)}/${strftime(%d)}/${uuid}.${record_ext}] manage-presence [true] presence-probe-on-register [true] manage-shared-appearance [true] tls [false]
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com https://www.gofundme.com/freeswitch_ubuntu Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
participants (2)
-
Brian West
-
Igor Olhovskiy