dect
/
asterisk
Archived
13
0
Fork 0

Merged revisions 89101 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89101 | file | 2007-11-07 22:26:48 -0400 (Wed, 07 Nov 2007) | 4 lines

Do not add a sip: to the beginning of the To URI unless needed.
(closes issue #10756)
Reported by: goestelecom

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89102 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
file 2007-11-08 02:28:15 +00:00
parent 31aaf193b8
commit ca5c15cd33
1 changed files with 1 additions and 1 deletions

View File

@ -7682,7 +7682,7 @@ static void initreqprep(struct sip_request *req, struct sip_pvt *p, int sipmetho
if (sipmethod == SIP_NOTIFY && !ast_strlen_zero(p->theirtag)) {
/* If this is a NOTIFY, use the From: tag in the subscribe (RFC 3265) */
snprintf(to, sizeof(to), "<sip:%s>;tag=%s", p->uri, p->theirtag);
snprintf(to, sizeof(to), "<%s%s>;tag=%s", (strncasecmp(p->uri, "sip:", 4) ? "" : "sip:"), p->uri, p->theirtag);
} else if (p->options && p->options->vxml_url) {
/* If there is a VXML URL append it to the SIP URL */
snprintf(to, sizeof(to), "<%s>;%s", p->uri, p->options->vxml_url);