user_exists / user_registered?
Hi there, You can call the api command user_exists - to see it the user is defined in the /directory. Is there an api command that tells you whether a user is currently registered? Like user_registered?? Thanks Pj
sofia_contact <user>@<domain>[/profile] On Thu, Apr 29, 2010 at 2:58 PM, Phillip Jones <pjintheusa@gmail.com> wrote:
Hi there,
You can call the api command user_exists - to see it the user is defined in the /directory.
Is there an api command that tells you whether a user is currently registered? Like user_registered??
Thanks
Pj
_______________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
Don't know of an endpoint independent one, but if all you care about is sip: sofia_contact is what you want to use. On Thu, Apr 29, 2010 at 2:58 PM, Phillip Jones <pjintheusa@gmail.com> wrote:
Hi there,
You can call the api command user_exists - to see it the user is defined in the /directory.
Is there an api command that tells you whether a user is currently registered? Like user_registered??
Thanks
Pj
_______________________________________________ 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
-- -Rupa
Phillip, perhaos not the nicest way, but you could use sofia_contact. sofia_contact <profile>/<user id>@<domain> If it returns: error/user_not_registered then you know it is not registered. if it is, the answer would be a string starting with: sofia/<profile>/etc... David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur. Le 29/04/2010 à 21:58, Phillip Jones a écrit :
Hi there,
You can call the api command user_exists - to see it the user is defined in the /directory.
Is there an api command that tells you whether a user is currently registered? Like user_registered??
Thanks
Pj _______________________________________________ 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
Thank you all! On Thu, Apr 29, 2010 at 4:13 PM, David Ponzone <david.ponzone@gmail.com>wrote:
Phillip,
perhaos not the nicest way, but you could use sofia_contact.
sofia_contact <profile>/<user id>@<domain>
If it returns: error/user_not_registered then you know it is not registered.
if it is, the answer would be a string starting with: sofia/<profile>/etc...
David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34
Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com
*Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. **IPeva** décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.* * *
Le 29/04/2010 à 21:58, Phillip Jones a écrit :
Hi there,
You can call the api command user_exists - to see it the user is defined in the /directory.
Is there an api command that tells you whether a user is currently registered? Like user_registered??
Thanks
Pj _______________________________________________ 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
_______________________________________________ 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
Does it also tells you if a user is busy? If not, what should I do to find out if a user is on phone already so I can send the second call to some place else? Thanks, Henry On Thu, Apr 29, 2010 at 1:41 PM, Phillip Jones <pjintheusa@gmail.com> wrote:
Thank you all!
On Thu, Apr 29, 2010 at 4:13 PM, David Ponzone <david.ponzone@gmail.com>wrote:
Phillip,
perhaos not the nicest way, but you could use sofia_contact.
sofia_contact <profile>/<user id>@<domain>
If it returns: error/user_not_registered then you know it is not registered.
if it is, the answer would be a string starting with: sofia/<profile>/etc...
David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34
Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com
*Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. **IPeva** décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.* * *
Le 29/04/2010 à 21:58, Phillip Jones a écrit :
Hi there,
You can call the api command user_exists - to see it the user is defined in the /directory.
Is there an api command that tells you whether a user is currently registered? Like user_registered??
Thanks
Pj _______________________________________________ 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
_______________________________________________ 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
_______________________________________________ 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
-- Henry Huang UniC Solution - Communication Unified VoIP & Open Source software Consultant
A way, quite tricky, is mod_limit. Another way, afaik, is to query the internal DB. David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur. Le 30/04/2010 à 10:26, Henry Huang a écrit :
Does it also tells you if a user is busy? If not, what should I do to find out if a user is on phone already so I can send the second call to some place else?
Thanks,
Henry
On Thu, Apr 29, 2010 at 1:41 PM, Phillip Jones <pjintheusa@gmail.com> wrote: Thank you all!
On Thu, Apr 29, 2010 at 4:13 PM, David Ponzone <david.ponzone@gmail.com
wrote: Phillip,
perhaos not the nicest way, but you could use sofia_contact.
sofia_contact <profile>/<user id>@<domain>
If it returns: error/user_not_registered then you know it is not registered.
if it is, the answer would be a string starting with: sofia/<profile>/etc...
David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34
Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com
Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.
Le 29/04/2010 à 21:58, Phillip Jones a écrit :
Hi there,
You can call the api command user_exists - to see it the user is defined in the /directory.
Is there an api command that tells you whether a user is currently registered? Like user_registered??
Thanks
Pj _______________________________________________ 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
_______________________________________________ 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
_______________________________________________ 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
-- Henry Huang UniC Solution - Communication Unified VoIP & Open Source software Consultant _______________________________________________ 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
or provision the phone to only allow one call at a time and it will reject it when someone is on the phone. On Fri, Apr 30, 2010 at 3:36 AM, David Ponzone <david.ponzone@gmail.com>wrote:
A way, quite tricky, is mod_limit.
Another way, afaik, is to query the internal DB.
David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34
Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com
*Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. **IPeva** décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.* * *
Le 30/04/2010 à 10:26, Henry Huang a écrit :
Does it also tells you if a user is busy? If not, what should I do to find out if a user is on phone already so I can send the second call to some place else?
Thanks,
Henry
On Thu, Apr 29, 2010 at 1:41 PM, Phillip Jones <pjintheusa@gmail.com>wrote:
Thank you all!
On Thu, Apr 29, 2010 at 4:13 PM, David Ponzone <david.ponzone@gmail.com>wrote:
Phillip,
perhaos not the nicest way, but you could use sofia_contact.
sofia_contact <profile>/<user id>@<domain>
If it returns: error/user_not_registered then you know it is not registered.
if it is, the answer would be a string starting with: sofia/<profile>/etc...
David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34
Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com
*Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. **IPeva** décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.* * *
Le 29/04/2010 à 21:58, Phillip Jones a écrit :
Hi there,
You can call the api command user_exists - to see it the user is defined in the /directory.
Is there an api command that tells you whether a user is currently registered? Like user_registered??
Thanks
Pj _______________________________________________ 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
_______________________________________________ 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
_______________________________________________ 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
-- Henry Huang UniC Solution - Communication Unified VoIP & Open Source software Consultant _______________________________________________ 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
_______________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
participants (5)
-
Anthony Minessale
-
David Ponzone
-
Henry Huang
-
Phillip Jones
-
Rupa Schomaker