<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
you need to install the module and the load it in the configuration
file:<br>
<br>
make install-modules modules=modules/presence_feature<br>
<br>
then in the kamailio.cfg<br>
<br>
loadmodule "presence_feature.so"<br>
<br>
If you have parameters, then you have to set them with<br>
<br>
modparam("presence_feature", "param_name", param_value)<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 05/11/15 11:53, Priyaranjan Nayak
wrote:<br>
</div>
<blockquote
cite="mid:CAACv2PncYj+YFdXL4AL1m3yDUZbMgUDyyJBWQc69Z=xE1fNbLg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>Hi Daniel,<br>
<br>
</div>
I have written a c module called presence_feature and
generated a dynamic library (<a moz-do-not-send="true"
href="http://i.e.presence_feature.so">i.e.presence_feature.so</a>)
by referring the exiting presence_profile module's code to
add the custom event(i.e.Event: as-feature-event).<br>
<br>
</div>
Now I wanted to use the presence_feature.so library in the
kamailio.cfg. Could you please help me , how can I load this
module in kamailio.cfg file to handle my custom event ?<br>
<br>
</div>
Best regards,<br>
</div>
Priyaranjan<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Nov 4, 2015 at 7:21 PM,
Daniel-Constantin Mierla <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:miconda@gmail.com"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a></a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Hello,<br>
<br>
you will have to write a c module, perhaps the easiest is
to start with one of the existing presence extensions,
such as presence_conference or presence_profile -- these
should be rather small, easier to understand.<br>
<br>
You can also look at presence_xml code, maybe it is
something that you can reuse by just adding code to accept
the new event value.<br>
<br>
Cheers,<br>
Daniel
<div>
<div class="h5"><br>
<br>
<div>On 04/11/15 13:42, Priyaranjan Nayak wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>Hi Daniel,<br>
<br>
</div>
<ul>
<li>do you need special handling for that
event?</li>
</ul>
</div>
<b> Yes</b>.<br>
<br>
<ul>
<li>Is the body of the NOTIFY for such
SUBSCRIBEs in xml format?</li>
</ul>
</div>
<b> Yes, the body is in xml format</b>.<br>
<br>
</div>
<div>Thanks,<br>
</div>
<div>Priyaranjan<br>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Nov 4, 2015 at
5:53 PM, Daniel-Constantin Mierla <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:miconda@gmail.com"
target="_blank">miconda@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0
0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Hello,<br>
<br>
do you need special handling for that event?
Is the body of the NOTIFY for such
SUBSCRIBEs in xml format?<br>
<br>
Cheers,<br>
Daniel
<div>
<div><br>
<br>
<div>On 04/11/15 13:02, Priyaranjan
Nayak wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div>
<div dir="ltr">
<div>
<div>Hi All,<br>
<br>
</div>
If I send a SUBSCRIBE message with
"Event: presence" then I am
getting 200 OK. When I am sending
some proprietary event(i.e. Event:
as-feature-event ) then I am
getting 489 Bad event. <br>
<br>
</div>
Could you please help me how can I
add proprietary event in the
kamailio-4.2.5 to handle the
SUBSCRIBE message with proprietary
event ?<br>
<div>
<div>
<div><br>
<br>
<div>Thanks<br>
Priyaranjan<br>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span><font color="#888888">
</font></span></pre>
<span><font color="#888888"> </font></span></blockquote>
<span><font color="#888888"> <br>
<pre cols="72">--
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
Kamailio Advanced Training, Nov 30-Dec 2, Berlin - <a moz-do-not-send="true" href="http://asipto.com/kat" target="_blank">http://asipto.com/kat</a></pre>
</font></span></div>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio
(OpenSER) - sr-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org"
target="_blank">sr-users@lists.sip-router.org</a><br>
<a moz-do-not-send="true"
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
<div>Thanks<br>
Priyaranjan<br>
</div>
</div>
</blockquote>
<br>
<pre cols="72">--
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
Kamailio Advanced Training, Nov 30-Dec 2, Berlin - <a moz-do-not-send="true" href="http://asipto.com/kat" target="_blank">http://asipto.com/kat</a></pre>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
<div class="gmail_signature">Thanks<br>
Priyaranjan<br>
</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Kamailio Advanced Training, Nov 30-Dec 2, Berlin - <a class="moz-txt-link-freetext" href="http://asipto.com/kat">http://asipto.com/kat</a></pre>
</body>
</html>