res_pjsip_caller_id: Add ANI2/OLI parsing

Adds parsing of ANI II digits (Originating
Line Information) to PJSIP, on par with
what currently exists in chan_sip.

ASTERISK-29472

Change-Id: Ifc938a7a7d45ce33999ebf3656a542226f6d3847
This commit is contained in:
Naveen Albert
2021-06-08 16:44:23 -04:00
committed by Kevin Harwell
parent 60daa8f761
commit 1a23c9c047
3 changed files with 62 additions and 0 deletions

View File

@@ -239,6 +239,8 @@ struct ast_sip_session {
unsigned int authentication_challenge_count:4;
/*! The direction of the call respective to Asterisk */
enum ast_sip_session_call_direction call_direction;
/*! Originating Line Info (ANI II digits) */
int ani2;
};
typedef int (*ast_sip_session_request_creation_cb)(struct ast_sip_session *session, pjsip_tx_data *tdata);