<p>hello, trying to get user status using subscription.<br>
But for some reason the notification comes without a body xml<br>
`<br>
SUBSCRIBE sip:dendy@xxxxxxxx:xxxxx;transport=tcp SIP/2.0<br>
Via: SIP/2.0/TCP xxxxxx.x:xxxxx;rport;branch=z9hG4bKPjDQwwW-dtn73uWvfKqpQhAo.BwcQhtj.X;alias<br>
Max-Forwards: 70<br>
From: sip:1203@xxxxxx;tag=E-xtzmcTcV5OkvKZG3e5pF671Rv0ntn5<br>
To: sip:dendy@xxxxxx<br>
Contact: sip:1203@xxxxxx:xxxxx;transport=tcp<br>
Call-ID: jymDoKAg4ffapLjQREv4qDGNqFN35.jb<br>
CSeq: 6797 SUBSCRIBE<br>
Event: presence<br>
Expires: 36000<br>
Accept: application/pidf+xml, application/xpidf+xml<br>
Allow-Events: presence<br>
Content-Length: 0</p>
<p>2019/04/19 14:17:31.261866 xxxxxx:xxxxxx -> xxxxxx:xxxx<br>
NOTIFY sip:1203@xxxxxx:xxxxxx SIP/2.0<br>
Via: SIP/2.0/TCP xxxxxx:xxxxxx;branch=z9hG4bK1afa.0124b9a6000000000000000000000000.0<br>
To: sip:1203@xxxxxx;tag=E-xtzmcTcV5OkvKZG3e5pF671Rv0ntn5<br>
From: sip:dendy@xxxxxx;tag=dbcd16266fcdb51ae84a18eeabb1faa3-b21b<br>
CSeq: 2 NOTIFY<br>
Call-ID: jymDoKAg4ffapLjQREv4qDGNqFN35.jb<br>
Content-Length: 0<br>
User-Agent: kamailio (5.2.2 (x86_64/linux))<br>
Max-Forwards: 70<br>
Event: presence<br>
Contact: xxxxxx:xxxxxx;transport=tcp<br>
Subscription-State: active;expires=3600</p>
<p>`<br>
kamailio.cfg</p>
<p>.....<br>
#!define WITH_PRESENCE<br>
#!define WITH_NAT<br>
#!define WITH_USRLOCDB<br>
#!define WITH_XCAPSRV<br>
loadmodule "db_text.so"<br>
loadmodule "jsonrpcs.so"<br>
loadmodule "kex.so"<br>
loadmodule "corex.so"<br>
loadmodule "tm.so"<br>
loadmodule "tmx.so"<br>
loadmodule "sl.so"<br>
loadmodule "rr.so"<br>
loadmodule "pv.so"<br>
loadmodule "maxfwd.so"<br>
loadmodule "usrloc.so"<br>
loadmodule "registrar.so"<br>
loadmodule "textops.so"<br>
loadmodule "siputils.so"<br>
loadmodule "xlog.so"<br>
loadmodule "sanity.so"<br>
loadmodule "ctl.so"<br>
loadmodule "cfg_rpc.so"<br>
loadmodule "acc.so"<br>
loadmodule "counters.so"</p>
<p>......<br>
#!ifdef WITH_PRESENCE<br>
loadmodule "presence.so"<br>
loadmodule "presence_xml.so"<br>
#!endif<br>
......<br>
`</p>
<h1>----- usrloc params -----</h1>
<p>/* enable DB persistency for location entries */<br>
#!ifdef WITH_USRLOCDB<br>
modparam("usrloc", "db_url", DBURL)<br>
modparam("usrloc", "db_mode", 2)<br>
modparam("usrloc", "use_domain", 0)<br>
#!endif</p>
<p>...........<br>
#!ifdef WITH_PRESENCE</p>
<h1>----- presence params -----</h1>
<p>modparam("presence", "db_url", DBURL)<br>
modparam("presence", "server_address", "xxxxxx:xxxxx")</p>
<h1>----- presence_xml params -----</h1>
<p>modparam("presence_xml", "db_url", DBURL)<br>
modparam("presence_xml", "force_active", 1)<br>
modparam("presence_xml", "integrated_xcap_server", 1)</p>
<p>#!endif<br>
#!ifdef WITH_PRESENCE<br>
if (!t_newtran()) {<br>
sl_reply_error();<br>
exit;<br>
}</p>
<pre><code> if(is_method("PUBLISH")) {
handle_publish();
t_release();
} else if(is_method("SUBSCRIBE")) {
handle_subscribe();
t_release();
}
exit;
</code></pre>
<p>#!endif</p>
<p>`<br>
I need to get the body of the form:</p>
<p>`</p>
<p></p>
<p>Ready<br>
<br>
<br>
open<br>
<br>
sip:1203@хххх.com<br>
<br>
<dm:person /><br>
<br>
`</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1930">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZMKN2WK24ERGE36QNDPRHPDDANCNFSM4HHEVXBA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZOECI2BDTE6EVDZ3NTPRHPDDANCNFSM4HHEVXBA.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"subscribe \u003e Notify without xml body (#1930)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1930"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1930",
"url": "https://github.com/kamailio/kamailio/issues/1930",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>