我想在注册成功后将帐户余额信息添加到sip响应消息中。
文件建议使用
<!--extra sip params to send in the contact-->
<param name="contact-params" value="tport=tcp"/>
我已经将其添加到default.xml、sofia.conf.xml中,但没有运气
文件中的另一个建议说要使用
<action application="set"><![CDATA[sip_h_P-Charge-Info=<sip:${caller_id_number}@${domain_name}>;npi=0;noa=3]]></action>
但我不知道该在我的sip个人资料中添加这个。
添加响应标头
可以设置三种类型的响应标头前缀:
响应标头
sip_rh_
临时响应标头
sip_ph_
再见响应标头
sip_bye_h_
每个前缀都会专门为其给定类型的请求添加标头——没有"全局"响应标头前缀会为所有响应消息添加标头。
例如:
<action application="set" data="sip_rh_X-Reason=Destination Number Not in Footprint"/>
<action application="set" data="sip_bye_h_X-Accounting=Some Accounting Data"/>
您可以添加此
<action application="set"><![CDATA[sip_h_P-Charge-Info=<sip:${caller_id_number}@${domain_name}>;npi=0;noa=3]]></action>
转到您的拨号计划,而不是sip配置文件。