aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-08 17:52:10 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-08 17:52:10 +0000
commit3258fe014a2a64df6d62454d3ecf4a598d917bb9 (patch)
treea6be829c16e6d21b05e71d8822e08bf1eac43f84
parentd50076f797cb94ac1d44bcb16b64206511e4cd17 (diff)
Make the usereqphone option work again.
(closes issue #13474) Reported by: mmaguire Patches: 20080912_bug13474.diff uploaded by mmaguire (license 571) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@161725 f38db490-d61c-443f-a65b-d21fe96a405b
-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 26fcec09a..cc4339b9b 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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";
}