cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2603
Views
5
Helpful
5
Replies

Photo Retrieval in Jabber Using UDS Directory Service

Ben Morgan
Level 3
Level 3

I'm using a UDS Directory as I'm in the mist of configuring RMA etc. I having issues trying with photo retrieval from a web server.

Photos are not being displayed on J4W, J4iPhone or J4iPad. So I'm thinking its a global problem with my configuration.

Snippet of my jabber-config.xml file

<Directory>
   <DirectoryServerType>UDS</DirectoryServerType>
   <PhotoUriWithToken>http://webservername.domain:9080/Photos/%%uid%%.jpg</PhotoUriWithToken>
 </Directory>

The Photo Cache is downloaded, I cant view whats in the cache, so I'm not sure if it is bringing down the photo or not.

From the same laptop, I can browse directly to the above webpage and view the photos. So I know the webserver can accept requests.

The photos are a little larger than the recommended size, but I read Jabber will resize down to appropriate size.

Is there any other configuration that needs to be done within the jabber-config.xml file or with CUCM/IMP config pages?

 

Any assistance is appreciated.

Thanks

Ben

5 Replies 5

Dennis Mink
VIP Alumni
VIP Alumni

unsure what version you are using, but here is what is required:

URI substitution

Cisco Jabber for Windows dynamically builds a URL to contact photos with a directory attribute and a URL template.

To use this method, set the following values in your configuration file:
  1.  Specify true as the value of the PhotoUriSubstitutionEnabled parameter.
  2.  Specify a directory attribute to use as a dynamic token as the value of the PhotoUriSubstitutionToken parameter; for example,
    <PhotoUriSubstitutionToken>sAMAccountName</PhotoUriSubstitutionToken>
  3.  Specify the URL and the dynamic token as the value of the PhotoUriWithToken parameter; for example,
    <PhotoUriWithToken>http://staffphoto.example.com/sAMAccountName.jpg</PhotoUriWithToken>

With the example values in the preceding steps, the sAMAccountName attribute might resolve to msmith in your directory. Cisco Jabber for Windows then takes this value and replaces the token to build the following URL: http://staffphoto.example.com/msmith.jpg.

Please remember to rate useful posts, by clicking on the stars below.

I thought this was only for EDI Directory Integration? I'll give it a go and let you know.

 

Thanks

Ben

Removed all <photoUri... lines and added in the following line in the jabber-config.xml file and all works fine now.

<UdsPhotoUriWithToken>http://webserver.domain/photos/%%uid%%.jpg</UdsPhotoUriWithToken>

thanks for sharing the solution

Please remember to rate useful posts, by clicking on the stars below.

Roger Jin
Level 1
Level 1

After added below with UDS deployment, I still can't see photo in the Jabber. All photos can be opened by browser.

 

<UdsPhotoUriWithToken>http://10.153.15.1/pic/%%uid%%.jpg</UdsPhotoUriWithToken>

 

Could anybody give me same idea??

 

Thanks