Merge "pjsip: new endpoint's options to control Connected Line updates"

This commit is contained in:
George Joseph
2018-10-31 13:57:15 -05:00
committed by Gerrit Code Review
8 changed files with 79 additions and 3 deletions

View File

@@ -1380,7 +1380,8 @@ static int is_colp_update_allowed(struct ast_sip_session *session)
struct ast_party_id connected_id;
int update_allowed = 0;
if (!session->endpoint->id.send_pai && !session->endpoint->id.send_rpid) {
if (!session->endpoint->id.send_connected_line
|| (!session->endpoint->id.send_pai && !session->endpoint->id.send_rpid)) {
return 0;
}