FreeSWITCH display number
sip_cid_type
Variable description
The way to modify the number displayed during outgoing calls can be set to none, default, pid, and rpid (default)
rpid=Remote-Party-ID header
pid=P-Asserted-Identity header
none=The caller ID will be in the SIP From header
usage
{sip_cid_type=none}sofia/default/[email protected]
shows the number, does not carry other fields, use from
{sip_cid_type=rpid}sofia/default/[email protected]
shows the number, carrying the Remote-Party-ID field
协议:
Remote-Party-ID: “9094445555” sip:[email protected];party=calling;screen=yes;privacy=off
{sip_cid_type=pid}sofia/default/[email protected]
display number, carrying P-Asserted-Identity
Protocol:
P-Asserted-Identity: “9094445555” sip:[email protected]
{sip_cid_type=rpid,origination_caller_id_name=test,origination_caller_id_number=1234}sofia/default/[email protected]
display the number, use Remote-Party-ID to display the number and name you specify
{sip_cid_type=rpid,origination_caller_id_name=test,origination_caller_id_number=1234,origination_privacy=screen+hide_name+hide_number}sofia/default/[email protected]
显示为私人号码
{sip_cid_type=none,origination_caller_id_name=anonymous,origination_caller_id_number=anonymous}sofia/default/[email protected] is
displayed as a private number, which may be different in different systems.
Analysis can find
variable_sip_P-Asserted-Identity from Event
Custom sip header of FreeSWITCH protocol parameters
<action application=“set” data=“sip_h_X-Product-ID=123456”/>
So that subsequent SIP call messages will carry a custom header:
X-Product-ID=123456
Note: The encapsulation of this header is created by FreeSWITCH Finished.
The message header constructed by a third party has custom fields:
X-Product-ID:
We can get the analysis from the Event event as follows:
variable_sip_h_X-Product-ID:
3. Note: The parsing of this header is first done by sofia-sip.