CallTransfer

When an active call is transferred by an extension user, the PBX will send a Transfer report to the application server.

Note:
  • The report only includes operations performed by the extensions, such as dialing "*03" and "*3" feature codes or Call Forwarding settings.
  • Transfer controlled by call/transfer or call/attended_transfer will not be reported.

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
ext Object <ExtensionInfo> Extension information.
inbound Object <InboundInfo> The information of inbound calls.
outbound Object <OutboundInfo> The information of outbound calls.
ExtensionInfo
Parameter Type Description
number String The extension number.
channelid String The call channel ID of each member during the call.
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.
OutboundInfo
Parameter Type Description
from Integer The caller number.
to Integer The callee number.
trunkname String The name of the trunk that passes the outbound calls.
channelid String The call channel ID of each member during the call.

Report examples

Extension 2000 and extension 1020 are in a call, and extension 1020 transfersthe call to another number.

POST / HTTP/1.1
Host: 192.168.5.150: 8260
Accept: application/json
User-Agent: WebAPI
Content-Type: application/json
Accept: application/json
{
	"event": "Tranfer",
	"callid": "1571981311.105",
	"members": [
		{
			"ext": {
				"number": "2000",
				"channelid": "PJSIP/2000-00000025"
			}
		},
		{
			"ext": {
				"number": "1020",
				"channelid": "PJSIP/1020-00000026"
			}
		}
	],
	"sn": "369451090405"
}

External number 12345678 calls extension 1020, and extension 1020 transfers the active call to another number.

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

{
	"event": "Tranfer",
	"callid": "1571981647.117",
	"members": [
		{
			"inbound": {
				"from": "12345678",
				"to": "1020",
				"trunkname": "siptrunk",
				"channelid": "PJSIP/trunk-siptrunk-endpoint-0000002b"
			}
		},
		{
			"ext": {
				"number": "1020",
				"channelid": "PJSIP/1020-0000002c"
			}
		}
	],
	"sn": "369451090405"
}