Re: [asterisk-users] Realtime Registration
On Tue, 2011-12-13 at 16:32 -0800, Edwin Lam wrote: On 12/10/11 9:54 PM, Takehiro Matsushima wrote: I'd configured realtime registration, but configuration was not applied when I changed a row of sippeers table. To apply, 'sip reload' was needed (in Asterisk 1.8.0). or you can 'sip prune realtime extension' This is fundamental to understanding realtime registrations. When a peer tries to register the realtime cache is populated from the contents of the sip table, for that row, as it is at that point in time. The peer will then always use the configuration as it is in the cache. To make changes to the configuration of a peer not only do you have to make a change to the table entry, you then need to flush the realtime cache for that peer which is done by the command given above. The peer will then try to reconnect and the realtime cache will be populated from the updated DB entry. Hope this helps Ish -- Ishfaq Malik Software Developer PackNet Ltd Office: 0161 660 3062 -- _ -- 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 Registration
On 12/10/11 9:54 PM, Takehiro Matsushima wrote: I'd configured realtime registration, but configuration was not applied when I changed a row of sippeers table. To apply, 'sip reload' was needed (in Asterisk 1.8.0). or you can 'sip prune realtime extension' (On 12/08/2011 03:42), Andrew O. Zhukov wrote: No secrets :) SELECT * FROM sippeers WHERE name = '105680' AND host = 'dynamic' name|type|username|secret|fromuser|fromdomain|nat|context|canreinvite|disallow|allow|host|insecure|port|ipaddr|outboundproxy 105680|peer|testbutton2|XXX||button.ipshka.com:5060|no|button|no|all|speex;ulaw;alaw;g729;ilbc;g726;g726aal2;slin;lpc10;adpcm;g723|dynamic|port,invite|5060 ||ipshka.com On 12/07/2011 08:04 PM, Jonathan Rose wrote: [Dec 7 19:31:18] ERROR[4217]: chan_sip.c:9940 register_verify: Peer '105680' is trying to register, but not configured as host=dynamic Going on this, I'd say you probably tried to specify the host with a static IP address or a host name. If that's the case, you can't register, because that would be against the whole point of registering in the first place. You should probably post the DB entry for this peer to this thread to make things simpler... if it doesn't contain sensitive data. Of course, you can censor that out too. - Original Message - From: Andrew O. Zhukovgn...@telegroup.com.ua To: asterisk-users@lists.digium.com Sent: Wednesday, December 7, 2011 11:56:20 AM Subject: [asterisk-users] Realtime Registration [Dec 7 19:31:18] DEBUG[4217]: res_config_pgsql.c:821 pgsql_reconnect: Postgresql RealTime: Everything is fine. [Dec 7 19:31:18] DEBUG[4217]: res_config_pgsql.c:201 realtime_pgsql: Postgresql RealTime: Result=0x12e4edd0 Query: SELECT * FROM sippeers WHERE name = '105680' AND host = 'dynamic' [Dec 7 19:31:18] DEBUG[4217]: res_config_pgsql.c:209 realtime_pgsql: Postgresql RealTime: Found 1 rows. [Dec 7 19:31:18] ERROR[4217]: chan_sip.c:9940 register_verify: Peer '105680' is trying to register, but not configured as host=dynamic Any suggestions??? Asterisk 1.4.42 -- Edwin Lam edwin@officegeneral.com Systems Engineer, OfficeWyze, Inc. Ph: +1 415 439 4988 Fax: +1 415 283 3370 http://pgpkeys.mit.edu:11371/pks/lookup?op=getsearch=0xD6506D20 -- _ -- 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 Registration
Hi. I'd configured realtime registration, but configuration was not applied when I changed a row of sippeers table. To apply, 'sip reload' was needed (in Asterisk 1.8.0). (On 12/08/2011 03:42), Andrew O. Zhukov wrote: No secrets :) SELECT * FROM sippeers WHERE name = '105680' AND host = 'dynamic' name|type|username|secret|fromuser|fromdomain|nat|context|canreinvite|disallow|allow|host|insecure|port|ipaddr|outboundproxy 105680|peer|testbutton2|XXX||button.ipshka.com:5060|no|button|no|all|speex;ulaw;alaw;g729;ilbc;g726;g726aal2;slin;lpc10;adpcm;g723|dynamic|port,invite|5060 ||ipshka.com On 12/07/2011 08:04 PM, Jonathan Rose wrote: [Dec 7 19:31:18] ERROR[4217]: chan_sip.c:9940 register_verify: Peer '105680' is trying to register, but not configured as host=dynamic Going on this, I'd say you probably tried to specify the host with a static IP address or a host name. If that's the case, you can't register, because that would be against the whole point of registering in the first place. You should probably post the DB entry for this peer to this thread to make things simpler... if it doesn't contain sensitive data. Of course, you can censor that out too. - Original Message - From: Andrew O. Zhukovgn...@telegroup.com.ua To: asterisk-users@lists.digium.com Sent: Wednesday, December 7, 2011 11:56:20 AM Subject: [asterisk-users] Realtime Registration [Dec 7 19:31:18] DEBUG[4217]: res_config_pgsql.c:821 pgsql_reconnect: Postgresql RealTime: Everything is fine. [Dec 7 19:31:18] DEBUG[4217]: res_config_pgsql.c:201 realtime_pgsql: Postgresql RealTime: Result=0x12e4edd0 Query: SELECT * FROM sippeers WHERE name = '105680' AND host = 'dynamic' [Dec 7 19:31:18] DEBUG[4217]: res_config_pgsql.c:209 realtime_pgsql: Postgresql RealTime: Found 1 rows. [Dec 7 19:31:18] ERROR[4217]: chan_sip.c:9940 register_verify: Peer '105680' is trying to register, but not configured as host=dynamic Any suggestions??? Asterisk 1.4.42 -- _ -- 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 -- _ -- 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 -- _ -- 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 -- _ -- 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 Registration
[Dec 7 19:31:18] DEBUG[4217]: res_config_pgsql.c:821 pgsql_reconnect: Postgresql RealTime: Everything is fine. [Dec 7 19:31:18] DEBUG[4217]: res_config_pgsql.c:201 realtime_pgsql: Postgresql RealTime: Result=0x12e4edd0 Query: SELECT * FROM sippeers WHERE name = '105680' AND host = 'dynamic' [Dec 7 19:31:18] DEBUG[4217]: res_config_pgsql.c:209 realtime_pgsql: Postgresql RealTime: Found 1 rows. [Dec 7 19:31:18] ERROR[4217]: chan_sip.c:9940 register_verify: Peer '105680' is trying to register, but not configured as host=dynamic Any suggestions??? Asterisk 1.4.42 -- _ -- 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 Registration
[Dec 7 19:31:18] ERROR[4217]: chan_sip.c:9940 register_verify: Peer '105680' is trying to register, but not configured as host=dynamic Going on this, I'd say you probably tried to specify the host with a static IP address or a host name. If that's the case, you can't register, because that would be against the whole point of registering in the first place. You should probably post the DB entry for this peer to this thread to make things simpler... if it doesn't contain sensitive data. Of course, you can censor that out too. - Original Message - From: Andrew O. Zhukov gn...@telegroup.com.ua To: asterisk-users@lists.digium.com Sent: Wednesday, December 7, 2011 11:56:20 AM Subject: [asterisk-users] Realtime Registration [Dec 7 19:31:18] DEBUG[4217]: res_config_pgsql.c:821 pgsql_reconnect: Postgresql RealTime: Everything is fine. [Dec 7 19:31:18] DEBUG[4217]: res_config_pgsql.c:201 realtime_pgsql: Postgresql RealTime: Result=0x12e4edd0 Query: SELECT * FROM sippeers WHERE name = '105680' AND host = 'dynamic' [Dec 7 19:31:18] DEBUG[4217]: res_config_pgsql.c:209 realtime_pgsql: Postgresql RealTime: Found 1 rows. [Dec 7 19:31:18] ERROR[4217]: chan_sip.c:9940 register_verify: Peer '105680' is trying to register, but not configured as host=dynamic Any suggestions??? Asterisk 1.4.42 -- _ -- 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 -- _ -- 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 Registration
No secrets :) SELECT * FROM sippeers WHERE name = '105680' AND host = 'dynamic' name|type|username|secret|fromuser|fromdomain|nat|context|canreinvite|disallow|allow|host|insecure|port|ipaddr|outboundproxy 105680|peer|testbutton2|XXX||button.ipshka.com:5060|no|button|no|all|speex;ulaw;alaw;g729;ilbc;g726;g726aal2;slin;lpc10;adpcm;g723|dynamic|port,invite|5060 ||ipshka.com On 12/07/2011 08:04 PM, Jonathan Rose wrote: [Dec 7 19:31:18] ERROR[4217]: chan_sip.c:9940 register_verify: Peer '105680' is trying to register, but not configured as host=dynamic Going on this, I'd say you probably tried to specify the host with a static IP address or a host name. If that's the case, you can't register, because that would be against the whole point of registering in the first place. You should probably post the DB entry for this peer to this thread to make things simpler... if it doesn't contain sensitive data. Of course, you can censor that out too. - Original Message - From: Andrew O. Zhukovgn...@telegroup.com.ua To: asterisk-users@lists.digium.com Sent: Wednesday, December 7, 2011 11:56:20 AM Subject: [asterisk-users] Realtime Registration [Dec 7 19:31:18] DEBUG[4217]: res_config_pgsql.c:821 pgsql_reconnect: Postgresql RealTime: Everything is fine. [Dec 7 19:31:18] DEBUG[4217]: res_config_pgsql.c:201 realtime_pgsql: Postgresql RealTime: Result=0x12e4edd0 Query: SELECT * FROM sippeers WHERE name = '105680' AND host = 'dynamic' [Dec 7 19:31:18] DEBUG[4217]: res_config_pgsql.c:209 realtime_pgsql: Postgresql RealTime: Found 1 rows. [Dec 7 19:31:18] ERROR[4217]: chan_sip.c:9940 register_verify: Peer '105680' is trying to register, but not configured as host=dynamic Any suggestions??? Asterisk 1.4.42 -- _ -- 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 -- _ -- 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 -- _ -- 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