(30015) Call Failed

If failed to initiate a call, the PBX will send an event report to the third-party application.

Report parameters

Parameter Type Description
type Integer Event ID.
sn String PBX's serial number.
msg Object<Call_Info> The detailed information of the calls.
Call_Info
Parameter Type Description
call_id String The unique ID of each call.
reason String Call failure reason.
  • NO Dial Permission: The extension/organization has no dial permission.
  • NO Outbound Restrictin: The extension has no outbound call permission.
  • Circuit/channel congestion: Engaged. The channel is in use.
  • DND: The callee enabled DND.
  • Line Unreachable: The external line is unreachable.
  • User Busy: The callee declined the call.
  • 410 Gone: Away.
  • 404 NOT found: The callee number is not found.
  • 408 Request Time: The call is not answered or the callee powers off.
  • 480 Temporatily Unavailable: The call is not answered.
  • 484 Address incomplete: Incorrect format of callee number.
  • 486 Busy here: The callee is busy in a call.
  • 603 Declined: The call is timed out.
members Array<Members> A list of information for different types of members during the call.
Members
Table 1.
Parameter Type Description
extension Object<ExtensionInfo> The information of the extensions.
inbound Object<InboundInfo> The information of the inbound calls.
outbound Object<OutboundInfo> The information of the outbound calls.
ExtensionInfo
Table 2.
Parameter Type Description
number String Extension number.
channel_id String The call channel ID of each members during the call.
member_status String The current call status of the member.
  • ALERT: The caller who initiate the call is in the ringback state.
  • RING: The callee is in the ringing state.
  • ANSWERED:The call initiated by the caller has been answered.
  • ANSWER: The callee has answered the call, and is in the talking state.
  • HOLD: The call is held.
  • BYE: The call is hung up.
call_path String The call path that indicates how the call is established.
Note: This parameter returns the call path when the call passes through IVR, Queue, Ring Group, Paging/Intercom or Conference.
InboundInfo
Table 3.
Parameter Type Description
from String The caller number.
to String The callee number.
trunk_name String The name of the trunk that passes the inbound calls.
channel_id String The call channel ID of each member during the call.
member_status String The current call status of the member.
  • ALERT: The caller who initiate the call is in the ringback state.
  • RING: The callee is in the ringing state.
  • ANSWERED:The call initiated by the caller has been answered.
  • ANSWER: The callee has answered the call, and is in the talking state.
  • HOLD: The call is held.
  • BYE: The call is hung up.
call_path String The call path that indicates how the call is established.
Note: This parameter returns the call path when the call passes through IVR, Queue, Ring Group, Paging/Intercom or Conference.
OutboundInfo
Table 4.
Parameter Type Description
from String The caller number.
to String The callee number.
trunk_name String The name of the trunk that passes the inbound calls.
channel_id String The call channel ID of each member during the call.
member_status String The current call status of the member.
  • ALERT: The caller who initiate the call is in the ringback state.
  • RING: The callee is in the ringing state.
  • ANSWERED:The call initiated by the caller has been answered.
  • ANSWER: The callee has answered the call, and is in the talking state.
  • HOLD: The call is held.
  • BYE: The call is hung up.
call_path String The call path that indicates how the call is established.
Note: This parameter returns the call path when the call passes through IVR, Queue, Ring Group, Paging/Intercom or Conference.

Report example

Extension 2008 calls extension 2002, and extension 2002 refuses the call.
{
    "type": 30015,
    "sn": "3631A2124XXX",
    "msg": "{
          "call_id":"1651478097.79",
          "reason":"486 Busy Here",
          "members":[
               {
                  "extension":{
                         "number":"2002",
                         "channel_id":"PJSIP/2002-0000002e",
                         "member_status":"BYE",
                         "call_path":" "
                                 }
                },
               {
                  "extension":{
                          "number":"2008",
                          "channel_id":"PJSIP/2008-0000002d",
                          "member_status":"ALERT",
                          "call_path":" "
                                 }
                }
                      ]
                }"
}