Jump to content

Rest API bug report


hsidhu

Recommended Posts

Hello ,

 

I am using rest api to create auto attendants account on pbx by using this method ` $vodiaObj->createAccount("localhost", array("account" => "66666", "type" => "attendants"));`

It creates the account no problem.

 

But when I try to change the name(display) for the account it changes the value for both primary_name and display field.

via using this method

 

`$vodiaObj->putUserSettings("localhost", "66666", array("display" => "Day IVR"));`

 

And When I pull settings via Rest api

`

 

{"acdani":"","ani":"","cdr_time":"","credit":"","dial_plan":"","dialog_state":"","dialog_subscribe":"","dialog_version":"","disabled":"","email_cdr":"","epid":"","location":"","max_call_duration":"","max_cdrs":"","need_license":"","param1":"","param2":"","param3":"","rb":"","rf":"","view_settings":"","visible":"","action":"","admin":"*","answer_wait":"","code_0":"","code_1":"","code_2":"","code_3":"","code_4":"","code_5":"","code_6":"","code_7":"","code_8":"*976662","code_9":"*976666","completion":"match","def_file":"","def_gap":"","display":"Day IVR","excluded":"","first_lang":"","flag":"","gap_0":"0","gap_1":"0","gap_2":"0","gap_3":"0","gap_4":"0","gap_5":"0","gap_6":"0","gap_7":"0","gap_8":"0","gap_9":"2","hangup":"","input_0":"","input_1":"","input_2":"","input_3":"","input_4":"","input_5":"","input_6":"","input_7":"","input_8":"334#","input_9":"333#","limited":"","min_digits":"1","moh":"","name_confirm":"false","name_trigger":"","night":"","operator":"","parameter":"","play_def":"false","prompt_0":"0","prompt_1":"0","prompt_2":"0","prompt_3":"0","prompt_4":"0","prompt_5":"0","prompt_6":"0","prompt_7":"0","prompt_8":"0","prompt_9":"0","record_code":"","record_ext":"","sd":"false","se":"false","second_lang":"","sl":"false","special_key":"true","timeout":"","verify":"true","wavfile":"","wc1":"555","wc2":"555","wc3":"555","wc4":"555","wc5":"555","welcome_loop":"","wf1":"recordings/att1_14.wav","wf2":"","wf3":"","wf4":"","wf5":"","comment":"","display":"Day IVR","name":"66666","text":"","wav":""}

`

 

I see that it has two 'display' keys in json

 

Can you please tell me which key value pair should I send that only display name change.

 

Thanks in advance

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...