aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-09-04 04:40:37 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-09-04 04:40:37 +0000
commiteb6efdc757b4905adc31c5faf5b85b3921ba9053 (patch)
tree68414f1d03b443b54f193e986f85e1ca234e655c
parent1783b643d14167c7b19fff215aa606cf3795d467 (diff)
Take URI from responses (bug #215)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1473 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xapps/Makefile2
-rwxr-xr-xchannels/chan_sip.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/apps/Makefile b/apps/Makefile
index 1fec5c14b..ead8f1034 100755
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -11,7 +11,7 @@
# the GNU General Public License
#
-USE_MYSQL_VM_INTERFACE=1
+USE_MYSQL_VM_INTERFACE=0
MLFLAGS=
ifeq ($(USE_MYSQL_VM_INTERFACE),1)
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 5fb2118bb..cacbba90d 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -5083,6 +5083,7 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
if (!p->lastinvite && !strlen(p->randdata))
p->needdestroy = 1;
} else if (!strcasecmp(cmd, "SIP/2.0")) {
+ extract_uri(p, req);
while(*e && (*e < 33)) e++;
if (sscanf(e, "%i %n", &respid, &len) != 1) {
ast_log(LOG_WARNING, "Invalid response: '%s'\n", e);