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:
Alexei Gradinari
2018-10-22 12:49:37 -04:00
committed by Richard Mudgett
parent 584e08b81b
commit eee935983b
8 changed files with 79 additions and 3 deletions

View File

@@ -593,6 +593,10 @@ struct ast_sip_endpoint_id_configuration {
unsigned int rpid_immediate;
/*! Do we add Diversion headers to applicable outgoing requests/responses? */
unsigned int send_diversion;
/*! Do we accept connected line updates from this endpoint? */
unsigned int trust_connected_line;
/*! Do we send connected line updates to this endpoint? */
unsigned int send_connected_line;
/*! When performing connected line update, which method should be used */
enum ast_sip_session_refresh_method refresh_method;
};