Take URI from responses (bug #215)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1473 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
e42d5a20fd
commit
687a0e76b5
2 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
||||||
# the GNU General Public License
|
# the GNU General Public License
|
||||||
#
|
#
|
||||||
|
|
||||||
USE_MYSQL_VM_INTERFACE=1
|
USE_MYSQL_VM_INTERFACE=0
|
||||||
|
|
||||||
MLFLAGS=
|
MLFLAGS=
|
||||||
ifeq ($(USE_MYSQL_VM_INTERFACE),1)
|
ifeq ($(USE_MYSQL_VM_INTERFACE),1)
|
||||||
|
|
|
@ -5083,6 +5083,7 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
|
||||||
if (!p->lastinvite && !strlen(p->randdata))
|
if (!p->lastinvite && !strlen(p->randdata))
|
||||||
p->needdestroy = 1;
|
p->needdestroy = 1;
|
||||||
} else if (!strcasecmp(cmd, "SIP/2.0")) {
|
} else if (!strcasecmp(cmd, "SIP/2.0")) {
|
||||||
|
extract_uri(p, req);
|
||||||
while(*e && (*e < 33)) e++;
|
while(*e && (*e < 33)) e++;
|
||||||
if (sscanf(e, "%i %n", &respid, &len) != 1) {
|
if (sscanf(e, "%i %n", &respid, &len) != 1) {
|
||||||
ast_log(LOG_WARNING, "Invalid response: '%s'\n", e);
|
ast_log(LOG_WARNING, "Invalid response: '%s'\n", e);
|
||||||
|
|
Loading…
Reference in a new issue