Can you please help with API Program?

Discussion in '3CX Phone System - General' started by paul.obrien, Nov 2, 2010.

Thread Status:
Not open for further replies.
  1. paul.obrien

    Joined:
    Sep 12, 2007
    Messages:
    19
    Likes Received:
    0
    Hi All

    I'm trying to create a program using the 3CX Call Control API - I want to be able to read the forwarding status of a particular extension - with the abilty to change the forwarding destination from within the program. I have to say I am completely stuck! I have downloaded the examples, but I'm unsure where to go from here. Can anyone help please?

    Cheers

    Paul
     
  2. abc123

    abc123 Active Member

    Joined:
    Nov 9, 2009
    Messages:
    712
    Likes Received:
    1
    when you say "forwarding status" what exactly do you mean? The extensions current status (e.g. available, away, out of office etc.)?

    If that is what you mean then you can get the array of forwarding rules for the extension and then change the relevant rules "Forward" property.

    Remember the forwarding rules are a zero based array and 3cx processes them in index order lowest first.

    Also remember not to CHANGE the current forwarding rules array but to create a new array using CreateForwardingRule and apply them to the extension
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. paul.obrien

    Joined:
    Sep 12, 2007
    Messages:
    19
    Likes Received:
    0
    Mark

    Thanks for the reply - rather than changing the status, I wish to change the forwarding destination- so in this case the external number that the extension is forwarding to.

    Paul
     
  4. abc123

    abc123 Active Member

    Joined:
    Nov 9, 2009
    Messages:
    712
    Likes Received:
    1
    Paul

    The steps I mentioned would do that, but are you talking about doing it on the fly?

    e.g. Call comes in to ext1, ext1 call forwarding says forward to external1 but you want to look at the callerid of this call and if it is callerx then forward it to external2 otherwise let it go to external1?

    That type of scenario?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Thread Status:
Not open for further replies.