Invite

If Control Inbound Call Accepting is enabled for the trunk on PBX web interface, PBX will send an Invite report to the application server when receiving an inbound call through the trunk.

Report parameters

Parameter Type Description
event String Event type.
callid String The unique ID of each call.
sn String The PBX's serial number.
members Array <MemberType> A list of information for different types of members during a call.
MemberType
Parameter Type Description
inbound Object <InboundInfo> The information of inbound calls.
InboundInfo
Parameter Type Description
from Integer The caller number.
to Integer The callee number.
trunkname String The name of the trunk that passes the inbound calls.
channelid String The call channel ID of each member during the call.

Report example

POST / HTTP/1.1
Host: 192.168.5.150: 8260
Accept: application/json
User-Agent: WebAPI
Content-Type: application/json
Accept: application/json

{
	"event": "Invite",
	"callid": "1571896991.2",
	"members": [
		{
			"inbound": {
				"from": "2000",
				"to": "1023",
				"trunkname": "siptrunk",
				"channelid": "PJSIP/trunk-siptrunk-endpoint-00000001"
			}
		}
	],
	"sn": "369451090405"
}