[cisco-voip] UCCX Script
Sean Walberg
swalberg at gmail.com
Mon Oct 26 09:23:02 EDT 2009
If you build an XML file like
<Numbers>
<Number id="5555551212">deny</Number>
<Number id="5555555656">deny</Number>
</Numbers>
You can parse it:
// phoneNumber is the number
// Xpath, result are of type String
// mydoc is of type Document
Set Xpath = "/descendant::Numbers/child::Number[attribute::id='" +
phoneNumber + "']"
mydoc = CreateFileDocument("numbers.xml")
mydoc = CreateXMLDocument(mydoc)
result = GetXMLDocumentData(mydoc, xpath)
if (result == "deny") then...
Sean
On Mon, Oct 26, 2009 at 5:40 AM, Ratko Dodevski <rade239 at gmail.com> wrote:
> No more than 35-40 numbers... maybe even less
>
>
> On Mon, Oct 26, 2009 at 11:27 AM, Philip Walenta <pwalenta at wi.rr.com>wrote:
>
>> How big of a list of numbers will this xml file contain?
>>
>>
>>
>> *From:* cisco-voip-bounces at puck.nether.net [mailto:
>> cisco-voip-bounces at puck.nether.net] *On Behalf Of *Ratko Dodevski
>> *Sent:* Monday, October 26, 2009 4:42 AM
>> *To:* cisco-voip at puck.nether.net
>> *Subject:* [cisco-voip] UCCX Script
>>
>>
>>
>> Hi,
>> Can someone help me a script? I need a script that would look in a xml
>> file that contains list of telephone numbers and based on that search it
>> allows or denies the call.
>>
>> thanks in advanced
>>
>> --
>> Ratko
>>
>
>
>
> --
> Ratko
>
> _______________________________________________
> cisco-voip mailing list
> cisco-voip at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-voip
>
>
--
Sean Walberg <sean at ertw.com> http://ertw.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20091026/98e6e6af/attachment.html>
More information about the cisco-voip
mailing list