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 b760bad2b9
commit 5b5c358e4b
3 changed files with 62 additions and 0 deletions

View File

@@ -634,6 +634,7 @@ static struct ast_channel *chan_pjsip_new(struct ast_sip_session *session, int s
ast_party_id_copy(&ast_channel_caller(chan)->id, &session->id);
ast_party_id_copy(&ast_channel_caller(chan)->ani, &session->id);
ast_channel_caller(chan)->ani2 = session->ani2;
if (!ast_strlen_zero(exten)) {
/* Set provided DNID on the new channel. */