----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviewboard.asterisk.org/r/4301/ -----------------------------------------------------------
(Updated Jan. 5, 2015, 4:43 p.m.) Review request for Asterisk Developers, opticron and Scott Griepentrog. Changes ------- Added an entry to CHANGES... 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. Repository: Asterisk Description ------- 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. I did discover a previously existing ref count leak for state though. Every time asterisk sends a register, the count gets incremented but never decremented. I'll look at this separately. Diffs (updated) ----- branches/13/res/res_pjsip_outbound_registration.c 430220 branches/13/CHANGES 430220 Diff: https://reviewboard.asterisk.org/r/4301/diff/ Testing ------- The current tests/channels/pjsip/registration/outbound/unregister tests run fine. I'm working on additional tests to exercise the register command. Thanks, George Joseph
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-dev mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-dev