Enum woes
Not sure if this is a bug or not but if I use an enum lookup the number is dialled with an extra "|" appended to the end causing a dial failure.
[2009-05-04 16:21:46] VERBOSE[5371] logger.c: -- enumlookup.agi: Looking up 448455083810 on e164.org via dns_get_record
[2009-05-04 16:21:46] VERBOSE[5371] logger.c: -- enumlookup.agi: Setting DIALARR to sip/448455083810@62.49.222.254|
If anyone could shead some light on this it would be mose helpful.
Anyone?
Hi Kevin,
I found the problem (i checked 2.6.10 and 2.8.0).
/var/lib/asterisk/agi-bin/enumlookup.agi, (near line 61) puts together the results, separated with a "|"
$dialstr .= $row['URI']."|";
/etc/asterisk/extensions_additional.conf however expects a "%"
[macro-dialout-enum]
exten => s,n,Set(TRYDIAL=${CUT(DIALARR,%,1)})
exten => s,n,Set(DIALARR=${CUT(DIALARR,%,2-)})
I fixed it in 2.8.0 by changing the "|" to a "%" in /var/lib/asterisk/agi-bin/enumlookup.agi
Note that you need to change /var/lib/asterisk/agi-bin/enumlookup.agi to read only, other wise it's overwritten.
Also, while you're changing this file, you might want to look at which servers the script uses for lookups:
$enums = Array(
'e164.org',
//'e164.arpa',
//'e164.info',
);
It would be great if it used /etc/asterisk/enum.conf, but it doesn't.
Gabriel
That works, Thanks so much!
If you edit /var/www/html/admin/modules/core/agi-bin/enumlookup.agi instead it won't get overwritten every time you make a change (this file appears to be the template for /var/lib/asterisk/agi-bin/enumlookup.agi). Make a backup of the file just in case.
GG
That worked great!
Enum is back to happy again.
Thanks, this worked for me too, I'm able to make outbound calls.
I've listed one of my landlines with enum which is mapped to extn. 2001, when i call this landline using enum the call does not land on extn 2001. The verbose says that it was able lookup and resolve to extn 2001@mydomain properly and started dialing, but later gives line busy. Any help will be greatly appreciated.

Member Since:
2006-08-09