[Asterisk-cvs] asterisk/channels chan_sip.c,1.386,1.387
markster at lists.digium.com
markster at lists.digium.com
Thu May 13 15:43:52 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv5747/channels
Modified Files:
chan_sip.c
Log Message:
Better document SIP (bug #1603)
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.386
retrieving revision 1.387
diff -u -d -r1.386 -r1.387
--- chan_sip.c 13 May 2004 19:51:54 -0000 1.386
+++ chan_sip.c 13 May 2004 19:54:42 -0000 1.387
@@ -86,6 +86,7 @@
#define CALLERID_UNKNOWN "Unknown"
+/* --- Choices for DTMF support in SIP channel */
#define SIP_DTMF_RFC2833 (1 << 0)
#define SIP_DTMF_INBAND (1 << 1)
#define SIP_DTMF_INFO (1 << 2)
@@ -98,8 +99,10 @@
#define DEFAULT_FREQ_NOTOK 10 * 1000 /* How often to check, if the host is down... */
#define DEFAULT_RETRANS 1000 /* How frequently to retransmit */
[...1400 lines suppressed...]
- int n;
-
- if (!(c=strstr(header, "sip"))) {
- return NULL;
- }
-
- if (!(d=strchr(c, '@'))) {
- return NULL;
- }
-
- n=d-c;
-
- retval=(char *)malloc(n+1);
- strncpy(retval, c, n);
- *(retval+n)='\0';
-
- return retval;
-}
-#endif
More information about the svn-commits
mailing list