[Home]

Summary:ASTERISK-06733: Anti-Ex-Girlfriend not working on RealTime Extensions - 1.2.6
Reporter:Josh Goes (ashtrax)Labels:
Date Opened:2006-04-08 06:48:42Date Closed:2006-04-08 14:35:01
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Tested with Asterisk 1.2.6 & Asterisk Addons 1.2.2
Redhat Enterprise Linux 4 AS (2.6.9-5)

When MySQL non-static realtime extensions is set-up (extconfig.conf has been set up, and there is a switch line in extensions.conf) and an exten has been set up with the anti-ex-girlfriend trick it appears that Asterisk will always respond with a 484 message, regardless of wether the person calling matches the "ex-girlfriend"s number.

When the same line is placed into extensions.conf the anti-ex-girlfriend works normally and returns a 404 for callers that dont match the ex girlfriend's number.

If I have missed any information or not been descriptive enough please let me know!



****** ADDITIONAL INFORMATION ******

'extensions' table DB structure:
CREATE TABLE `extensions` (
 `id` int(11) NOT NULL auto_increment,
 `context` varchar(20) NOT NULL default '',
 `exten` varchar(20) NOT NULL default '',
 `priority` tinyint(4) NOT NULL default '0',
 `app` varchar(20) NOT NULL default '',
 `appdata` varchar(128) NOT NULL default '',
 PRIMARY KEY  (`context`,`exten`,`priority`),
 KEY `id` (`id`)
) TYPE=MyISAM;


Steps To Reproduce:
1) Compile & install the asterisk-addons-1.2.2 ontop of asterisk-1.2.6
2) Set up sip.conf (or the realtime sip table, if you have configured it that way) for 3 extensions.
3) Set up extconfig.conf to make extensions consult a mysql database:
extensions => mysql,asterisk
4) Set up extensions.conf to forward all dialplan requests to the DB:
switch => Realtime/@extensions
5) Insert an anti-ex-girlfriend line into the database:
INSERT INTO extensions VALUES (NULL, 'default', '71369/71341', '1', 'Dial', 'SIP/71369');
6) Try to call 71369 from 71341 and you will get a 484 message.
7) Try to call 71369 from a non-71341 extension and you will also get a 484 message.
8) Undo the realtime set-up config (undo steps 3 & 4)
9) Insert the same line into extensions.conf:
exten => 71369/71341,1,Dial(SIP/71369)
10) And anti-ex-girlfriend works!


Comments:By: Tilghman Lesher (tilghman) 2006-04-08 14:35:01

This behavior is already documented in docs/README.realtime, in the pasted section below:

----cut-----
* New function in the dial plan: The Realtime Switch
----------------------------------------------------
The realtime switch is more than a port of functionality in v1.0 to the
new architecture, this is a new feature of Asterisk based on the
ARA. The realtime switch lets your Asterisk server do database lookups
of extensions in realtime from your dial plan. You can have many Asterisk
servers sharing a dynamically updated dial plan in real time with this
solution.

Note that this switch does _NOT_ support Caller ID matching, only
extension name/pattern matching.
-----cut-----

Note that if you would like to see this feature added, please use the Wiki to announce your feature request.  If you have a patch to offer (and a disclaimer on file), you may reopen this bug.