summaryrefslogtreecommitdiff
path: root/res/res_pjsip.c
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2014-07-16 14:03:51 +0000
committerMatthew Jordan <mjordan@digium.com>2014-07-16 14:03:51 +0000
commitfd94fea5996a0f8074de1c470337a8d5c25fff38 (patch)
treecd8d0f4bc6036c44f6dd69a0feccfa7550ec83da /res/res_pjsip.c
parent03e9c598e5fe2274e0e171519c5ac52738c65b14 (diff)
res_pjsip: Support setting a default accountcode on endpoints
Most channel drivers let you specify a default accountcode to be set on channels associated with a particular peer/endpoint/object. Prior to this patch, chan_pjsip/res_pjsip did not support such a setting. This patch adds a new setting to the res_pjsip endpoint object, 'accountcode'. When a channel is created that is associated with an endpoint with this value set, the channel will automatically have its accountcode property set to the value configured for the endpoint. Review: https://reviewboard.asterisk.org/r/3724/ ASTERISK-24000 #close Reported by: Matt Jordan ........ Merged revisions 418756 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@418757 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_pjsip.c')
-rw-r--r--res/res_pjsip.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/res/res_pjsip.c b/res/res_pjsip.c
index b123a3706..2c15a798d 100644
--- a/res/res_pjsip.c
+++ b/res/res_pjsip.c
@@ -715,6 +715,13 @@
specified, then the <replaceable>context</replaceable> setting is used.
</para></description>
</configOption>
+ <configOption name="accountcode">
+ <synopsis>An accountcode to set automatically on any channels created for this endpoint.</synopsis>
+ <description><para>
+ If specified, any channel created for this endpoint will automatically
+ have this accountcode set on it.
+ </para></description>
+ </configOption>
</configObject>
<configObject name="auth">
<synopsis>Authentication type</synopsis>