Jump to content

pbx_admin

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by pbx_admin

  1. I'm unable to use star codes in mailboxes. For example, I want to record the greeting for an auto-attendant or an IVR node. I log into the mailbox and am brought to the main menu. I press *9876# and I am told that I cannot place the call. I keep getting this message even though I have appropriate permissions. Am I doing something wrong? Has anybody else been able to make this work?

     

    Hi Jordan,

    is your pin code set?

    Depending on where your calling from, the code will not let you record anything unless the pin number is set...

     

    You can also add your extension number ( separated by space ) by going:

    Edit IVR Node xyz -> Settings -> Accounts that may record a message

     

    See the attached file for illustration purpse...

    IVR.bmp

  2. http://wiki.pbxnsip.com/index.php/Access_to_the_Database needs a little more updates....

     

    I've tried accessing the db the following ways:

    Custom java app built to the specs on the wiki

    Manual socket connection with netcat

    :) The example php script (both original and modified) :blink:

    ...I get no response once the soap request is sent.

     

    If you actually don't get a response using the provided PHP script, then this would indicate that the SOAP Trusted IP is not set, or invalid (SOAP Trusted IP can be found in Settings->System under the Appearance header)

     

    You will need to set the IP address or a qualifying host-name that has the SOAP client software (e.g. your computer's IP address or you can obtain a public IP address instead by going to whatismyip ).

     

    If you don't see the SOAP Trusted IP field under the Appearance Header, then that means your current PBX's SOAP server is disabled. In that case, we can provide a temporary key which will enable the SOAP feature.

     

    Does the interface require authentication? If so there is no indication that it does and no documentation on how to authenticate. I've tried opening a session to the web interface and sending the cookie with the soap request, but that didn't work either. Is there any formal documentation available (or a known good, working example)?

    Using the SOAP Trusted IP is an alternative "Credential", and you should not need to set the credentials, cookies and any other objects, but applying "Default Credentials" and sending cookies will not cause an error (At least on the C++ and Visual Basic side).

     

    Is there any formal documentation available (or a known good, working example)?

     

    In regards to the SOAP reference and overall pbxnsip admin/user manual, we actually are in the process of updating more easy-to-understand technical and non-technical details and illustration to the documentation of the next stable release...

     

    As I said earlier, http://wiki.pbxnsip.com/index.php/Access_to_the_Database pretty much explains the basics of the PBX database function (the php source code there is a known, good working example), except we neglected to mention about the SOAP Trusted IP address part.

     

    If you still have trouble getting a response, try the following request in php:

    $max=10;

    for( $i=0; i<$max; #i++ )

    {

    $request = "<Table>domain_alias</Table><Index>"+ max + </Index><Column><Name>name</Name></Column>";

     

    echo "Existing Domain ID: " + pbx_soap( pbx_envelope( "DBGet", $request );

    }

     

    Check back with it soon, and you will also see the DBIndex function to aid you in the implementation process. The database feature is NOT the only thing we provide in SOAP calls, but there are also much more SOAP features to be tested and documented.

     

    Important note:

     

    Using socket programming is fine for PHP or other scripting language, but it has been a known issue that socket programming cannot be correctly implemented from a programming language e.g. C++, Visual Basic, etc.. A work around for this is to use the provided web service implementation, for instance, in C++/Visual Basic use the HTTPWebRequest and HTTPWebResponse class, and in Java, use the HttpServletRequest HttpServletResponse class.

     

    Happy Coding :D

  3. http://wiki.pbxnsip.com/index.php/Access_to_the_Database needs a little more updates....

     

    I've tried accessing the db the following ways:

    Custom java app built to the specs on the wiki

    Manual socket connection with netcat

    :) The example php script (both original and modified) :blink:

    ...I get no response once the soap request is sent.

     

    If you actually don't get a response using the provided PHP script, then this would indicate that the SOAP Trusted IP is not set, or invalid (SOAP Trusted IP can be found in Settings->System under the Appearance header)

     

    You will need to set the IP address or a qualifying host-name that has the SOAP client software (e.g. your computer's IP address or you can obtain a public IP address instead by going to whatismyip ).

     

    If you don't see the SOAP Trusted IP field under the Appearance Header, then that means your current PBX's SOAP server is disabled. In that case, we can provide a temporary key which will enable the SOAP feature.

     

    Does the interface require authentication? If so there is no indication that it does and no documentation on how to authenticate. I've tried opening a session to the web interface and sending the cookie with the soap request, but that didn't work either. Is there any formal documentation available (or a known good, working example)?

    Using the SOAP Trusted IP is an alternative "Credential", and you should not need to set the credentials, cookies and any other objects, but applying "Default Credentials" and sending cookies will not cause an error (At least on the C++ and Visual Basic side).

     

    Is there any formal documentation available (or a known good, working example)?

     

    In regards to the SOAP reference and overall pbxnsip admin/user manual, we actually are in the process of updating more easy-to-understand technical and non-technical details and illustration to the documentation of the next stable release...

     

    As I said earlier, http://wiki.pbxnsip.com/index.php/Access_to_the_Database pretty much explains the basics of the PBX database function (the php source code there is a known, good working example), except we neglected to mention about the SOAP Trusted IP address part.

     

    If you still have trouble getting a response, try the following request in php:

    $max=10;

    for( $i=0; i<$max; #i++ )

    {

    $request = "<Table>domain_alias</Table><Index>"+ max + </Index><Column><Name>name</Name></Column>";

     

    echo "Existing Domain ID: " + pbx_soap( pbx_envelope( "DBGet", $request );

    }

     

    Check back with it soon, and you will also see the DBIndex function to aid you in the implementation process. The database feature is NOT the only thing we provide in SOAP calls, but there are also much more SOAP features to be tested and documented.

     

    Important note:

     

    Using socket programming is fine for PHP or other scripting language, but it has been a known issue that socket programming cannot be correctly implemented from a programming language e.g. C++, Visual Basic, etc.. A work around for this is to use the provided web service implementation, for instance, in C++/Visual Basic use the HTTPWebRequest and HTTPWebResponse, and in Java, use the

    Happy Coding :D

  4. We deo not need any new features, we are trying to implement some SOAP applications and we were told that 2.0.2 had some bugs. That is the only reason for upgrade...

     

    Whether or not to make use of the new features, the best bet in your case is to upgrade to 2.0.3.1715.

     

    I don't think there were any major SOAP bugs in versions 2.0.2, however we did come across minor socket issues with the latest version (2.0.9.x), although I have managed to work around with that AND we will correct it...

     

    Should you encounter *any* SOAP bugs with your implementation, please post it here (http://forum.pbxnsip.com/index.php?showforum=28) and we'll be glad to address your issues ASAP.

     

    Happy coding! :rolleyes:

  5. Hi,

     

    I?d like no use third party server to manage pbxnsip, is it possible?

    I mean having may be SOAP server can I send to pbxnsip some requests to add, delete or modify accounts?

    What format if request it should be?

    If have anybody examples of SOAP requests and responses using to modify pbxnsip configuration?

    Thanks

     

     

    Hi Elena,

    Yes it is possible, four of the database access functions DBIndex, DBSearch, DBGet and DBSet, the information can be found at the wiki Access to the Database. More function are to come, so visit that site every now and then updates.

     

    Cheers

  6. Hi Jake,

     

    Yes, We do support SOAP functionalities, and the developers just released the beta version CDR tool that used SOAP interface pbxnsip CDR Tool Web Application.

     

    To make a request to pull the CDR or any other desired data, you should create a socket and point to the PBX's hostname and port number, the same way you login to the PBX HTTP interface. See Access_to_the_Database, there's are some PHP codes with documentation that will get you to a head start.

     

    Another important note to bear in mind, versions 2.0.2.1675 and earlier had a few bugs with SOAP, e.g. one misplaced character in the XML would halt the web application and you will not be able to get any response. Thus, it is highly recommended to upgrade to 2.0.3.1715 or latest release possible, especially for those who wants to develop either a simple or a robust web application.

     

    You can easily download and swap the pbxctrl.exe, check it out look at

    Manual_Upgrade

     

    It appears that neither soap.xml nor cdr.xml (the only two locations I could find a reference to in the wiki) do not exist.

    The pbxnsip SOAP server can send out CDRs to your software which is actually the soap.xml you were trying to fetch...

    It's kind of like role-reversal where the PBX is a client sending CDR data, and your application act as a "server listening for the incoming CDR". In most case, the client side web application will make the request for data access, certain Group Agent queue events, and Calling Card web application. To clear up the confusion, See Processing_CDR_from_the_PBX with the functional PHP Source code.

     

    Happy Coding! :)

×
×
  • Create New...