Dismiss Notice
We would like to remind you that we’re updating our login process for all 3CX forums whereby you will be able to login with the same credentials you use for the Partner or Customer Portal. Click here to read more.

3cx Call Control Api - Add Codecs to Extension

Discussion in '3CX Phone System - General' started by gehtmaguad, Apr 3, 2018.

Thread Status:
Not open for further replies.
  1. gehtmaguad

    Nov 22, 2017
    Likes Received:

    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;

    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
Thread Status:
Not open for further replies.