res_pjsip_rfc3326: Add SIP causes support for RFC3326

Add ability to set HANGUPCAUSE when SIP causecode received in BYE (in addition to currently supported Q.850).

ASTERISK-30319 #close

Change-Id: I3f55622dc680ce713a2ffb5a458ef5dd39fcf645
This commit is contained in:
Igor Goncharovsky
2022-11-18 08:16:50 +06:00
committed by George Joseph
parent 4710f37ef6
commit 3526441e41
5 changed files with 130 additions and 106 deletions

View File

@@ -3962,7 +3962,7 @@ int ast_sip_is_uri_sip_sips(pjsip_uri *uri);
*
* \param uri The pjsip_uri to check
*
* \retva; 1 if allowed
* \retval 1 if allowed
* \retval 0 if not allowed
*/
int ast_sip_is_allowed_uri(pjsip_uri *uri);
@@ -4013,4 +4013,15 @@ struct pjsip_param *ast_sip_pjsip_uri_get_other_param(pjsip_uri *uri, const pj_s
*/
unsigned int ast_sip_get_all_codecs_on_empty_reinvite(void);
/*!
* \brief Convert SIP hangup causes to Asterisk hangup causes
*
* \param cause SIP cause
*
* \retval matched cause code from causes.h
*/
const int ast_sip_hangup_sip2cause(int cause);
#endif /* _RES_PJSIP_H */