mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 16:39:14 +00:00
Make iax work with plaintext passwords too. Thanks to Michael Workman for the patch.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2258 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
7ccdd37a71
commit
88dbc8c056
@ -1785,7 +1785,7 @@ int iax_auth_reply(struct iax_session *session, char *password, char *challenge,
|
|||||||
convert_reply(realreply, (unsigned char *) reply);
|
convert_reply(realreply, (unsigned char *) reply);
|
||||||
iax_ie_append_str(&ied, IAX_IE_MD5_RESULT, (unsigned char *) realreply);
|
iax_ie_append_str(&ied, IAX_IE_MD5_RESULT, (unsigned char *) realreply);
|
||||||
} else {
|
} else {
|
||||||
iax_ie_append_str(&ied, IAX_IE_MD5_RESULT, (unsigned char *) password);
|
iax_ie_append_str(&ied, IAX_IE_PASSWORD, (unsigned char *) password);
|
||||||
}
|
}
|
||||||
return send_command(session, AST_FRAME_IAX, IAX_COMMAND_AUTHREP, 0, ied.buf, ied.pos, -1);
|
return send_command(session, AST_FRAME_IAX, IAX_COMMAND_AUTHREP, 0, ied.buf, ied.pos, -1);
|
||||||
}
|
}
|
||||||
@ -1808,7 +1808,7 @@ static int iax_regauth_reply(struct iax_session *session, char *password, char *
|
|||||||
convert_reply(realreply, (unsigned char *) reply);
|
convert_reply(realreply, (unsigned char *) reply);
|
||||||
iax_ie_append_str(&ied, IAX_IE_MD5_RESULT, (unsigned char *) realreply);
|
iax_ie_append_str(&ied, IAX_IE_MD5_RESULT, (unsigned char *) realreply);
|
||||||
} else {
|
} else {
|
||||||
iax_ie_append_str(&ied, IAX_IE_MD5_RESULT, (unsigned char *) password);
|
iax_ie_append_str(&ied, IAX_IE_PASSWORD, (unsigned char *) password);
|
||||||
}
|
}
|
||||||
return send_command(session, AST_FRAME_IAX, IAX_COMMAND_REGREQ, 0, ied.buf, ied.pos, -1);
|
return send_command(session, AST_FRAME_IAX, IAX_COMMAND_REGREQ, 0, ied.buf, ied.pos, -1);
|
||||||
}
|
}
|
||||||
@ -2244,7 +2244,7 @@ static struct iax_event *schedule_delivery(struct iax_event *e, time_in_ms_t ts,
|
|||||||
|
|
||||||
/* How many ms from now should this packet be delivered? (remember
|
/* How many ms from now should this packet be delivered? (remember
|
||||||
this can be a negative number, too */
|
this can be a negative number, too */
|
||||||
ms = calc_rxstamp(e->session) - ts;
|
ms = (int)(calc_rxstamp(e->session) - ts);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Drop voice frame if timestamp is way off
|
Drop voice frame if timestamp is way off
|
||||||
|
Loading…
x
Reference in New Issue
Block a user