[asterisk-bugs] [Asterisk 0018437]: "transmit_refer" builds REFER with no host in case of anonymous call transfer
Asterisk Bug Tracker
noreply at bugs.digium.com
Wed Dec 8 09:33:49 CST 2010
The following issue has been SUBMITTED.
======================================================================
https://issues.asterisk.org/view.php?id=18437
======================================================================
Reported By: kpect
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 18437
Category: Channels/chan_sip/Transfers
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Asterisk Version: SVN
JIRA:
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2010-12-08 09:33 CST
Last Modified: 2010-12-08 09:33 CST
======================================================================
Summary: "transmit_refer" builds REFER with no host in case
of anonymous call transfer
Description:
In case of Anonymous call Invite comes with the following "From" field:
> From: Anonymous <sip:192.168.0.1>
Transfer is called without specifying host.
> exten => 1.,1,Transfer(100)
Refer is build in function "transmit_refer" (line 12683 of chan_sip
module)
----
/* Get just the username part */
if ((c = strchr(dest, '@'))) {
c = NULL;
} else if ((c = strchr(of, '@'))) {
*c++ = '\0';
}
if (c) {
snprintf(referto, sizeof(referto), "<sip%s:%s@%s>", use_tls ? "s" : "",
dest, c);
} else {
snprintf(referto, sizeof(referto), "<sip%s:%s>", use_tls ? "s" : "",
dest);
}
----
In mentioned case "dest" is "100" and "of" is "192.168.0.1".
So Refer-To filed contains "Refer-To: <sip:100>" without specifying host
address.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2010-12-08 09:33 kpect New Issue
2010-12-08 09:33 kpect Asterisk Version => SVN
2010-12-08 09:33 kpect Regression => No
2010-12-08 09:33 kpect SVN Branch (only for SVN checkouts, not tarball
releases) => N/A
======================================================================
More information about the asterisk-bugs
mailing list