add_sipaccount
Description
Adds a sip account to a client account.
Parameters
client_account_code username password register ip_address port codec1 --- [ "G729,PCMA,PCMU" ] codec2 codec3 codec4 bypass_media --- [ "bypass_media", "bypass_media_after_bridge", "proxy_media" ] sip_force_contact --- [ "NDLB-connectile-dysfunction" ] sip_force_expires callerid_name callerid_number pass_thru_callerid voicemail voicemail_password cli_debug enabled
Request
curl -X POST \-H "Authorization: Token d37fa8c4e008fec158070b1b4aea5f0db3d6a06e" \ -H "Content-Type: application/json" \ -d '{ "client_account_code": "1828213528", "username": "herve333", "password": "cat1234", "ip_address": null, "cli_debug": "false", "voicemail_password": "1234", "voicemail": "true", "register": "true", "port": 5060, "pass_thru_caller_id": "false", "caller_id_name": "Errol S", "caller_id_number": "19173001321", "sip_force_contact": "NDLB-connectile-dysfunction", "bypass_media": "bypass_media_after_bridge", "sip_force_expires": 360, "codec1":"PCMA", "codec2":"PCMU", "enabled": "true"}' \ -k https://your.domain.com/api/users/add_sipaccount
Response
{ "status": "success", "results": { "username": "herve333", "client_account_code": "1828213528" "cli_debug": false, "custom_sip_headers": null, "voicemail_password": null, "voicemail": "true", "register": "true", "enabled": "true", "port": 5060, "pass_thru_caller_id": false, "caller_id_name": "Errol S", "caller_id_number": "19173001321", "sip_force_contact": "NDLB-connectile-dysfunction", "bypass_media": "bypass_media_after_bridge", "sip_force_expires": 360, "password": "cat1234", "ip_address": null, "id": 398948402432364, "codec1": 2, "codec2": 3, "codec3": null, "codec4": null, } }