Only have one max-forwards header in outbound REFERs.

Discovered in the Asterisk SIP Masterclass in Orlando. Thanks Joe!


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@114603 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Olle Johansson 18 years ago
parent 2f6cbc76ec
commit 2acde60c29

@ -7793,7 +7793,6 @@ static int transmit_refer(struct sip_pvt *p, const char *dest)
p->refer->status = REFER_SENT; /* Set refer status */
reqprep(&req, p, SIP_REFER, 0, 1);
add_header(&req, "Max-Forwards", DEFAULT_MAX_FORWARDS);
add_header(&req, "Refer-To", referto);
add_header(&req, "Allow", ALLOWED_METHODS);

Loading…
Cancel
Save