]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: Support setting a default accountcode on endpoints
authorMatthew Jordan <mjordan@digium.com>
Wed, 16 Jul 2014 13:58:07 +0000 (13:58 +0000)
committerMatthew Jordan <mjordan@digium.com>
Wed, 16 Jul 2014 13:58:07 +0000 (13:58 +0000)
commit4895ddef28b34a47e50b9d89e9827f94b72c4b0c
treebac870d58fc898ca3d11bc8bf1712bfbcbea2d70
parent5e243281b3f3bb809862ecc02c18b6e75ec9958b
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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@418756 65c4cc65-6c06-0410-ace0-fbb531ad65f3
CHANGES
channels/chan_pjsip.c
configs/pjsip.conf.sample
contrib/ast-db-manage/config/versions/1d50859ed02e_create_accountcode.py [new file with mode: 0644]
include/asterisk/res_pjsip.h
res/res_pjsip.c
res/res_pjsip/pjsip_configuration.c