mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +00:00
Fix message destination extension.
Don't send all messages to 's'. Get the destination from the request URI. (Found using automated test cases). git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@321617 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -16044,10 +16044,11 @@ static void receive_message(struct sip_pvt *p, struct sip_request *req, struct a
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
copy_request(&p->initreq, req);
|
||||||
|
|
||||||
if (sip_cfg.auth_message_requests) {
|
if (sip_cfg.auth_message_requests) {
|
||||||
int res;
|
int res;
|
||||||
|
|
||||||
copy_request(&p->initreq, req);
|
|
||||||
set_pvt_allowed_methods(p, req);
|
set_pvt_allowed_methods(p, req);
|
||||||
res = check_user(p, req, SIP_MESSAGE, e, XMIT_UNRELIABLE, addr);
|
res = check_user(p, req, SIP_MESSAGE, e, XMIT_UNRELIABLE, addr);
|
||||||
if (res == AUTH_CHALLENGE_SENT) {
|
if (res == AUTH_CHALLENGE_SENT) {
|
||||||
@@ -16085,6 +16086,8 @@ static void receive_message(struct sip_pvt *p, struct sip_request *req, struct a
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get_destination(p, NULL, NULL);
|
||||||
|
|
||||||
if (!(msg = ast_msg_alloc())) {
|
if (!(msg = ast_msg_alloc())) {
|
||||||
transmit_response(p, "500 Internal Server Error", req);
|
transmit_response(p, "500 Internal Server Error", req);
|
||||||
if (!p->owner) {
|
if (!p->owner) {
|
||||||
|
|||||||
Reference in New Issue
Block a user