diff options
author | George Joseph <george.joseph@fairview5.com> | 2015-01-06 17:35:21 +0000 |
---|---|---|
committer | George Joseph <george.joseph@fairview5.com> | 2015-01-06 17:35:21 +0000 |
commit | 0fa6c34dc6fb6927baf58d19cff326577745c12c (patch) | |
tree | eb83347ec1c1add54ca9d5fa7426cdebf4f9af63 /CHANGES | |
parent | d873b09075bbcc584b936ec1f46e0f58c7ec7279 (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/
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@430223 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'CHANGES')
-rw-r--r-- | CHANGES | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -11,6 +11,14 @@ --- Functionality changes from Asterisk 13.1.0 to Asterisk 13.2.0 ------------ ------------------------------------------------------------------------------ +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. + chan_pjsip ------------------ * New 'user_eq_phone' endpoint setting. This adds a 'user=phone' parameter |