Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sip: add host param to sip_send_conn #1141

Merged
merged 1 commit into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/re_sip.h
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ int sip_debug(struct re_printf *pf, const struct sip *sip);
int sip_send(struct sip *sip, void *sock, enum sip_transp tp,
const struct sa *dst, struct mbuf *mb);
int sip_send_conn(struct sip *sip, void *sock, enum sip_transp tp,
const struct sa *dst, struct mbuf *mb,
const struct sa *dst, char *host, struct mbuf *mb,
sip_conn_h *connh, void *arg);
void sip_set_trace_handler(struct sip *sip, sip_trace_h *traceh);

Expand Down
2 changes: 1 addition & 1 deletion src/sip/request.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ static int request(struct sip_request *req, enum sip_transp tp,
}

if (!req->stateful) {
err = sip_send_conn(req->sip, NULL, tp, dst, mb,
err = sip_send_conn(req->sip, NULL, tp, dst, req->host, mb,
connect_handler, req);
}
else {
Expand Down
4 changes: 2 additions & 2 deletions src/sip/sip.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ void sip_close(struct sip *sip, bool force)
* @return 0 if success, otherwise errorcode
*/
int sip_send_conn(struct sip *sip, void *sock, enum sip_transp tp,
const struct sa *dst, struct mbuf *mb,
const struct sa *dst, char *host, struct mbuf *mb,
sip_conn_h *connh, void *arg)
{
return sip_transp_send(NULL, sip, sock, tp, dst, NULL, mb, connh, NULL,
return sip_transp_send(NULL, sip, sock, tp, dst, host, mb, connh, NULL,
arg);
}

Expand Down
Loading