Incoming

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

Report parameters

Parameter Type Description
event String Event type.
callid String The unique ID of each call.
members Array <MemberType> A list of information for different types of members during a call.
sn String The PBX's serial number.
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": "Incoming",
	"callid": "1571897079.3",
	"members": [
		{
			"inbound": {
				"from": "2000",
				"to": "1023",
				"trunkname": "siptrunk",
				"channelid": "PJSIP/trunk-siptrunk-endpoint-00000002"
			}
		}
	],
	"sn": "369451090405"
}