diff options
author | zuul <zuul@gerrit.asterisk.org> | 2016-05-31 06:59:58 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-05-31 06:59:58 -0500 |
commit | 853350b5ea17bcc6bd19ca8ef43f7e477da752fc (patch) | |
tree | b950636f0235ce6ffbec44609b75482f57cd0c28 | |
parent | 6db496c788cab045cb11367e4b44f82472bd1676 (diff) | |
parent | b56f61185641d06e10105b6e5444e3fcccbe6616 (diff) |
Merge "res_pjsip: Add clarifying documentation to PJSIP_HEADER help text"
-rw-r--r-- | res/res_pjsip_header_funcs.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/res/res_pjsip_header_funcs.c b/res/res_pjsip_header_funcs.c index 7d164b12a..648f1c860 100644 --- a/res/res_pjsip_header_funcs.c +++ b/res/res_pjsip_header_funcs.c @@ -39,7 +39,8 @@ /*** DOCUMENTATION <function name="PJSIP_HEADER" language="en_US"> <synopsis> - Gets, adds, updates or removes the specified SIP header from a PJSIP session. + Gets headers from an inbound PJSIP channel. Adds, updates or removes the + specified SIP header from an outbound PJSIP channel. </synopsis> <syntax> <parameter name="action" required="true"> @@ -75,6 +76,10 @@ </syntax> <description> + <para>PJSIP_HEADER allows you to read specific SIP headers from the inbound + PJSIP channel as well as write(add, update, remove) headers on the outbound + channel. One exception is that you can read headers that you have already + added on the outbound channel.</para> <para>Examples:</para> <para>;</para> <para>; Set 'somevar' to the value of the 'From' header.</para> @@ -120,7 +125,7 @@ <note><para>If you call PJSIP_HEADER in a normal dialplan context you'll be operating on the <emphasis>caller's (incoming)</emphasis> channel which - may not be what you want. To operate on the <emphasis>callee's (outgoing)</emphasis> + may not be what you want. To operate on the <emphasis>callee's (outgoing)</emphasis> channel call PJSIP_HEADER in a pre-dial handler. </para> <para>Example:</para> <para>;</para> |