[OpenSIPS-Users] bla_presentity_spec variable seems to not work?
Andrew Yager
andrew at rwts.com.au
Sun May 9 09:54:26 EST 2021
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 <andrew at 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:foo at bar.com"
> handle_subscribe();
> exit;
> }
> }
>
> … but the active_watcher table has no record anywhere of "foo at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20210509/c4792b64/attachment.html>
More information about the Users
mailing list