diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-04 14:54:55 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-04 14:54:55 +0000 |
commit | 04e62e9c5849ec01dd4bf56996addc00aa6763e4 (patch) | |
tree | 5f79df689f01f181d06a5b14c277cff9d8d53078 /channels/chan_sip.c | |
parent | cc92907551f78d3a67898974f50d3dcf5b9a3ec7 (diff) |
Specify digest algorithm for picky clients
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@36912 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index c6786eaa2..0e43449ed 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5497,7 +5497,7 @@ static int transmit_response_with_allow(struct sip_pvt *p, const char *msg, cons static int transmit_response_with_auth(struct sip_pvt *p, const char *msg, const struct sip_request *req, const char *randdata, enum xmittype reliable, const char *header, int stale) { struct sip_request resp; - char tmp[256]; + char tmp[512]; int seqno = 0; if (reliable && (sscanf(get_header(req, "CSeq"), "%d ", &seqno) != 1)) { @@ -5506,7 +5506,7 @@ static int transmit_response_with_auth(struct sip_pvt *p, const char *msg, const } /* Stale means that they sent us correct authentication, but based it on an old challenge (nonce) */ - snprintf(tmp, sizeof(tmp), "Digest realm=\"%s\", nonce=\"%s\"%s", global_realm, randdata, stale ? ", stale=true" : ""); + snprintf(tmp, sizeof(tmp), "Digest algorithm=MD5, realm=\"%s\", nonce=\"%s\"%s", global_realm, randdata, stale ? ", stale=true" : ""); respprep(&resp, p, msg, req); add_header(&resp, header, tmp); add_header_contentLength(&resp, 0); |