How To Read Or Relay SIP PUBLISH Messages ?

Home » Asterisk Users » How To Read Or Relay SIP PUBLISH Messages ?
Asterisk Users 4 Comments

Hello,

I’m currently testing a so-called VQ RTCP-XR feature from a a SIP hardphone.

When a phone has enabled this feature, it would send a SIP PUBLISH to its SIP Server letting this server dispatch to whatever is needs to.

These messages are sent during calls but may also be sent when a call is over.

At the moment, I’m using Asterisk to serve these SIP phones so my Asterisk box receives those SIP PUBLISH and discard them with a 489 Bad Event reply.

I’m not using or planning to use any Kamalio server.

1. Is there an Asterisk version that would allow me to read (and store) in or out-of-band SIP PUBLISH messages from SIP phones ?
2. Alternatively, is there an Asterisk version that would allow me to relay those messages somewhere ?
3. Would a Kamalio-like box allow me to do this ?
4. Suggestions ?

Best

4 thoughts on - How To Read Or Relay SIP PUBLISH Messages ?

  • No version of Asterisk allows the handling or relaying of these arbitrary PUBLISH messages. In the case of PJSIP though that is pluggable so a C module could be written to do something.

    You could act as you wish on the PUBLISH requests in Kamailio.

  • 2017-02-16 14:27 GMT+01:00 Joshua Colp :

    From RFC 6035, “This document defines a new SIP event package, vq-rtcpxr, and a new MIME type, application/vq-rtcpxr, that enable the collection and reporting of metrics”.

    As I’m not aware of many SIP event package currently implemented in PJSIP/Asterisk acting for out-of-calls events, it shouldn’t be easy to mimic current features to add this new one.

    This seams easier, for the moment.

    I think I still need to better understand what are mixed Asterisk-Kamailio architectures main strengths compared to alternatives (Asterisk alone, Kamailio/RTPproxy, …) but that is another story.

    Thank you very much for replying.

  • 2017-02-16 19:33 GMT+01:00 Matthew Jordan :

    This presentation is very interesting. Thanks for pointing it here !

    May I use it to simply ask:
    it seems that one major strength of Kamailio over Asterisk come from its capability to fork SIP messages (REGISTER, …)
    and so have the same state replicated over cluster members. Is this correct ?
    Can we hope that Asterisk could also be capable of forking SIP messages and replicate state over cluster members
    ?