API - Channel¶
API Channel se foloseste pentru a manipula apelurile din centrala.
Datele se transmit prin POST sau GET¶
API URL¶
https://[YOUR-PBX-URL]/api/channel
List - show all channels¶
Array ( [action] => list [api_hash] => 0f25e797e72d0dbba96d2c571a7bd6ba )
Hangup - request that a specified channel or all channels be hungup¶
Array ( [action] => hangup [data] => Array ( [channel] => SIP/john-doe-00000027 ) [api_hash] => 0f25e797e72d0dbba96d2c571a7bd6ba )
Originate - create a new channel and have it connect to either a dialplan extension or a specific application¶
Catre application¶
Array ( [action] => originate [data] => Array ( [tech] => SIP/john-doe [appname] => Playback [appdata] => test-file ) [api_hash] => 0f25e797e72d0dbba96d2c571a7bd6ba )
Catre extension¶
Array ( [action] => originate [data] => Array ( [tech] => SIP/john-doe [exten] => 10 [context] => internal ) [api_hash] => 0f25e797e72d0dbba96d2c571a7bd6ba )
Redirect - redirect an existing channel to a dialplan extension¶
Array ( [action] => redirect [data] => Array ( [channel] => SIP/john-doe-00000027 [context] => internal [exten] => 504 [priority] => 1 ) [api_hash] => 0f25e797e72d0dbba96d2c571a7bd6ba )
Go to top