diff options
author | Alexei Gradinari <alex2grad@gmail.com> | 2016-05-19 15:56:26 -0400 |
---|---|---|
committer | Alexei Gradinari <alex2grad@gmail.com> | 2016-05-25 10:56:14 -0400 |
commit | 230686f4ec82a774e2a41aaa5e86909fd589f9b4 (patch) | |
tree | df6bef07fb69be2c985c5393b5b90863ae63b439 /res/res_pjsip.c | |
parent | f09f923514c44737693e424b3dab9afccfe0031f (diff) |
res_pjsip: add "via_addr", "via_port", "call_id" to contact
As res_pjsip_nat rewrites contact's address, only the last Via header
can contain the source address of registered endpoint.
Also Call-Id header may contain the source address of registered
endpoint.
Added "via_addr", "via_port", "call_id" to contact.
Added new fields ViaAddress, CallID to AMI event ContactStatus.
ASTERISK-26011
Change-Id: I36bcc0bf422b3e0623680152d80486aeafe4c576
Diffstat (limited to 'res/res_pjsip.c')
-rw-r--r-- | res/res_pjsip.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/res/res_pjsip.c b/res/res_pjsip.c index 9162431a1..adc4d4120 100644 --- a/res/res_pjsip.c +++ b/res/res_pjsip.c @@ -1172,6 +1172,28 @@ Asterisk Server name on which SIP endpoint registered. </para></description> </configOption> + <configOption name="via_addr"> + <synopsis>IP-address of the last Via header from registration.</synopsis> + <description><para> + The last Via header should contain the address of UA which sent the request. + The IP-address of the last Via header is automatically stored based on data present + in incoming SIP REGISTER requests and is not intended to be configured manually. + </para></description> + </configOption> + <configOption name="via_port"> + <synopsis>IP-port of the last Via header from registration.</synopsis> + <description><para> + The IP-port of the last Via header is automatically stored based on data present + in incoming SIP REGISTER requests and is not intended to be configured manually. + </para></description> + </configOption> + <configOption name="call_id"> + <synopsis>Call-ID header from registration.</synopsis> + <description><para> + The Call-ID header is automatically stored based on data present + in incoming SIP REGISTER requests and is not intended to be configured manually. + </para></description> + </configOption> </configObject> <configObject name="aor"> <synopsis>The configuration for a location of an endpoint</synopsis> @@ -1961,6 +1983,12 @@ <parameter name="RegExpire"> <para>Absolute time that this contact is no longer valid after</para> </parameter> + <parameter name="ViaAddress"> + <para>IP address:port of the last Via header in REGISTER request</para> + </parameter> + <parameter name="CallID"> + <para>Content of the Call-ID header in REGISTER request</para> + </parameter> </syntax> </managerEventInstance> </managerEvent> |