mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-07 13:49:18 +00:00
Merge "res_pjsip_caller_id: Anonymize 'From' when caller id presentation is prohibited" into 13
This commit is contained in:
@@ -2284,4 +2284,14 @@ int ast_sip_set_tpselector_from_transport(const struct ast_sip_transport *transp
|
||||
*/
|
||||
int ast_sip_set_tpselector_from_transport_name(const char *transport_name, pjsip_tpselector *selector);
|
||||
|
||||
/*!
|
||||
* \brief Set name and number information on an identity header.
|
||||
*
|
||||
* \param pool Memory pool to use for string duplication
|
||||
* \param id_hdr A From, P-Asserted-Identity, or Remote-Party-ID header to modify
|
||||
* \param id The identity information to apply to the header
|
||||
*/
|
||||
void ast_sip_modify_id_header(pj_pool_t *pool, pjsip_fromto_hdr *id_hdr,
|
||||
const struct ast_party_id *id);
|
||||
|
||||
#endif /* _RES_PJSIP_H */
|
||||
|
@@ -149,6 +149,8 @@ struct ast_sip_session {
|
||||
enum ast_sip_session_t38state t38state;
|
||||
/*! The AOR associated with this session */
|
||||
struct ast_sip_aor *aor;
|
||||
/*! From header saved at invite creation */
|
||||
pjsip_fromto_hdr *saved_from_hdr;
|
||||
};
|
||||
|
||||
typedef int (*ast_sip_session_request_creation_cb)(struct ast_sip_session *session, pjsip_tx_data *tdata);
|
||||
|
Reference in New Issue
Block a user