Is there a way to check if a user is registered locally? I have the following Scanrio: If a call comes in from an external gateway then Freeswitch1 shall check if the destination UA is registered locally. If not then redirect (302) the call to Freeswitch2. But how to determine that the UA who shall receive the call is registered here? Is there another way instead of - trying o bridge - and if it fails take the next condition? Best regards Peter
${sofia_contact(user@domain)} will return "error/user_not_registered" /b On Nov 20, 2008, at 8:41 AM, Peter P GMX wrote:
Is there a way to check if a user is registered locally?
I have the following Scanrio: If a call comes in from an external gateway then Freeswitch1 shall check if the destination UA is registered locally. If not then redirect (302) the call to Freeswitch2. But how to determine that the UA who shall receive the call is registered here? Is there another way instead of - trying o bridge - and if it fails take the next condition?
Best regards Peter
On Thu, Nov 20, 2008 at 6:58 AM, Brian West <brian@freeswitch.org> wrote:
${sofia_contact(user@domain)} will return "error/user_not_registered"
/b
Side note: if you wanted to check from the CLI then is this correct? sofia status profile internal reg user@domain Or is there better way? (The above worked for me for testing a locally reg'd user but I want to confirm the most appropriate way to do it.) -MC
"sofia_contact user@domain" will also work at the CLI :P /b On Nov 20, 2008, at 9:18 AM, Michael Collins wrote:
Side note: if you wanted to check from the CLI then is this correct?
sofia status profile internal reg user@domain
Or is there better way? (The above worked for me for testing a locally reg'd user but I want to confirm the most appropriate way to do it.)
-MC
On Thu, Nov 20, 2008 at 7:22 AM, Brian West <brian@freeswitch.org> wrote:
"sofia_contact user@domain" will also work at the CLI :P
/b
I swear I tried that and got an unknown command! Of course, when I tried it again it worked perfectly. My punishment will be to put this in the wiki somewhere... :D -MC
participants (3)
-
Brian West
-
Michael Collins
-
Peter P GMX