Add Extension to Line URI Using OcsConfigureTelUri.wsf

Dotaz Add Extension to Line URI Using OcsConfigureTelUri.wsf

  • Thursday, May 27, 2010 10:35 PM
     
     

    My boss wants me to figure out how to add extensions to the end of the Line URI field using the OcsConfigureTelUri script.  I've got the script working to add the full phone number, but my boss told me that the message says enter your phone number or extension so he's afraid people will enter their extension but it won't work.  We have extensions listed separately in AD in the IP Phone field.  I've taken a basic scripting class, but that script is well beyond my grasp of figuring out how to add that extra bit.  So basically I want the line of text to be...  tel:+1xxxxxxxxxx;ext=1xxxx.  Our extensions are 5 digits.  Anyone have a clue how to edit the script to make that work?

    Thanks!

    Brian

All Replies

  • Friday, May 28, 2010 1:54 AM
     
     

    This post might help:

    http://social.technet.microsoft.com/Forums/en/ocsvoice/thread/1ba86abe-c903-4f17-9ccf-73853c8ca618

    Please let me know if it doesn't

    Mark


    Mark King | MCTS:UC Voice | MCSE: Messaging | MCITP:Enterprise Messaging | CCNA | www.unplugthepbx.com
  • Friday, May 28, 2010 2:36 PM
     
     

    Thanks for the reply.  I saw that one.  It looks to me like he's just taking the last 4 digits from the phone number to creat the extension and then only using the extension.  Am I wrong about that?  I need to take the extension from the IP Phone field in AD and append it to the end of the full phone number so the format is tel:+1xxxxxxxxxx;ext=1xxxx.

    Brian