aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-01 19:21:46 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-01 19:21:46 +0000
commitfe973b5fc22f3d869e3a73b2a8dc8cb03052800c (patch)
tree07c40a9f2f43f166b902ae010aa3aed11b8c09d1
parent69b73ef94fc1b0065e5bafebbdeb8bba0082f14f (diff)
- Formatting
- Add some comments git-svn-id: http://svn.digium.com/svn/asterisk/trunk@31495 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 37c4b94cc..80820687a 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -4035,19 +4035,22 @@ static int find_sdp(struct sip_request *req)
return 0;
}
-/*! \brief Process SIP SDP and activate RTP channels---*/
+/*! \brief Process SIP SDP, select formats and activate RTP channels */
static int process_sdp(struct sip_pvt *p, struct sip_request *req)
{
- const char *m;
+ const char *m; /* SDP media offer */
const char *c;
const char *a;
char host[258];
char iabuf[INET_ADDRSTRLEN];
int len = -1;
- int portno = -1;
- int vportno = -1;
+ int portno = -1; /* Audio port */
+ int vportno = -1; /* Video port */
+
+ /* Peer capability is the capability in the SDP, non codec is RFC2833 DTMF (101) */
int peercapability, peernoncodeccapability;
- int vpeercapability=0, vpeernoncodeccapability=0;
+
+ int vpeercapability=0, vpeernoncodeccapability=0; /* Peer's video capabilities */
struct sockaddr_in sin;
const char *codecs;
struct hostent *hp;
@@ -4056,8 +4059,8 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req)
int destiterator = 0;
int iterator;
int sendonly = 0;
- int x,y;
- int debug=sip_debug_test_pvt(p);
+ int x, y;
+ int debug = sip_debug_test_pvt(p);
struct ast_channel *bridgepeer = NULL;
if (!p->rtp) {