[SR-Users] PUBLISH modification.

Володимир Іванець volodyaivanets at gmail.com
Wed Dec 27 10:28:05 CET 2017


Hello Dmitri,

Yes, PUBLISH'es are generated by pua_dialoginfo module, so
use_pubruri_avps, pubruri_caller_avp and pubruri_callee_avp parameters are
exactly what I need. Thank you!

2017-12-27 10:59 GMT+02:00 Dmitri Savolainen <savolainen at erinaco.ru>:

> hi!
> You may try to use  " msg_apply_changes()";
>
>     if ( is_method('PUBLISH') ){
>         replace_body_all("sip:300", "sip:3000000");
>         msg_apply_changes();
>         handle_publish();
>     }
>
> if you use  pua_dialogi
>  msg_apply_changes()
>
> Bye the way, some presence parameters you may set via AVPs before
> processing, like
> modparam("pua_dialoginfo", "use_pubruri_avps", 1)
> modparam("pua_dialoginfo", "pubruri_caller_avp", "$avp(puburis_caller)")
> modparam("pua_dialoginfo", "pubruri_callee_avp", "$avp(puburis_callee)")
>
>
>
>
> 2017-12-26 15:34 GMT+03:00 Володимир Іванець <volodyaivanets at gmail.com>:
>
>> Hello!
>>
>> I am trying to modify PUBLISH packet before handle_publish function
>> execution. The best what I could think of is to make all required changes,
>> update Destination URI to the Kamailio itself and then send it. In this
>> case Kamailio will receive another PUBLISH packet with modified values.
>>
>> I was wondering someone knows cleaner way of achieving this.
>>
>> Thanks!
>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>
>
> --
> Savolainen Dmitri
>
> _______________________________________________
> 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/20171227/a76a078a/attachment.html>


More information about the sr-users mailing list