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(a)erinaco.ru>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(a)gmail.com>om>:
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(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Savolainen Dmitri
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users