aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-07 17:52:58 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-07 17:52:58 +0000
commit16bda55d06043343eb931386ef50b82770211106 (patch)
tree0adf6fd006d8f8bee61d24f7d076480bd9166789 /channels
parent3ed5af030e30047ac661b6a1f407f6ba8f70e0d3 (diff)
Ensure we have (or should have) at least one matching codec before attempting early bridge SDP seeding. (issue #9221 reported by marcelbarbulescu)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@58240 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index d33b02426..2ac487f65 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -17056,7 +17056,7 @@ static int sip_sipredirect(struct sip_pvt *p, const char *dest)
static int sip_get_codec(struct ast_channel *chan)
{
struct sip_pvt *p = chan->tech_pvt;
- return p->peercapability;
+ return p->peercapability ? p->peercapability : p->capability;
}
/*! \brief Send a poke to all known peers