[SR-Users] busy lamp field

Sergiu Pojoga pojogas at gmail.com
Tue Nov 6 17:05:41 CET 2018


Comment out or remote the presence related section, relay these methods to
Asterisk backend just like you did for INVITEs e.t.c

##!define WITH_PRESENCE

Good luck.

On Tue, Nov 6, 2018 at 10:39 AM Kevin Olbrich <ko at sv01.de> wrote:

> Hi!
>
> Can someone share his kamailio.cfg with working busy lamp field in a
> kamailio-as-proxy scenario?
> My config is based on the example shipped with 5.1.x and asterisk as the
> backend.
>
> Calling works fine but PUBLISH / SUBSCRIBE is handled by kamailio itself.
>
> I am not sure but this might be the part where I should relay the request
> to asterisk(?):
>
> #!ifdef WITH_PRESENCE
>> if (!t_newtran()) {
>> sl_reply_error();
>> exit;
>> }
>> if(is_method("PUBLISH")) {
>> handle_publish();
>> t_release();
>> } else if(is_method("SUBSCRIBE")) {
>> handle_subscribe();
>> t_release();
>> }
>> exit;
>> #!endif
>
>
>  Currently the lights are "broken", some phones show them on, some off.
>
> Kind regards
> Kevin
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20181106/96497984/attachment.html>


More information about the sr-users mailing list