summaryrefslogtreecommitdiff
path: root/res/res_pjsip.c
diff options
context:
space:
mode:
authorKevin Harwell <kharwell@digium.com>2013-12-11 20:24:50 +0000
committerKevin Harwell <kharwell@digium.com>2013-12-11 20:24:50 +0000
commitc602b086edb3bda8e3406c39b55285f0762b1f67 (patch)
tree68256d7f795b30e2bc88d6662d912353dc0fdcbc /res/res_pjsip.c
parent90108b15a0bfb0a7fe88a12b4afbcf1086f18df9 (diff)
res_pjsip_messaging: send message to a default outbound endpoint
In some cases messages need to be sent to a direct URI (sip:<ip address>). This patch adds in that support by using a default outbound endpoint. When sending messages, if no endpoint can be found then the default one is used. To facilitate this a new default_outbound_endpoint option was added to the globals section for pjsip.conf. Review: https://reviewboard.asterisk.org/r/2944/ ........ Merged revisions 403680 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@403687 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_pjsip.c')
-rw-r--r--res/res_pjsip.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/res/res_pjsip.c b/res/res_pjsip.c
index 52a949257..08c455242 100644
--- a/res/res_pjsip.c
+++ b/res/res_pjsip.c
@@ -1025,6 +1025,10 @@
<configOption name="user_agent" default="Asterisk &lt;Asterisk Version&gt;">
<synopsis>Value used in User-Agent header for SIP requests and Server header for SIP responses.</synopsis>
</configOption>
+ <configOption name="default_outbound_endpoint" default="default_outbound_endpoint">
+ <synopsis>Endpoint to use when sending an outbound request to a URI without a specified endpoint.</synopsis>
+ </configOption>
+
</configObject>
</configFile>
</configInfo>