summaryrefslogtreecommitdiff
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authorOlle Johansson <oej@edvina.net>2006-06-01 19:21:46 +0000
committerOlle Johansson <oej@edvina.net>2006-06-01 19:21:46 +0000
commite0a86492737194969631fdeebd5dd2d7cfb75520 (patch)
tree07c40a9f2f43f166b902ae010aa3aed11b8c09d1 /channels/chan_sip.c
parentb7cfe5bd0889b69d7fe982c03d95e5dedb7fc5d8 (diff)
- Formatting
- Add some comments git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@31495 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_sip.c')
-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) {