3cx Call Control Api - Add Codecs to Extension

Status
Not open for further replies.

gehtmaguad

Joined
Nov 22, 2017
Messages
1
Reaction score
0
Hi,

I'm trying to create new extensions and associate them with existing codecs. I'm creating the extension with the following code:

newExt = PhoneSystem.Root.GetTenants()[0].CreateExtension(newExtNumber);
newExt.FirstName = newExtFirstName;
newExt.AuthPassword = newExtPassword;
newExt.AuthID = newExtAuthId;
newExt.Save();

However, I haven't found a way to associate the extension with one or more of the defined codecs.

I also tried doing it the other way around, fetching the codecs first and then assign them extensions.
However, there seems no way to do this either:

foreach (Codec c in PhoneSystem.Root.GetCodecs())
{
System.Console.WriteLine("Codec: " + c.ToString());
// Access extensions associated with codec
}

Is there a way do create a relationship between codecs and extensions using the Call Control Api?

Kind regards
Markus Hösel
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
111,885
Messages
589,544
Members
164,744
Latest member
johnblackwood1