Form Post

This interface uses a simple HTTP form post method used by many web based interfaces to send this information to a remote host. This remote host may be located on the local network or even on a remote server on the internet. The host may be written in any language suitable for the remote party, this includes PHP, C#, and C/C++.

  • PBX Link License.
  • DuVoice 5.20 or above.
VersionReleasedChanges
2002018/01/30- Added support for resources and other settings.
1022015/12/10- Added support for sending call blocking / DND state.
1012013/10/15- Changed the configuration dialog to support a timeout.
- Combined URL, Resource and TCP/IP port.
- MWI On/Off posting.
1002013/04/10Initial release

Using System Configuration, configure the PBXLink for your profile as HTTP Post.

Setting Default Description
URL Blank Enter full URL to post items to.
Examples: http://127.0.0.1:8080/pbx or https://127.0.0.1:8080/pbx
Username Blank If using authentication enter username.
Password Blank If using authentication enter password.
Format POST Form Data Type of data to post to server.
Resource None Can be used to add a mailbox or extension automatically as part of the URL.
Example: http://127.0.0.1:8080/pbx/7101
Slash Unchecked Add addtional slash at end of URL.
Retries 3 Number of retries before giving up.
Interval (seconds) 60 Number of seconds to wait between retries.
Timeout (seconds) 10 Number of seconds to wait for response from server.

Response Errors

HTTP Code Description
200 Success.
401 Not authorized. Postings will not be retried.
404 Failure. Posting will not be retried.
Other Will attempt retry.

Syntax

All field values use standard HTTP escaping for characters like spaces and punctuation marks.

FieldRequiredDescription
roomYesMailbox extension
fnameNoFirst name
lnameNoLast name
fullnameNoFull name for those systems which prefer or only support a single name field. The default format is LNAME, FNAME but can be modified on the DuVoice system.
groupNoPhone restriction group extension should be associated with. This can also be considered the class of service on your PBX.
stateNoState for the guest room.
in - Room is currently checked in.
out - Room is currently checked out.
descriptionNoMailbox description field.
mwiNoMessage waiting indicator state.
0 - Light OFF.
1 - Light ON.
Note: For MWI's to be sent out this interface the Method for MWI Notifications should be set to HTTP or HTTP + PMS.
dndNoCall Blocking / DND
0 = Call blocking DND off.
1 = Call blocking DND on.

Examples

POST /pbx
Date: 2018-02-08T21:56:01Z
User-Agent: DuVoice/6.01.21 HTTPPOST/200
Content-Length: 73
Content-Type: application/x-www-form-urlencoded
Connection: Close
Host: 127.0.0.1:8080
 
room=7101&fname=Brock&lname=Sampson&fullname=Sampson%2C%20Brock&state=out
  • Last modified: 2023/01/07 11:45
  • by 127.0.0.1