diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 0b0ac20e9d..a51e6b9aae 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -340,7 +340,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") - Gets the specified SIP header. + Gets the specified SIP header from an incoming INVITE message. @@ -352,6 +352,8 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") Since there are several headers (such as Via) which can occur multiple times, SIP_HEADER takes an optional second argument to specify which header with that name to retrieve. Headers start at offset 1. + Please observe that contents of the SDP (an attachment to the + SIP request) can't be accessed with this function. @@ -363,7 +365,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") - (default) The ip address. + (default) The IP address. The port number.