mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
pjsip: new endpoint's options to control Connected Line updates
This patch adds new options 'trust_connected_line' and 'send_connected_line' to the endpoint. The option 'trust_connected_line' is to control if connected line updates are accepted from this endpoint. The option 'send_connected_line' is to control if connected line updates can be sent to this endpoint. The default value is 'yes' for both options. Change-Id: I16af967815efd904597ec2f033337e4333d097cd
This commit is contained in:
committed by
Richard Mudgett
parent
e8eb659afa
commit
5cbe77cc46
@@ -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->send_connected_line
|
||||
|| (!session->endpoint->id.send_pai && !session->endpoint->id.send_rpid)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user