Re: [asterisk-users] Realtime changes not reflected realtime
What read/write rights do I need to issue this "sip prune realtime peer" command in manager.conf ?? Jonas. Jonathan Thurman wrote: > If you have a web interface for updating information you could always use AMI > to issue the prune/reload after committing the changes. > > -Jonathan > > -- _ -- 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
Re: [asterisk-users] Realtime changes not reflected realtime
On Sun, Apr 18, 2010 at 12:30 AM, Jonas Kellens wrote: > Jonathan, > > 'sip show peers' works just fine... Sorry, I wasn't clear. It has been my experience in 1.6.1.x that 'sip show peers' does not work without rtcachefriends=yes for realtime implementations. > asterisk*CLI> sip show peers > Name/username Host Dyn Nat ACL Port Status > Realtime > testcorp4 (Unspecified) D N 0 UNREACHABLE > Cached RT > testcorp3/testcorp3 192.168.1.100 D N 5061 OK (25 ms) > Cached RT > > Only you see the 'Realtime'-column, and the 'Cached RT'. With rtcachefriends enabled it does show if the peer is Cached RT or a static peer in sip.conf. -Jonathan -- _ -- 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
Re: [asterisk-users] Realtime changes not reflected realtime
Jonathan, 'sip show peers' works just fine... asterisk*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status Realtime testcorp4 (Unspecified) D N 0 UNREACHABLE Cached RT testcorp3/testcorp3 192.168.1.100 D N 5061 OK (25 ms) Cached RT Only you see the 'Realtime'-column, and the 'Cached RT'. Jonathan Thurman wrote: I know that "sip show peers" doesn't work, and I believe that qualify does not work without caching (but I haven't tested that). I enable caching because I don't change the names of sip_accounts that frequently, and why have Asterisk hit the database constantly if you aren't changing the information? Asterisk will then save all of the results in RAM, and only do a look-up for an unknown account. If you have a web interface for updating information you could always use AMI to issue the prune/reload after committing the changes. -Jonathan -- _ -- 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
Re: [asterisk-users] Realtime changes not reflected realtime
On Sat, Apr 17, 2010 at 11:14 AM, Jonas Kellens wrote: > > Is rtcachefriends=yes a wrong setting ?? > > > No, not if you want caching enabled. I enable sip realtime caching on all > of my systems. > > > What if I do not enable caching ? What would be the effect on my realtime > configuration with sip_buddies in my mysql-DB ? At the bottom of the page it talks a little about caching: http://www.voip-info.org/wiki/view/Asterisk+RealTime+Sip I know that "sip show peers" doesn't work, and I believe that qualify does not work without caching (but I haven't tested that). I enable caching because I don't change the names of sip_accounts that frequently, and why have Asterisk hit the database constantly if you aren't changing the information? Asterisk will then save all of the results in RAM, and only do a look-up for an unknown account. If you have a web interface for updating information you could always use AMI to issue the prune/reload after committing the changes. -Jonathan -- _ -- 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
Re: [asterisk-users] Realtime changes not reflected realtime
Is rtcachefriends=yes a wrong setting ?? No, not if you want caching enabled. I enable sip realtime caching on all of my systems. What if I do not enable caching ? What would be the effect on my realtime configuration with sip_buddies in my mysql-DB ? 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
Re: [asterisk-users] Realtime changes not reflected realtime
On Sat, Apr 17, 2010 at 4:42 AM, Jonas Kellens wrote: > Do I need to 'sip prune realtime all' after every change ?? If you change a sip peer and you have caching enabled, then you need to prune that peer for the change to take effect. On 1.6.1 I issue the following: sip prune realtime sip show load That will only clear the caching for and not all of the peers. The load statement re-caches the peer immediately. I haven't tried this on 1.4, so I don't know if those options exist or not. > Is rtcachefriends=yes a wrong setting ?? No, not if you want caching enabled. I enable sip realtime caching on all of my systems. -Jonathan -- _ -- 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
Re: [asterisk-users] Realtime changes not reflected realtime
Hello Steve, I don't really understand what you mean. Do I need to 'sip prune realtime all' after every change ?? Is rtcachefriends=yes a wrong setting ?? Kind regards, Jonas. Steve Howes wrote: On 17 Apr 2010, at 10:25, Jonas Kellens wrote: 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. So it's being cached? Does 'sip prune realtime all' clear it too? rtcachefriends=yes By that? S -- _ -- 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
Re: [asterisk-users] Realtime changes not reflected realtime
On 17 Apr 2010, at 10:25, Jonas Kellens wrote: > 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. So it's being cached? Does 'sip prune realtime all' clear it too? > rtcachefriends=yes By that? S -- _ -- 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
[asterisk-users] Realtime changes not reflected realtime
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 '' 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