[SR-Users] Adding proprietary event in kamailio

Daniel-Constantin Mierla miconda at gmail.com
Thu Nov 5 12:35:38 CET 2015


Hello,

you need to install the module and the load it in the configuration file:

make install-modules modules=modules/presence_feature

then in the kamailio.cfg

loadmodule "presence_feature.so"

If you have parameters, then you have to set them with

modparam("presence_feature", "param_name", param_value)

Cheers,
Daniel

On 05/11/15 11:53, Priyaranjan Nayak wrote:
> Hi Daniel,
>
> I have written a c module called presence_feature and generated a
> dynamic library (i.e.presence_feature.so
> <http://i.e.presence_feature.so>) by referring the exiting
> presence_profile module's code to add the custom event(i.e.Event:
> as-feature-event).
>
> 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 ?
>
> Best regards,
> Priyaranjan
>
> On Wed, Nov 4, 2015 at 7:21 PM, Daniel-Constantin Mierla
> <miconda at gmail.com <mailto:miconda at gmail.com>> wrote:
>
>     Hello,
>
>     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.
>
>     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.
>
>     Cheers,
>     Daniel
>
>
>     On 04/11/15 13:42, Priyaranjan Nayak wrote:
>>     Hi Daniel,
>>
>>       * do you need special handling for that event?
>>
>>     *           Yes*.
>>
>>       * Is the body of the NOTIFY for such SUBSCRIBEs in xml format?
>>
>>     *           Yes, the body is in xml format*.
>>
>>     Thanks,
>>     Priyaranjan
>>
>>
>>     On Wed, Nov 4, 2015 at 5:53 PM, Daniel-Constantin Mierla
>>     <miconda at gmail.com <mailto:miconda at gmail.com>> wrote:
>>
>>         Hello,
>>
>>         do you need special handling for that event? Is the body of
>>         the NOTIFY for such SUBSCRIBEs in xml format?
>>
>>         Cheers,
>>         Daniel
>>
>>
>>         On 04/11/15 13:02, Priyaranjan Nayak wrote:
>>>         Hi All,
>>>
>>>         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.
>>>
>>>         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 ?
>>>
>>>
>>>         Thanks
>>>         Priyaranjan
>>>
>>>
>>>         _______________________________________________
>>>         SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>>>         sr-users at lists.sip-router.org
>>>         <mailto:sr-users at lists.sip-router.org>
>>>         http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>>         -- 
>>         Daniel-Constantin Mierla
>>         http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> - http://www.linkedin.com/in/miconda
>>         Book: SIP Routing With Kamailio - http://www.asipto.com
>>         Kamailio Advanced Training, Nov 30-Dec 2, Berlin - http://asipto.com/kat
>>
>>
>>         _______________________________________________
>>         SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
>>         mailing list
>>         sr-users at lists.sip-router.org
>>         <mailto:sr-users at lists.sip-router.org>
>>         http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>>
>>
>>     -- 
>>     Thanks
>>     Priyaranjan
>
>     -- 
>     Daniel-Constantin Mierla
>     http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> - http://www.linkedin.com/in/miconda
>     Book: SIP Routing With Kamailio - http://www.asipto.com
>     Kamailio Advanced Training, Nov 30-Dec 2, Berlin - http://asipto.com/kat
>
>
>
>
> -- 
> Thanks
> Priyaranjan

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
Kamailio Advanced Training, Nov 30-Dec 2, Berlin - http://asipto.com/kat

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20151105/9a41a4e9/attachment.html>


More information about the sr-users mailing list