Hi, Jonathan!

A quick and blind answer is to catch the NOTIFY messages in local_route and change them as you want using regular expressions on the message body.

Perhaps I can offer a more elegant solution for this issue if you are a bit more explicit about what kind of events are you generating presence for, and when is this NOTIFY message sent?

Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com

On 10/05/2017 09:15 PM, Jonathan Hunter wrote:
Hi Guys,

I am using opensips 2.2 and the presence modules to generate PUBLISH and NOTIFY messages.

I can see with the NOTIFY message opensips is sending a status=closed, can I make it send a status=available if the extension is registered and ready for calls?

Many thanks

Jon


Session Initiation Protocol (NOTIFY)
    Request-Line: NOTIFY sip:SIPWATCHER:5063 SIP/2.0
    Message Header
    Message Body
        eXtensible Markup Language
            <?xml
            <presence
                xmlns="urn:ietf:params:xml:ns:pidf"
                entity="sip:2002@SIPDOMAIN">
                <tuple
                    xmlns="urn:ietf:params:xml:ns:pidf"
                    id="tuple_mixingid">
                    <status>
                        <basic>
                            closed
                            </basic>
                        </status>
                    </tuple>
                </presence>




_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to