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
Showing
- CHANGES 11 additions, 0 deletionsCHANGES
- channels/chan_pjsip.c 6 additions, 2 deletionschannels/chan_pjsip.c
- configs/pjsip.conf.sample 2 additions, 0 deletionsconfigs/pjsip.conf.sample
- contrib/ast-db-manage/config/versions/1d50859ed02e_create_accountcode.py 20 additions, 0 deletions...manage/config/versions/1d50859ed02e_create_accountcode.py
- include/asterisk/res_pjsip.h 2 additions, 0 deletionsinclude/asterisk/res_pjsip.h
- res/res_pjsip.c 7 additions, 0 deletionsres/res_pjsip.c
- res/res_pjsip/pjsip_configuration.c 1 addition, 0 deletionsres/res_pjsip/pjsip_configuration.c
Loading
Please register or sign in to comment