meetenshah Posted September 6, 2013 Report Share Posted September 6, 2013 Hello, I am a newbie in snome. I want to create a php page in which I enter the extention number and change the dialplan. I want to use SOAP, but the document is very confusing. As I said I am newbie. I dont know which URI to send the data to. I googled it and all the php code i got needs an address like http://localhost/somthing?wsdl. Can someone please help me with a sample code for changing the dial plan on an extention through php? Thanks in advance. I didnt know where to post this question so I posted it here. Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted September 6, 2013 Report Share Posted September 6, 2013 Well it is not so easy yet. You could try to do this with DBGet and DBSet (see http://kiwi.pbxnsip.com/index.php/Access_to_the_Database). We are adding more and more REST methods, but this one is not available yet. Quote Link to comment Share on other sites More sharing options...
meetenshah Posted September 7, 2013 Author Report Share Posted September 7, 2013 Hi I used pbx_get to just the the domain_alias as an example but it only prints Array and nothing else. Please help. Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted September 9, 2013 Report Share Posted September 9, 2013 If you know the extension number and the dialplan number already, you can just use the DBSet method. For example, you can find the numbers by looking at the XML files in the file system. This is not very elegant, but gets the job done until the more elegant REST methods are available. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.