[Freeswitch-users] javascript access to conf/directory/default
Anthony Minessale
anthony.minessale at gmail.com
Thu Nov 13 05:55:00 PST 2008
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 at feith.com> wrote:
> 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 at feith.com |
> | John Wehle | Fax: 1-215-540-5495 | |
> -------------------------------------------------------------------------
>
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at 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 at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20081113/5e042fcb/attachment-0002.html
More information about the FreeSWITCH-users
mailing list