SIP & Inward Dialing APIsAdding Third Party SIP Server

This API is used to specify a SIP server that you may want to use for call routing. You can then route all the calls through this SIP server.

Parameters
op setsipserver
host URL of the SIP proxy server that you wish to use.
username Username to be used at the specified ‘host’.
password Password to be used at the specified ‘host’.
cookie [optional] Cookie which was obtained using ‘login’.
id [optional] Identifier of the SIP server
auth [optional] SIP auth name to be used at the specified ‘host’.
Sample Request URL
http://api.tringme.com/api.php ?op=setsipserver &host=sip.somesipdomain.com &username=joedirt &password=joedirt123 &apikey=b123456789012345678 90123456789012345 &sig=f12345678901234567 89012345678901
Expected Response
OK <id>
Sample Responses
OK
OK 1234567890123456789012345678901

Deleting a SIP Server

This API is used to delete a SIP server which was added using ‘setsipserver’.

Parameters
op deletesipserver
host URL of the SIP proxy server that you wish to use.
username Username to be used at the specified ‘host’.
password Password to be used at the specified ‘host’.
auth SIP auth name to be used at the specified ‘host’.
cookie [optional] Cookie which was obtained using ‘login’.
id [optional] Identifier of the SIP server
Sample Request URL
http://api.tringme.com/api.php ?op=createuser &email=joe.dirt%40somedomain.com &name=Joe+Dirt &password=joedirt &apikey=b1234567890123456789 0123456789012345 &sig=f123456789012345 6789012345678901
Expected Response
'OK <id>'.
Sample Responses
OK 1234567890123456789012345678901

Mapping Channel to DID (Direct Inward Dialing)

DID vendor map DIDs to sip addresses. You can map a DID to a channel just by mapping channel’s SIP address as described in the Accessing Channels using SIP section

If you are an enterprise and would like to know better how TringMe can help you reduce cost and at the same time benefit you,
please send a mail to bizdev@tringme.com