<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<code class="varname"></code>Hello,<br>
we use Kamailio 4.2 with Presence_DIALOGINFO module for BLF
notifications (blinking lamps on phone panel). <br>
<br>
Since version 4.1 Kamailio has a new module parametr "
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<big>modparam("presence_dialoginfo", "force_dummy_dialog", 1)</big>"
- this option generate first NOTIFY to Subscribed phone (without
PUBLISH message) and it's lamps became GREEN (
<state>terminated</state>).<br>
<br>
Without this module parametr the first NOTIFY won't be sent to phone
and lamps will stay turned off until first PUBLISH will be handled
by presence server.<br>
<br>
The first NOTIFY sip message with xml body look like this:<br>
<br>
<br>
NOTIFY <a class="moz-txt-link-abbreviated"
href="mailto:sip:1005@22.22.22.22:1120">sip:1005@22.22.22.22:1120</a>
SIP/2.0.<br>
To: <a class="moz-txt-link-rfc2396E"
href="mailto:sip:1005@11.11.11.11"><sip:1005@11.11.11.11></a>;tag=867246696.<br>
From: <a class="moz-txt-link-rfc2396E"
href="mailto:sip:9095@11.11.11.11"><sip:9095@11.11.11.11></a>;tag=495949c4c25d687c77ca707bd10a0818-5171.<br>
CSeq: 2 NOTIFY.<br>
Call-ID: <a class="moz-txt-link-abbreviated"
href="mailto:662126467-5060-6@BJC.BGI.E.CDD">662126467-5060-6@BJC.BGI.E.CDD</a>.<br>
Route: <sip:10.60.1.3;r2=on;lr=on>,
<sip:11.11.11.11;r2=on;lr=on>.<br>
Content-Length: 272.<br>
User-Agent: kamailio (4.2.3 (x86_64/linux)).<br>
Max-Forwards: 70.<br>
Event: dialog.<br>
Subscription-State: active;expires=600.<br>
Content-Type: application/dialog-info+xml.<br>
.<br>
<?xml version="1.0"?><br>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info"
version="1" ух state="full" entity=<a class="moz-txt-link-rfc2396E"
href="mailto:sip:9095@10.60.1.3">"sip:9095@10.60.1.3"</a>><br>
<dialog direction="recipient"><br>
<state>terminated</state><br>
</dialog><br>
</dialog-info><br>
<br>
Especially pay attention on XML body.<br>
<br>
<br>
But for some SIP phones this xml body with state = terminated is not
enough to turn the BLF lamp on. (for example Grandstream phones).<br>
It requires one more or two more fields: "dialog id", "call-id".<br>
<br>
<?xml version="1.0"?><br>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info"
version="28" state="full" entity=<a
class="moz-txt-link-rfc2396E" href="mailto:sip:9093@10.60.1.3">"sip:9093@10.60.1.3"</a>><br>
<dialog id="830b4fd4-c75d-1233-ca9f-0050569560f4"
call-id="830b4fd4-c75d-1233-ca9f-0050569560f4"
direction="recipient"><br>
<state>terminated</state><br>
</dialog><br>
</dialog-info><br>
<br>
<br>
<br>
The question is how to modify this first NOTIFY XML body message to
add "dialog id" and "call-id" to </dialog>.<br>
For example latest Kamailio Kazoo fixed that already. :)<br>
<br>
<br>
<br>
<br>
<br>
Kind Regards<br>
Ewgeny<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</body>
</html>