cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
864
Views
0
Helpful
0
Replies

Alternate extensions - position 38?

stephan.steiner
Spotlight
Spotlight

Hi

In the past few weeks, my CUPI code has run into a snag whenever I wanted to add mobile number as alternate extensions to an existing mailbox.

My code would extract all alternative extensions, find the highest IdIndex, increment it by one, and add the new alternate extension with this Id. That used to work fine.. and now, without having updated CUCN, it no longer does.

What I found is that for these mailboxes, I have two alternate extensions. One being the user's primary extension, at IdIndex 0 and of type Primary, the other being the user's SIP URL (ext=userid@domain), at IdIndex 38. So, my code would try to add the mobile number at IdIndex 39 which fails:

error Invalid IDIndex passed to AddAlternateExtension:39

If instead I don't consider any items that start with ext=, then my code picks IdIndex 1 and that works just fine.

So, I'm curious as to why there's suddenly two extensions... could that have something to do with CUCM Upgrades (as I said, Unity wasn't upgraded in a long time).

0 Replies 0