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=T8d4diV1izE2sip | 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=ziusfu8L3hlOsip | 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=Pe1EElSL1Wuxsip | 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.atAnd the packet actually(Grandstream)SUBSCRIBE sip:*55@master.rufan.at SIP/2.0Record-Route: <sip:10.0.20.70:5060;ftag=113168616;lr=on>Via: SIP/2.0/UDP 212.232.26.232:5060;branch=z9hG4bK93c7.7c2cdb9650455af02d6d10035bf3b61e.0Via: SIP/2.0/UDP 192.168.88.60:5060;received=176.37.91.15;branch=z9hG4bK1367793990;rport=1024From: <sip:608@master.rufan.at>;tag=113168616To: <sip:*55@master.rufan.at>Call-ID: 676611784-5060-14@BJC.BGI.II.GACSeq: 20120 SUBSCRIBEContact: <sip:608@176.37.91.15:1024>X-Grandstream-PBX: trueMax-Forwards: 69User-Agent: Grandstream GXP2160 1.0.5.33Expires: 180Supported: replaces, path, timer, eventlistEvent: dialogAccept: application/dialog-info+xml,multipart/related,application/rlmi+xmlAllow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGEContent-Length: 0Path: <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.0Record-Route: <sip:10.0.20.70:5060;ftag=1995090923;lr=on>Via: SIP/2.0/UDP 212.232.26.232:5060;branch=z9hG4bK8da1.d094596a4b93e6c890de68f180007279.0Via: SIP/2.0/UDP 192.168.88.58:5060;rport=5060;received=176.37.91.15;branch=z9hG4bK2944115790From: "606 - MRA" <sip:606@master.rufan.at:5060>;tag=1995090923To: <sip:*55@master.rufan.at:5060>Call-ID: 0_1262134978@192.168.88.58CSeq: 1 SUBSCRIBEContact: <sip:606@176.37.91.15:5060>Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGEAccept: application/dialog-info+xmlMax-Forwards: 69User-Agent: Yealink SIP-T48G 35.80.0.95Expires: 1800Event: dialogContent-Length: 0Path: <sip:212.232.26.232:5060;lr;received=sip:176.37.91.15:5060>X-AUTH-IP: 176.37.91.15And NOTIFY for YealinkNOTIFY sip:606@176.37.91.15:5060 SIP/2.0Via: SIP/2.0/UDP 10.0.20.71;rport;branch=z9hG4bKa1XSXZtH9ZrtgRoute: <sip:10.0.20.70:5060>;ftag=1995090923;lr=onRecord-Route: <sip:10.0.20.70:5060>;ftag=1995090923;lr=onMax-Forwards: 70From: <sip:*55@master.rufan.at:5060>;tag=3TCMXfAmcte4To: "606 - MRA" <sip:606@master.rufan.at:5060>;tag=1995090923Call-ID: 0_1262134978@192.168.88.58CSeq: 297553154 NOTIFYContact: <sip:*55@10.0.20.71:5060>User-Agent: FreeSWITCHAllow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBESupported: path, replacesEvent: dialogAllow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, referSubscription-State: active;expires=1800Content-Type: application/dialog-info+xmlContent-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 multitenancySorry, forgot to mentionFreeSWITCH Version 1.6.6+git~20160111T201612Z~d2d0b3283a~64bit2016-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./bOn 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-domainThose 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 packetSUBSCRIBE sip:*55@master.rufan.at SIP/2.0Record-Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on>Via: SIP/2.0/UDP 212.232.26.232:5060;branch=z9hG4bKbb4c.eafe0e8f9ec4b28fb6e4056a64c702ed.0Via: SIP/2.0/UDP 192.168.88.59:37600;received=176.37.91.15;branch=z9hG4bK-rzfuku5tc99o;rport=37600Route: <sip:10.0.20.70:5060;ftag=jz8i26dy0f;lr=on>From: <sip:607@master.rufan.at>;tag=jz8i26dy0fTo: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWFCall-ID: 313435373534383931393431313632-94bfcwdyrzz2CSeq: 610 SUBSCRIBEMax-Forwards: 69User-Agent: snom760/8.7.5.35Contact: <sip:607@176.37.91.15:37600;line=ukipitb6>;reg-id=1Event: dialogAccept: application/dialog-info+xmlExpires: 80Content-Length: 0Path: <sip:212.232.26.232:5060;lr;received=sip:176.37.91.15:37600>X-AUTH-IP: 176.37.91.15Actually I get Accepted (202)But with NOTIFY from freeswitch I got thisNOTIFY sip:607@176.37.91.15:37600;line=ukipitb6 SIP/2.0Via: SIP/2.0/UDP 10.0.20.71;rport;branch=z9hG4bKS5ZKag4N6XXFKRoute: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=onRecord-Route: <sip:10.0.20.70:5060>;ftag=jz8i26dy0f;lr=onMax-Forwards: 70From: <sip:*55@master.rufan.at;user=phone>;tag=qBuxIeW1MNWFTo: <sip:607@master.rufan.at>;tag=jz8i26dy0fCall-ID: 313435373534383931393431313632-94bfcwdyrzz2CSeq: 297327351 NOTIFYContact: <sip:*55@10.0.20.71:5060>User-Agent: FreeSWITCHAllow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBESupported: path, replacesEvent: dialogAllow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, referSubscription-State: active;expires=80Content-Type: application/dialog-info+xmlContent-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 isnonce-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_ubuntuGot Bugs? Report them here! | Reddit: /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_ubuntuGot Bugs? Report them here! | Reddit: /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_ubuntuGot Bugs? Report them here! | Reddit: /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_ubuntuGot Bugs? Report them here! | Reddit: /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_ubuntuGot Bugs? Report them here! | Reddit: /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! | Reddit: /r/freeswitch
T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest