Unsupported presence events

785 views
Skip to first unread message

Vladimir Ralev

unread,
Dec 27, 2013, 6:54:00 PM12/27/13
to 2600hz-dev
Hi guys,

I notice that  SUBSCRIBE get rejected with Bad Event response from kamailio.

This is in the log:

Dec 27 18:38:33 test kamailio[13708]: NOTICE: presence [subscribe.c:1029]: handle_subscribe(): Unsupported presence event presence

Dec 27 18:38:33 test kamailio[13708]: NOTICE: presence [subscribe.c:1029]: handle_subscribe(): Unsupported presence event presence.winfo

Dec 27 18:38:33 test kamailio[13708]: NOTICE: presence [subscribe.c:1029]: handle_subscribe(): Unsupported presence event message-summary


My initial research suggests that may be some kamailio module is not present presense_mwi or pua and some others. This can be reproduced with Zoiper upon registration on v3. Any advice?



James Aimonetti

unread,
Dec 27, 2013, 7:06:35 PM12/27/13
to 2600h...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

In your local.cfg, is the presence "db_url" properly set to your
rabbit instance?

modparam("presence", "db_url",
"kazoo://guest:gu...@127.0.0.1:5672/dialoginfo")

Replace the kazoo:// URI with your rabbit's username/password and
IP/port to successfully connect.
- --
James Aimonetti
Lead Systems Architect
"I thought I fixed that"

2600Hz | http://2600hz.com
sip:ja...@2600hz.com
tel:415.886.7905
irc:mc_ @ freenode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iF4EAREIAAYFAlK+FgsACgkQ54NxaUq7OmDR9gEAiByoL8xGYWJ7egWocnNfYfR6
sLZZjh5vpnUFLGy7O+EA/2NV4aZHK1pJzQsYwv/1XAhiH3H4VmiEVPX9ZEQwLplu
=HNnr
-----END PGP SIGNATURE-----

Vladimir Ralev

unread,
Dec 27, 2013, 7:29:56 PM12/27/13
to 2600hz-dev
Yes, I think I got this part right. I see plenty of hints in the log that the rabbit connection is successful, JSON exchange, AMQP notification, all of it for callmgr (registrar, which uses the same conection settings). the dialoginfo is not very chatty I guess because I don't use dialog events? Here is an example exchange:

SUBSCRIBE sip:181@test;transport=TCP SIP/2.0
Via: SIP/2.0/TCP 192.168.1.113:50335;branch=z9hG4bK-d8754z-607ec4336f88c8b9-1---d8754z-
Max-Forwards: 70
Contact: <sip:950...@192.168.1.113:50335;transport=TCP>
To: <sip:181@test;transport=TCP>
From: <sip:9502371@test;transport=TCP>;tag=d4b03c1f
Call-ID: MzM0M2M0ZmM1OTZlYjNjMmFkNzk3MDllYzhhNGZmNDM.
CSeq: 1 SUBSCRIBE
Expires: 1800
Accept: application/pidf+xml
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Supported: replaces, norefersub, extended-refer, timer, X-cisco-serviceuri
User-Agent: Z 3.0.19700 r19608
Event: presence
Allow-Events: presence, kpml
Content-Length: 0


SIP/2.0 489 Bad Event
Via: SIP/2.0/TCP 192.168.1.113:50335;branch=z9hG4bK-d8754z-607ec4336f88c8b9-1---d8754z-;
To: <sip:181@test;transport=TCP>;tag=10cb50df7a838d707d30e6754c5cd4dc-1869
From: <sip:9502371@test;transport=TCP>;tag=d4b03c1f
Call-ID: MzM0M2M0ZmM1OTZlYjNjMmFkNzk3MDllYzhhNGZmNDM.
CSeq: 1 SUBSCRIBE
Allow-Events: dialog
Content-Length: 0


Note that Zoiper says that it allows events about presence and kpml while kamailio says it only allows dialog events (BLF?) which sort of makes sense if the rabbit db_url is only about dialoginfo. MWI and lists are not implied. I haven't dug enough into it yet. I will trace the logs again if I missed some connection issue.




--
You received this message because you are subscribed to the Google Groups "2600hz-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Darren Schreiber

unread,
Dec 27, 2013, 11:30:16 PM12/27/13
to 2600h...@googlegroups.com
Have you tried this as UDP?

Vladimir Ralev

unread,
Dec 27, 2013, 11:42:32 PM12/27/13
to 2600hz-dev
Just tried it, same error. Does non-dialog presence work for you?

Vladimir Ralev

unread,
Dec 28, 2013, 1:38:39 AM12/28/13
to 2600hz-dev
It looks like it will need this in presence-role.cfg

loadmodule "presence_xml.so"

loadmodule "presence_mwi.so"

and the other presense sos in kamailio

By looking at the source only they actually add the events physically into the list of available events:

Same suggestion as freeswitch to add the kamailio source code in the RPM so people can easily build and install missing modules in /usr/lib64/kamailio/modules/

Vladimir Ralev

unread,
Jan 7, 2014, 6:57:42 AM1/7/14
to 2600hz-dev
I was trying to install the presence_xml and presence_mwi modules manually and configuring them to use the same dialoginfo rabbit URI, but it doesn't seem to reach into kazoo. Do you know if this is expected to work without extra code?
Reply all
Reply to author
Forward
0 new messages