Hello list,

Using Asterisk 1.4.25.1
Using realtime sip_buddies

I notice that when changing the sip_buddie name (field 'name' and 'username') or secret, this is not implemented until a sip reload.

When changing the secret, the old secret is still the one to use until a sip reload.
When changing the name, the old name is still the one to use for registrations until a sip reload.

asterisk*CLI> sip show peers
testcorp3/testcorp3        192.168.1.100    D   N      5061     OK (28 ms) Cached RT


-- now I change the secret in sip_buddies --
-- I restart my IP-phone --

asterisk*CLI>
[Apr 17 11:19:45] NOTICE[24072]: chan_sip.c:16612 sip_poke_noanswer: Peer 'testcorp3' is now UNREACHABLE!  Last qualify: 28
[Apr 17 11:19:55] NOTICE[24072]: chan_sip.c:12985 handle_response_peerpoke: Peer 'testcorp3' is now Reachable. (24ms / 2000ms)
asterisk*CLI>


-- IP-phone is still able to register with the old password --
-- I do a sip reload --

asterisk*CLI> sip reload
[Apr 17 11:22:00]  Reloading SIP
[Apr 17 11:22:00]   == Parsing '/etc/asterisk/sip.conf': [Apr 17 11:22:00] Found
[Apr 17 11:22:00]   == Parsing '/etc/asterisk/users.conf': [Apr 17 11:22:00] Found
[Apr 17 11:22:00]   == Parsing '/etc/asterisk/sip_notify.conf': [Apr 17 11:22:00] Found


-- I restart my IP-phone --

asterisk*CLI>
[Apr 17 11:22:58] NOTICE[24072]: chan_sip.c:12985 handle_response_peerpoke: Peer 'testcorp3' is now Lagged. (2025ms / 2000ms)
[Apr 17 11:23:05] NOTICE[24072]: chan_sip.c:12985 handle_response_peerpoke: Peer 'testcorp3' is now Reachable. (31ms / 2000ms)
[Apr 17 11:23:05] NOTICE[24072]: chan_sip.c:15889 handle_request_register: Registration from '<sip:[email protected]>' failed for '192.168.1.100' - Wrong password
[Apr 17 11:23:08] NOTICE[24072]: chan_sip.c:12985 handle_response_peerpoke: Peer 'testcorp3' is now Reachable. (30ms / 2000ms)
asterisk*CLI>


-- Now the new secret is in place !! --


This is my realtime setting in sip.conf :


;----------------------------------------- REALTIME SUPPORT ------------------------
; For additional information on ARA, the Asterisk Realtime Architecture,
; please read realtime.txt and extconfig.txt in the /doc directory of the
; source code.
;
rtcachefriends=yes
;rtsavesysname=yes
;rtupdate=yes
;rtautoclear=yes
;ignoreregexpire=yes



Kind regards,

Jonas.
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to