Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] javascript access to conf/directory/defau


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
anthony.minessale at g...
Guest





PostPosted: Thu Nov 13, 2008 8:58 am    Post subject: [Freeswitch-users] javascript access to conf/directory/defau Reply with quote

there are few api commands that will let you fetch xml from the directory for either a whole domain
or a single user. "xml_locate" you can figure out how to work it from the cli where it also works.



On Wed, Nov 12, 2008 at 6:49 PM, John Wehle <john@feith.com (john@feith.com)> wrote:
Quote:
I've written a javascript program which allows a caller to lookup an
extension by entering the person's name using DTMF. Currently the
list of name people / extensions is hardcoded.

How do I iterate through conf/directory/default from javascript in order
to dynamically build a table containing everyone's effective_caller_id_name
and effective_caller_id_number instead of hardcoding it? Does FreeSWITCH
load this into a registry of some type at startup and if so how do I access
the registry from javascript?

Likewise is there an easy way from javascript to determine the voicemail
path (currently it is also hardcoded)? I use it in order to play the
recorded_name (if present) for an extension when doing the lookup.

-- John
-------------------------------------------------------------------------
| Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com (john@feith.com) |
| John Wehle | Fax: 1-215-540-5495 | |
-------------------------------------------------------------------------


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
anthony.minessale at g...
Guest





PostPosted: Fri Nov 14, 2008 8:39 pm    Post subject: [Freeswitch-users] javascript access to conf/directory/defau Reply with quote

that's correct.
It was a bug.
Fixed in tree.


On Fri, Nov 14, 2008 at 3:56 PM, John Wehle <john@feith.com (john@feith.com)> wrote:
Quote:
Okay if I do:

xml_locate directory domain name 192.251.93.2

at the CLI I get XML. However, if I run the script:

var d = apiExecute ("xml_locate", "directory domain name 192.251.93.2");
console_log ("err", "D " + d + "\n");

it appears that d is empty. Though:

var d = apiExecute ("status", "");
console_log ("err", "D " + d + "\n");

works fine.

What's the proper way to invoke xml_locate from javascript?

-- John
-------------------------------------------------------------------------
| Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com (john@feith.com) |
| John Wehle | Fax: 1-215-540-5495 | |
-------------------------------------------------------------------------


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services