update_sipaccount
Description
Modify an existing SIP Account.
ParametersÂ
sipaccount_id (mandatory field) username password register ip_address port codec1, 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 '{ "sipaccount_id": 398948402432364, "username": "herve333", "password": "tomtom1234", "caller_id_name": "Errol Samuels", "caller_id_number": "19173001321", "bypass_media": "bypass_media", "codec3": "GSM" Â }' \ -k https://your.domain.com/api/users/update_sipaccount
Response
{ "status": "success", "results": { "username": "herve333", "client_account_code": "1828213528" Â "cli_debug": false, "custom_sip_headers": null, "voicemail_password": null, "voicemail": true, "register": false, "enabled": true, "port": 5060, "pass_thru_caller_id": false, "caller_id_name": "Errol Samuels", "sip_force_contact": "NDLB-connectile-dysfunction", "bypass_media": "bypass_media", "caller_id_number": "19173001321", "sip_force_expires": 360, "password": "tomtom1234", "ip_address": null, "id": 398948402432364, "codec4": null, "codec1": 2, "codec2": 3, "codec3": null, } }