<div dir="ltr">Hi!<div>I want to create custom Presence server. Main idea - phones subscribes to it (for ex, extension 100@domain). This subscription actually lit BLF button on a phone.</div><div>But main idea - change status of BLF can arrive from different locations via PUBLISH, I assume.</div><div>Problem - phones has different type of SUBSCRIBE, like dialog(application/dialog-info+xml) or presence(application/pidf+xml). Some of phones are not fully follow RFC (Like using in SUBSCRIBE R-URI not domain, but IP, but in From or To - domains are used)</div><div>Phones are registered elsewhere, not on Kamailio. After reading RFC (especially event:dialog part) I’ve found about SIP-If-Match part, but problem about sync this data across multiple PUBLISH locations.</div><div>Can be Kamailio be a presence server in this scenario?</div><div><br></div><div>For ex, SUBSCRIBE</div><div><br></div><div><div>SUBSCRIBE sip:212.232.26.232:5060;transport=udp SIP/2.0</div><div>Via: SIP/2.0/UDP 192.168.88.60:5060;branch=z9hG4bK1656003104;rport</div><div>From: <<a href="mailto:sip%3A608@master.rufan.at">sip:608@master.rufan.at</a>>;tag=521811605</div><div>To: <sip:*<a href="mailto:55@master.rufan.at">55@master.rufan.at</a>>;tag=05ea6038656678bd0198b8977f3c0221.4e93</div><div>Call-ID: <a href="mailto:805970257-5060-2@BJC.BGI.II.GA">805970257-5060-2@BJC.BGI.II.GA</a></div><div>CSeq: 20202 SUBSCRIBE</div><div>Contact: <<a href="http://sip:608@192.168.88.60:5060">sip:608@192.168.88.60:5060</a>></div><div>X-Grandstream-PBX: true</div><div>Max-Forwards: 70</div><div>User-Agent: Grandstream GXP2160 1.0.5.33</div><div>Expires: 180</div><div>Supported: replaces, path, timer, eventlist</div><div>Event: dialog</div><div>Accept: application/dialog-info+xml,multipart/related,application/rlmi+xml</div><div>Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE</div><div>Content-Length: 0</div><div><br></div><div><br></div><div>I’ve tried send to Kamailio this PUBLISH</div><div><br></div><div><div>PUBLISH sip:*<a href="http://55@master.rufan.at:5060">55@master.rufan.at:5060</a> SIP/2.0</div><div>Via: SIP/2.0/UDP 10.0.20.71:5060;branch=z9hG4bK-6930-1-0</div><div>Max-Forwards: 70</div><div>To: <sip:*<a href="mailto:55@master.rufan.at">55@master.rufan.at</a>></div><div>From: <sip:*<a href="http://55@master.rufan.at:5060">55@master.rufan.at:5060</a>>;tag=1</div><div>Call-ID: <a href="mailto:1-6930@127.0.1.1">1-6930@127.0.1.1</a></div><div>CSeq: 1 PUBLISH</div><div>Contact: <<a href="http://sip:mod_sofia@127.0.1.1:5060">sip:mod_sofia@127.0.1.1:5060</a>></div><div>Event: presence</div><div>Expires: 3600</div><div>Content-Type: application/pidf+xml</div><div>Content-Length:  486</div><div><br></div><div><?xml version="1.0" encoding="ISO-8859-1"?></div><div><presence xmlns='urn:ietf:params:xml:ns:pidf'</div><div>xmlns:dm='urn:ietf:params:xml:ns:pidf:data-model'</div><div>xmlns:rpid='urn:ietf:params:xml:ns:pidf:rpid'</div><div>xmlns:c='urn:ietf:params:xml:ns:pidf:cipid' entity='sip:*<a href="mailto:55@master.rufan.at">55@master.rufan.at</a>'></div><div><tuple id='z9hG4bK-6930-1-0'></div><div><status></div><div><basic>open</basic></div><div></status></div><div></tuple></div><div><dm:person id='1'></div><div><rpid:activities></div><div><rpid:on-the-phone/></div><div></rpid:activities></div><div><dm:note>Night</dm:note></div><div></dm:person></div><div></presence></div></div><div><br></div><div>Kamailio answers with 200OK, but after this - no NOTIFY to subscribed clients.</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Best regards,<div>Igor</div></div></div>
</div></div>