how to identify the extension that is making the call

VitalPBX Community Support General Discussion how to identify the extension that is making the call

  • Post
    jhaguilar
    Participant
    Up
    0
    Down
    ::
    I am deserealizing the call queue but I have not been able to determine which property contains the identification of the extension that is making the call.

     

    // Root myDeserializedClass = JsonConvert.DeserializeObject<Root>(myJsonResponse);

    public class Member    {

    public string extension { get; set; }

    public string @interface { get; set; }

    public int extension_id { get; set; }

    public int penalty { get; set; }

    public bool diversions { get; set; }

    public string type { get; set; }

    public string name { get; set; }

    }

     

    public class Datum    {

    public int queue_id { get; set; }

    public int extension { get; set; }

    public object queue_vip_list_id { get; set; }

    public object ivr_id { get; set; }

    public object queue_callback_id { get; set; }

    public object cron_profile_id { get; set; }

    public string description { get; set; }

    public object prefix { get; set; }

    public int destination_id { get; set; }

    public object hangup_destination_id { get; set; }

    public string strategy { get; set; }

    public int music_group_id { get; set; }

    public object weight { get; set; }

    public bool autofill { get; set; }

    public int maxlen { get; set; }

    public object announcement_id { get; set; }

    public int periodic_announcement_id { get; set; }

    public object join_announcement_id { get; set; }

    public bool record { get; set; }

    public object servicelevel { get; set; }

    public int wrapuptime { get; set; }

    public object announce_frequency { get; set; }

    public object min_announce_frequency { get; set; }

    public object periodic_announce_frequency { get; set; }

    public string announce_round_seconds { get; set; }

    public bool announce_to_first_user { get; set; }

    public string announce_position { get; set; }

    public object announce_position_limit { get; set; }

    public bool relative_periodic_announce { get; set; }

    public bool announce_holdtime { get; set; }

    public object penaltymemberslimit { get; set; }

    public string autopause { get; set; }

    public bool ringinuse { get; set; }

    public object memberdelay { get; set; }

    public bool timeoutrestart { get; set; }

    public string joinempty { get; set; }

    public string timeoutpriority { get; set; }

    public int timeout { get; set; }

    public int queue_timeout { get; set; }

    public string leavewhenempty { get; set; }

    public int retry { get; set; }

    public int tenant_id { get; set; }

    public string name { get; set; }

    public bool answered_elsewhere { get; set; }

    public string agents_context { get; set; }

    public List<Member> members { get; set; }

    }

     

    public class Root    {

    public string status { get; set; }

    public object message { get; set; }

    public List<Datum> data { get; set; }

    }

    0
Viewing 2 replies - 1 through 2 (of 2 total)
  • Replies
    Up
    0
    Down
    ::
    This is not part of VitalPBX. Actually, don’t know from where you get that code, or what technology are you using to get Queues information.
    0
    jhaguilar
    Participant
    Up
    0
    Down
    ::
    Hello, I am connecting through the API and create a JSON that identifies which extension is making the call. With SONATA_SWITCHBOARD, the extension that made the call appears in the interface. I want to know what property or attribute the current call has so that when it receives a call from the ABC extension, an alternate event or activity is generated.
    0
Viewing 2 replies - 1 through 2 (of 2 total)

Tagged: 

  • The forum ‘General Discussion’ is closed to new topics and replies.