Picture of Piers 6740
Registered 1 year 133 days
Piers 6740 Wednesday, 12 July 2023, 12:04 PM
Agenda SDK Dialog: How to query the length of internal extension numbers
Is there an API to query the value that has been configured in the phone system for the length of internal extensions?

We would like to use this information in order to be able to know if a phone number that the user wants to dial is internal or external.

There are locations where external local phone numbers can be as short as three digits and there are sites where internal extensions can be five digits long. So we cannot use a hard coded value that would work for all customers.

If necessary, we could make this configurable in our software, but being able to query this from the phone system would be much more elegant.
Andreas Fink
Moderator Registered 12 years 277 days
Andreas Fink (innovaphone) Wednesday, 12 July 2023, 12:37 PM
Re: Agenda SDK Dialog: How to query the length of internal extension numbers
At the moment the property "maxIntern" that provides max. length if internal extensions for the specific node is provided with "AttachResult" of EpSignal API and with "RegisterResult" of PbxSignal API.

Is it sufficient for you or maybe are you using another specific API, where this information is missing?
Picture of Piers 6740
Registered 1 year 133 days
Piers 6740 Wednesday, 12 July 2023, 03:13 PM
Re: Agenda SDK Dialog: How to query the length of internal extension numbers
Thank you. The PbxSignal API would be great.

However, this page does not mention the property "maxIntern".

We haven't yet checked the actual RegisterResult contents.
But if these would indeed contain "maxIntern" then this would be a documentation issue.

Picture of Piers 6740
Registered 1 year 133 days
Piers 6740 Wednesday, 12 July 2023, 03:16 PM
Re: Agenda SDK Dialog: How to query the length of internal extension numbers
When I wrote "this page", I meant to refer to
Andreas Fink
Moderator Registered 12 years 277 days
Andreas Fink (innovaphone) Wednesday, 12 July 2023, 03:20 PM
Re: Agenda SDK Dialog: How to query the length of internal extension numbers
Yes, it seems to be. We will check and fix it.
Picture of Piers 6740
Registered 1 year 133 days
Piers 6740 Friday, 14 July 2023, 12:13 PM in response to Andreas Fink (innovaphone)
Re: Agenda SDK Dialog: How to query the length of internal extension numbers
Andreas,

As a followup to today's discussion in the Innovaphone Apps SDK Developer Forum, I've looked at both the SDK documentation and at our code to understand which API we are using today.

You mentioned the RCC API. I did not find anything there that seems to return the information we are querying.

Instead, we seem to take the information from the LoginResult of the myApps protocol.

However, what I see in the code does not really match what I see in the docs:

The LoginResult contains an "info" element which we parse.
In our code, we look for a "user" element within "info".

This element does not seem to be documented:
https://sdk.innovaphone.com/13r3/doc/appwebsocket/myApps.htm#Info

We then look for a "prefix" element within "user".
The "prefix" element contains information like "country", "area", "intl", etc.

It would be great if you could also provide the property "maxIntern" at this point.

In any case, there seems to be a documentation issue about "info" > "user".

Have a nice weekend.
← You can define your color theme preference here