]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Make the usereqphone option work again.
authorJoshua Colp <jcolp@digium.com>
Mon, 8 Dec 2008 17:52:10 +0000 (17:52 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 8 Dec 2008 17:52:10 +0000 (17:52 +0000)
(closes issue #13474)
Reported by: mmaguire
Patches:
      20080912_bug13474.diff uploaded by mmaguire (license 571)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@161725 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 26fcec09a2a15ffa2cb9b78f8f43de71052620cb..cc4339b9b76d7234eb83435d714fb6a647a05c04 100644 (file)
@@ -7069,7 +7069,7 @@ static void initreqprep(struct sip_request *req, struct sip_pvt *p, int sipmetho
                                break;
                }
                /* If we have only digits, add ;user=phone to the uri */
-               if (*s)
+               if (!*s)
                        urioptions = ";user=phone";
        }