I think I had bridge line appearances and BLF state confused, but
regardless the correct way to do what I was trying to do was to update the
$ru variable. This updates the presentity_uri value as I expected, and
handsets can work correctly.

Hope this helps someone else trying to find this in the future.

Thanks,
Andrew

On Thu, 6 May 2021 at 11:01, Andrew Yager <and...@rwts.com.au> wrote:

> Hi,
>
> Hoping someone can give me a pointer on using the bla_presentity_spec
> setting. I can't seem to get it to have any affect on the subscription
> as it's reported in the watchers table.
>
> loadmodule "presence.so"
> modparam("presence", "db_url",
> "mysql://opensips:opensipsrw@127.0.0.1:3306/opensips")
> modparam("presence", "fallback2db", 1)
> modparam("presence", "cluster_pres_events" ,"presence, dialog;sla,
> message-summary")
> modparam("presence", "bla_presentity_spec", "$var(bla_pres)")
>
> loadmodule "presence_dialoginfo.so"
> loadmodule "presence_mwi.so"
>
> route {
>     if(is_method("SUBSCRIBE"))
>     {
>         xlog("SUBSCRIBE from $si to $ru");
>        $var(bla_pres)="sip:f...@bar.com"
>         handle_subscribe();
>         exit;
>     }
> }
>
> … but the active_watcher table has no record anywhere of "f...@bar.com"
>
> What I was expecting to be able to do was to modify the presentity_uri
> or to_user or to_domain, but none of these seem to happen.
>
> Running 3.1.1-1 apt package on Ubuntu 20 for this test.
>
> Thanks,
> Andrew
>
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to