Analyzing Other Events

Apart from using CDR data to provide analytics, Humbug accepts a range of other events for both security and analysis.

NewExten

URL to post data: http://api.humbuglabs.org/receiver.php
Parameter Type Description
gateway string Your API Key provided to your by Humbug
encoded int set to 1 if sending encoding data, 0 otherwise
Event string type of event: Newexten
Channel string Dialed destination in the format of Protocol/Channel (i.e SIP/101-0000)
Context string Context of the call (i.e "outbound")
Extension DateTime Destination of the call
Priority DateTime Priority of the call
Application DateTime Application (i.e Dial/AGI etc)
AppData int Application Data (i.e ZAP/G1/17070)
Uniqueid int custom unique ID which matches the uniqueID later sent in the CDR event
event_time DateTime Local time of your PBX

Sample NewExten POST Request

gateway=YOUR_APIKEY&encoded=0&Event=NewExten&Channel=SIP/101-3f3f&Context=outbound&Extension=917070&Priority=1&Application=Dial&AppData=SIP/trunk_name/15551231233&UniqueID=123456789.001&event_time=2011-01-25 13:41:48


Reload / Shutdown Event

URL to post data: http://api.humbuglabs.org/receiver.php
Parameter Type Description
gateway string Your API Key provided to your by Humbug
encoded int set to 1 if sending encoding data, 0 otherwise
Event string type of event: Reload or Shutdown
Message string Your custom message
event_time string Dialed destination in the format of Protocol/Channel (i.e SIP/101-0000)

Sample Reload POST Request

gateway=YOUR_APIKEY&encoded=0&Event=Reload&Message=Config%20Reloaded&event_time=2011-01-25 13:41:48