diff options
author | George Joseph <george.joseph@fairview5.com> | 2015-01-06 17:43:16 +0000 |
---|---|---|
committer | George Joseph <george.joseph@fairview5.com> | 2015-01-06 17:43:16 +0000 |
commit | fb3c8e342463afc645c87d5ca2b98adafea2b31e (patch) | |
tree | fb66dac48726f7687f151cec028c21f9278c3e89 /CHANGES | |
parent | 7dc0c88fc62ca0e1791b68363f6221af66de43e5 (diff) |
outbound_registration: Add 'pjsip send register' and update 'send unregister'
The current behavior of 'pjsip send unregister' is to send the unregister
(REGISTER with 0 exp) but let the next scheduled register proceed normally.
I don't think that's a good idea. If you unregister, it should stay
unregistered until you decide to start registrations again. So this patch
just adds a cancel_registration call to the current unregister_task to
cancel the timer.
Of course, now you need a way to start registration again so I've added
a 'pjsip send register' command that unregisters and cancels any existing
registration (the same as send unregister), then sends an immediate
registration and starts the timer back up again.
Both changes also ripple to AMI. There's a new PJSIPRegister command.
There's no harm in calling either command repeatedly. They don't care
about the actual state.
Tested-by: George Joseph
Review: https://reviewboard.asterisk.org/r/4301/
........
Merged revisions 430223 from http://svn.asterisk.org/svn/asterisk/branches/13
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@430224 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'CHANGES')
-rw-r--r-- | CHANGES | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -102,10 +102,18 @@ res_musiconhold * New 'PJSIP_AOR' and 'PJSIP_CONTACT' dialplan functions have been added which allow examining PJSIP AORs or contacts from the dialplan. +res_pjsip_outbound_registration +------------------ + * The 'pjsip send unregister' command now stops further registrations. + + * A new command 'pjsip send register' has been added which allows you to + start or restart periodic registration. It can be used after a + 'send unregister' or after a 401 permanent error. + res_pjsip_config_wizard ------------------ * This is a new module that adds streamlined configuration capability for - chan_pjsip. It's targetted at users who have lots of basic configuration + chan_pjsip. It's targeted at users who have lots of basic configuration scenarios like 'phone' or 'agent' or 'trunk'. Additional information can be found in the sample configuration file at config/samples/pjsip_wizard.conf.sample. |