[cisco-voip] Java Function for UCCX

Matthew Loraditch MLoraditch at heliontechnologies.com
Tue Feb 23 13:36:19 EST 2010


Tanner,
I am getting the attached now.
Could the brackets in  the string be messing things up?
Thanks again!


Matthew Loraditch, CCNA
1965 Greenspring Drive
Timonium, MD 21093 
support at heliontechnologies.com
(p) (410) 252-8830
(F) (443) 541-1593

Visit us at www.heliontechnologies.com 
Support Issue? Email support at heliontechnologies.com for fast assistance!


-----Original Message-----
From: Tanner Ezell [mailto:tanner.ezell at gmail.com] 
Sent: Tuesday, February 23, 2010 1:21 PM
To: Matthew Loraditch
Cc: cisco-voip at puck.nether.net
Subject: Re: [cisco-voip] Java Function for UCCX

Oh, I thought you were referring to 'User' being a data structure.
This is simple then.

Assume 'Users' has your string

username = Users.substring(Users.indexOf("id=") + 3,Users.lastIndexOf(",") )

Cheers,
Tanner Ezell

On Tue, Feb 23, 2010 at 12:30 PM, Matthew Loraditch <MLoraditch at heliontechnologies.com> wrote:
> Attached,
> That string is the what selectedResource is set to by the system.
> So if I output selectedResource I get the string (w/o quotes): " User[type=Call Manager User,id=usersname,authenticated=true]"
> I need to clean that up to be just what id is equal to Make sense?
>
>
> Matthew Loraditch, CCNA
> 1965 Greenspring Drive
> Timonium, MD 21093
> support at heliontechnologies.com
> (p) (410) 252-8830
> (F) (443) 541-1593
>
> Visit us at www.heliontechnologies.com
> Support Issue? Email support at heliontechnologies.com for fast assistance!
>
> -----Original Message-----
> From: Tanner Ezell [mailto:tanner.ezell at gmail.com]
> Sent: Tuesday, February 23, 2010 12:26 PM
> To: Matthew Loraditch
> Cc: cisco-voip at puck.nether.net
> Subject: Re: [cisco-voip] Java Function for UCCX
>
> Can you clarify where this is coming from?
>
> Is User an array? if so, User[1] would be the id.
>
> Perhaps a screenshot of the relevant part of the script would be helpful.
>
> On Tue, Feb 23, 2010 at 12:18 PM, Matthew Loraditch <MLoraditch at heliontechnologies.com> wrote:
>> I need to clean out this string to be just the user id. I am pulling
>> the selected resource from a script and writing to a custom DB,
>>
>> The value the system uses is this: User[type=Call Manager
>> User,id=usersname,authenticated=true]
>>
>> I need just the portion for user id. It's variable length so I'm not
>> sure how to deal with that.
>>
>>
>>
>> Thanks!!
>>
>>
>>
>>
>>
>> Matthew Loraditch, CCNA
>> 1965 Greenspring Drive
>>
>> Timonium, MD 21093
>> support at heliontechnologies.com
>> (p) (410) 252-8830
>> (F) (443) 541-1593
>>
>> Visit us at www.heliontechnologies.com Support Issue? Email
>> support at heliontechnologies.com for fast assistance!
>>
>>
>>
>> _______________________________________________
>> cisco-voip mailing list
>> cisco-voip at puck.nether.net
>> https://puck.nether.net/mailman/listinfo/cisco-voip
>>
>>
>
>
>
> --
> Regards,
> Tanner Ezell
>



-- 
Regards,
Tanner Ezell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture2.GIF
Type: image/gif
Size: 31768 bytes
Desc: Capture2.GIF
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20100223/10d4abec/attachment.gif>


More information about the cisco-voip mailing list