mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
chan_pjsip: add a new function PJSIP_DTMF_MODE
This function is a replica of SIPDtmfMode, allowing the DTMF mode of a PJSIP call to be modified on a per-call basis ASTERISK-27085 #close Change-Id: I20eef5da3e5d1d3e58b304416bc79683f87e7612
This commit is contained in:
committed by
George Joseph
parent
b3914df10b
commit
65c560894d
@@ -2013,6 +2013,8 @@ struct ast_sip_session *ast_sip_session_alloc(struct ast_sip_endpoint *endpoint,
|
||||
session->contact = ao2_bump(contact);
|
||||
session->inv_session = inv_session;
|
||||
|
||||
session->dtmf = endpoint->dtmf;
|
||||
|
||||
if (add_supplements(session)) {
|
||||
/* Release the ref held by session->inv_session */
|
||||
ao2_ref(session, -1);
|
||||
|
Reference in New Issue
Block a user