[Asterisk-Dev] Registration patch
James Dennis
asterisk at jdennis.net
Sat Apr 5 19:23:19 MST 2003
Oh yes,
Also REGISTERs were not working due to a \r\n pair at the end of the
register packet:
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.36
diff -u -r1.36 chan_sip.c
--- chan_sip.c 5 Apr 2003 23:05:45 -0000 1.36
+++ chan_sip.c 6 Apr 2003 02:30:45 -0000
@@ -2364,6 +2364,7 @@
snprintf(tmp, sizeof(tmp), "%d", default_expirey);
add_header(&req, "Expires", tmp);
add_header(&req, "Event", "registration");
+ add_blank_header(&req);
copy_request(&p->initreq, &req);
r->regstate=auth?REG_STATE_AUTHSENT:REG_STATE_REGSENT;
return send_request(p, &req, 1, p->ocseq);
James.
More information about the asterisk-dev
mailing list