Hello, I wish to have a single domain across multiple profiles. For registrations and calls it works perfectly. Having a shared database for all profiles, using sofia_contact with "<anyprofile>/<user>@<domain>" gives back the full dialstring with the profile where the phone is currently registered. Now I was trying to do some MWI accross those profiles, and it appears that some phones have the NOTIFY message every time they register, and some other do not receive. Any reason? Also, when a phone is configured to SUBSCRIBE for MWI, it doesn't receive NOTIFYs when a new message is on the voicemail. The only thing that appears wrong is this console message: 2010-08-25 16:09:57.578144 [ERR] sofia_presence.c:316 Cannot find profile <domain> - Does the profile need to have an alias to a particular domain for presence/MWI subscriptions to work? - Is it possible somehow to have multiple profiles aliased to a same domain? If not, what is the recommended way to share presence or MWI across profiles? Thank you, François.
I had this problem too, although I'm using different domains on different profiles. I had to alias each domain I was using to the profile the phones would use. When the phones subscribe to their MWI, freeswitch looks for the domain that is being subscribed to, and it has to exist. I don't know if you can have the same domain aliased to more than one profile. I haven't tried that. Anyone else? François Delawarde wrote:
Hello,
I wish to have a single domain across multiple profiles. For registrations and calls it works perfectly. Having a shared database for all profiles, using sofia_contact with "<anyprofile>/<user>@<domain>" gives back the full dialstring with the profile where the phone is currently registered.
Now I was trying to do some MWI accross those profiles, and it appears that some phones have the NOTIFY message every time they register, and some other do not receive. Any reason?
Also, when a phone is configured to SUBSCRIBE for MWI, it doesn't receive NOTIFYs when a new message is on the voicemail. The only thing that appears wrong is this console message:
2010-08-25 16:09:57.578144 [ERR] sofia_presence.c:316 Cannot find profile <domain>
- Does the profile need to have an alias to a particular domain for presence/MWI subscriptions to work?
- Is it possible somehow to have multiple profiles aliased to a same domain? If not, what is the recommended way to share presence or MWI across profiles?
Thank you, François.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Make sure the profile responsible for that domain has an alias for that domain on it. /b On Aug 25, 2010, at 9:46 AM, Tim St. Pierre wrote:
I had this problem too, although I'm using different domains on different profiles.
I had to alias each domain I was using to the profile the phones would use. When the phones subscribe to their MWI, freeswitch looks for the domain that is being subscribed to, and it has to exist. I don't know if you can have the same domain aliased to more than one profile. I haven't tried that.
Anyone else?
On Wed, 2010-08-25 at 09:52 -0500, Brian West wrote:
Make sure the profile responsible for that domain has an alias for that domain on it.
Ok, but is it possible to have more than one profile responsible for a domain for some type of multi-homed setup? I tried using a single presence db for all profiles with: <param name="dbname" value="share_presence"/> It works well with the 'sofia_contact' command, using: sofia_contact <any_profile_name>/<myuser>@<mydomain> It will return the dialstring with the profile where the phone was registered (no need to know it beforehand). Thanks, François.
On Aug 25, 2010, at 10:32 AM, François Delawarde wrote:
Ok, but is it possible to have more than one profile responsible for a domain for some type of multi-homed setup?
NO.
I tried using a single presence db for all profiles with: <param name="dbname" value="share_presence"/>
Sure. But thats more for calling users registered.
It works well with the 'sofia_contact' command, using: sofia_contact <any_profile_name>/<myuser>@<mydomain>
It will return the dialstring with the profile where the phone was registered (no need to know it beforehand).
Thanks, François.
On Wed, 2010-08-25 at 10:37 -0500, Brian West wrote:
On Aug 25, 2010, at 10:32 AM, François Delawarde wrote:
Ok, but is it possible to have more than one profile responsible for a domain for some type of multi-homed setup?
NO.
I tried using a single presence db for all profiles with: <param name="dbname" value="share_presence"/>
Sure. But thats more for calling users registered.
Well I just tested and... IT SEEMS TO WORK (at least with MWI, will test other presence stuff later)!!! I did the following: sofia.conf.xml: <profile name="profile0"> <domains> <domain name="all" alias="true" parse="true"/> </domains> <settings> <param name="dbname" value="shared_presence"/> ... </settings> </profile> <profile name="profile1"> <settings> <param name="dbname" value="shared_presence"/> ... </settings> </profile> <profile name="profile2"> <settings> <param name="dbname" value="shared_presence"/> ... </settings> </profile> And whatever domain and profile the phone connects to, it just works! The only trick is that they all need to have the same dbname, and one of them needs to have an alias to all domains. Also, in all the domain configuration something like: <param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}"/> will work even if phones are connected to profile2 or profile1!! That's an awesome feature, and FreeSwitch rocks again! Now I just hope it's an intended feature and not just a bug... By the way sorry, I should have tested this before sending crap on the ML. Brian, as you previously said it was not possible: is this something normal and "supported"? Thanks, François
The issue is you want the generic MWI to figure out which profile to send the notify out... it can't what you want is a feature request. You can NOT have the same domain on multiple profiles not doable. /b On Aug 25, 2010, at 10:57 AM, François Delawarde wrote:
hat's an awesome feature, and FreeSwitch rocks again! Now I just hope it's an intended feature and not just a bug... By the way sorry, I should have tested this before sending crap on the ML.
Brian, as you previously said it was not possible: is this something normal and "supported"?
On Wed, 2010-08-25 at 11:01 -0500, Brian West wrote:
The issue is you want the generic MWI to figure out which profile to send the notify out... it can't what you want is a feature request. You can NOT have the same domain on multiple profiles not doable.
Then it's a bug, because MWI works beautifully across profiles with the previous trick (did you try?). I believe it's because FreeSwitch uses the "profile_name" stored in database to do whatever its work is. If database is shared between all profiles, then having a bogus profile with all domains aliased to it is enough for Freeswitch to find the database and once the "select" is done, it just uses the db field. At least that's how sofia_contact does the trick, the profile passed in parameter is not used to build the reply, only the "profile_name" field in "sip_registrations". Best bug ever, please don't repair it! François.
No the bonding of profiles is fine... and makes sofia_contact behave differently... thats a totally different use case... The bottom line is you can't have the same domain aliased on multiple profiles... thats all I said in my first response. If this works for you then thats fine I'm pretty sure that was our intended behavior for this use. /b On Aug 25, 2010, at 12:03 PM, François Delawarde wrote:
Then it's a bug, because MWI works beautifully across profiles with the previous trick (did you try?).
I believe it's because FreeSwitch uses the "profile_name" stored in database to do whatever its work is. If database is shared between all profiles, then having a bogus profile with all domains aliased to it is enough for Freeswitch to find the database and once the "select" is done, it just uses the db field.
At least that's how sofia_contact does the trick, the profile passed in parameter is not used to build the reply, only the "profile_name" field in "sip_registrations".
Best bug ever, please don't repair it!
François.
Well if it was intended that's a very nice and important feature for multi-homed setups, thanks! I'll test more presence stuff and try to write something about this in the wiki because there seem to be lots of confusion about the sharing of presence across profiles. As many people, I tended to think it would need a feature request as well, as domains would need to be aliased on multiple profiles which is impossible. Now I know there is no need in doing that to make it work. Thanks, François. On Wed, 2010-08-25 at 12:08 -0500, Brian West wrote:
No the bonding of profiles is fine... and makes sofia_contact behave differently... thats a totally different use case... The bottom line is you can't have the same domain aliased on multiple profiles... thats all I said in my first response. If this works for you then thats fine I'm pretty sure that was our intended behavior for this use.
/b
participants (3)
-
Brian West
-
François Delawarde
-
Tim St. Pierre