Fix problem when authenticating a non-RTP dialog.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@186653 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp 2009-04-06 17:03:07 +00:00
parent 4eaa651a8a
commit 369ca78928
1 changed files with 4 additions and 2 deletions

View File

@ -13458,8 +13458,10 @@ static enum check_auth_result check_peer_ok(struct sip_pvt *p, char *of,
if (p->t38.peercapability)
p->t38.jointcapability &= p->t38.peercapability;
if (!dialog_initialize_rtp(p)) {
ast_rtp_codecs_packetization_set(ast_rtp_instance_get_codecs(p->rtp), p->rtp, &peer->prefs);
p->autoframing = peer->autoframing;
if (p->rtp) {
ast_rtp_codecs_packetization_set(ast_rtp_instance_get_codecs(p->rtp), p->rtp, &peer->prefs);
p->autoframing = peer->autoframing;
}
} else {
res = AUTH_RTP_FAILED;
}