mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 08:40:16 +00:00
More Asterisk sparc patches (courtesy Belgarath)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3693 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3685,21 +3685,19 @@ static void initreqprep(struct sip_request *req, struct sip_pvt *p, char *cmd, c
|
||||
} else {
|
||||
snprintf(invite, sizeof(invite), "sip:%s", p->tohost);
|
||||
}
|
||||
if (!ast_strlen_zero(p->extraparams)) {
|
||||
strncat(invite, ";", sizeof(invite) - strlen(invite));
|
||||
strncat(invite, p->extraparams, sizeof(invite) - strlen(invite));
|
||||
}
|
||||
strncpy(p->uri, invite, sizeof(p->uri) - 1);
|
||||
/* If there is a VXML URL append it to the SIP URL */
|
||||
if (vxml_url)
|
||||
{
|
||||
if (strlen(p->extraparams))
|
||||
snprintf(to, sizeof(to), "<%s;%s>;%s", invite, p->extraparams, vxml_url);
|
||||
else
|
||||
snprintf(to, sizeof(to), "<%s>;%s", invite, vxml_url);
|
||||
snprintf(to, sizeof(to), "<%s>;%s", invite, vxml_url);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (strlen(p->extraparams))
|
||||
snprintf(to, sizeof(to), "<%s;%s>", invite, p->extraparams);
|
||||
else
|
||||
snprintf(to, sizeof(to), "<%s>", invite);
|
||||
snprintf(to, sizeof(to), "<%s>", invite);
|
||||
}
|
||||
memset(req, 0, sizeof(struct sip_request));
|
||||
init_req(req, cmd, invite);
|
||||
|
||||
Reference in New Issue
Block a user