so it means my user 11111 wants to look BLF of itself. And when a connection goes from certain server to user 11111 it uses IP in Invite, not a domain name. When it happens, my BLF doesn't work although my user has a subscription. If I use a domain name in this Invite - it works ok. But the problem is, that I have many domains, pointing to one IP. My users can use all domains. So, how can I make Opensips BLF module work domain independently? My users should use BLF in every domain.
> I have a strange behaviour in Opensips. Look at this, In active_watchers
> table I get something like this:
> presentity_ur i:sip:[hidden email] > watcher_username: 11111
> watcher_domain: sip.test.com.pl
> to_user: 11111
> to_domain: sip.test.com.p
> so it means my user 11111 wants to look BLF of itself. And when a connection
> goes from certain server to user 11111 it uses IP in Invite, not a domain
> name. When it happens, my BLF doesn't work although my user has a
> subscription. If I use a domain name in this Invite - it works ok. But the
> problem is, that I have many domains, pointing to one IP. My users can use
> all domains. So, how can I make Opensips BLF module work domain
> independently? My users should use BLF in every domain.
> View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/BLF-with-only-one-domain-tp7607133.html > Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
> Users mailing list
> [hidden email] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
I could set this module, and set a variable ($var(bla_pres)) to
$var(bla_pres) = "sip:" + $au + "@" + "192.168.0.111";
burt active_watchers table still show auto-generated values. Why is that? Did I miss something?
That param will not help you (if I correctly understand your scenario).
Even if you leverage all the presentities at subscription time, what
about NOTIFY time. Here is the my case:
* A@dom1 subscribers to B@dom1
* in opensips, in SUBSCRIBE, you change B@dom1 into B@dom2
* when you have a call involving B@dom2, a NOTIFY with B@dom2 will
* A@dom1 receives a NOTIFY for B@dom2, for which A never subscribed
Asterisk sends Invites to Opensips to an IP, eg. 192.168.0.110. Opensips listens on this IP, but it has also a few domains:
There are users, that uses different domain names to register to OpenSips. If one user registers to domain sip1.com, and he wants to know BLF states of other user which registers to sip2.com, it can't be done, because asterisk sends invite with an IP and SIP Presentity doesn't match. So I wanted to store every subscription with and IP(eg.: firstname.lastname@example.org instead of email@example.com in active_watchers), even a user uses domain name. Ok, I can do it to tell a user to register using an IP, but I want them to use domain names instead of IP. So I wanted to use modparam("presence", "bla_presentity_spec", "$var(bla_pres)") to change it, but I might don't understand what it should do.
Before subscription, every data has to be loaded to cache and/or to database. If I want to change presentity_uri I can do it manually before subscription route is called. But I have to find out what variable I should set. Is anybody here who knows which variable store presentity_uri just to change it before saving into cache/database? I think this is the only way to change it.