res_pjsip: Add option to force G.726 to be treated as AAL2 packed.

Some phones send g.726 audio packed for AAL2, which differs from what is
recommended by RFC 3351. If Asterisk receives audio formatted as such when
negotiating g.726 then it sounds a bit distorted. Added an option to
res_pjsip_endpoint that allows g.726 negotiated audio to be treated as g.726
AAL2 packed.

ASTERISK-25158 #close
Reported by: Steve Pitts

Change-Id: Ie7e21f75493d7fe53e75e12c971e72f5afa33615
This commit is contained in:
Kevin Harwell
2015-06-12 16:58:27 -05:00
parent 2618d1e638
commit 31c77b157b
7 changed files with 64 additions and 6 deletions

View File

@@ -555,6 +555,8 @@ struct ast_sip_endpoint_media_configuration {
unsigned int tos_video;
/*! Priority for video streams */
unsigned int cos_video;
/*! Is g.726 packed in a non standard way */
unsigned int g726_non_standard;
};
/*!