Directly
Create call session directly.
The extension number.
[0-9]{3,64}
The extension password.
The SIP domain of tenant.
It is usually a fully qualified domain name (FQDN).
If there is no FQDN, you can also use the IP address of the PBX server as the SIP domain.
The SIP domain name is only used for SIP message authentication and does not require analysis.
The caller number of the call.
The caller display name of the call.
The callee number of the call.
Whether to send sdp packets.
The name of the trunk.
When call through the trunk specified by trunk
,
change the user part in the FROM
header to specified value.
When call through the trunk specified by trunk
,
change the user part in the P-Asserted-Identity
header to specified value.
When call through the trunk specified by trunk
,
change the user part in the Remote-Party-ID
header to specified value.
The user context of the call.
The target address.
The target instance ID.
The target extension number.
Specifies whether to add an additional SIP header (RFC 5373) to the INVITE SIP message. The possible values are:
ANSWER_MODE
: Adds theAnswer-Mode
header to the INVITE SIP message.CALL_INFO
: Adds theCall-Info
header withanswer-after=0
to the INVITE SIP message.ALERT_INFO_AUTO_ANSWER_DELAY0
: Adds theAlert-Info
header withinfo=alert-autoanswer;delay=0
to the INVITE SIP message.ALERT_INFO_AUTO_ANSWER
: Adds theAlert-Info
header withinfo=Auto Answer
to the INVITE SIP message.ALERT_INFO_INTERCOM
: Adds theAlert-Info
header withinfo=intercom
to the INVITE SIP message.
Specifies which party of the call should receive the additional_header
, if the additional_header
is not specified, this parameter will be ignored. The possible values are:
CALLER
: Adds the specified header inadditional_header
to the INVITE SIP message sent to the caller.CALLEE
: Adds the specified header inadditional_header
to the INVITE SIP message sent to the callee.ALL
: Adds the specified header inadditional_header
to the INVITE SIP messages sent to both the caller and callee.
GET /api/sessions/directly HTTP/1.1
Host: hostname:8887
Accept: */*
{
"id": "NzAwNTUxOTA5NzczMTQ4MTYw"
}