diff options
author | Russell Bryant <russell@russellbryant.com> | 2008-06-02 20:08:24 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2008-06-02 20:08:24 +0000 |
commit | d6240ac21eb798f1c7cee4e72fbb1b5f730d4ffa (patch) | |
tree | 2b3b3c9fb97ee044627f340be0bcdf204fc9abfc /channels/chan_iax2.c | |
parent | 5b7344ab663016aa1ac39de53b83ba5c03f8d3cc (diff) |
Merged revisions 119838 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r119838 | russell | 2008-06-02 15:08:04 -0500 (Mon, 02 Jun 2008) | 7 lines
Revert a change made for issue #12479. This change caused a regression such that
a dial string such as (IAX2/foo) did not automatically fall back to dialing the 's'
extension anymore.
(closes issue #12770)
Reported by: dagmoller
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@119839 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_iax2.c')
-rw-r--r-- | channels/chan_iax2.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 58f52f496..dd465365b 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -3511,10 +3511,7 @@ static int iax2_call(struct ast_channel *c, char *dest, int timeout) } if (!pds.exten) { - if (!ast_strlen_zero(c->exten)) - pds.exten = c->exten; - else - pds.exten = defaultrdest; + pds.exten = defaultrdest; } if (create_addr(pds.peer, c, &sin, &cai)) { |