]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Revert a change made for issue #12479. This change caused a regression such that
authorRussell Bryant <russell@russellbryant.com>
Mon, 2 Jun 2008 20:08:04 +0000 (20:08 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 2 Jun 2008 20:08:04 +0000 (20:08 +0000)
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/branches/1.4@119838 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index b20619fb32b68fa9ec2bb3b147ab9755787953c1..738f3b729f5e8c133c556389736184dda6419ae5 100644 (file)
@@ -3235,10 +3235,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)) {