[Amportal-users] [fix?] "No DID or CID Match" afte

El lun, 10-07-2006 a las 09:09 +0200, Vicente Aguilar escribió:

[quote] Everything is working perfectly so far except for one detail: after
making changes to any extension via FreePBX, like say adding or removing
"follow me" settings, changing the channel for an extension, activating
or deactivating voicemail, etc., ALL external incoming calls to ANY
extension (not just the modified ones) fail with an “extension
unavailable” voice message and a “No DID or CID Match” on the logs. All
internal calls keep working, only the external ones fail. Seems like if
the DIDs are somehow lost after a change.
[/quote]
The cause seems to be that a mere “reload” doesn’t re-read correctly all
the #inlcude’d config files, like extensios_additional where the DID
contexts are. On the other hand, a “restart” does work.

Have tried to, in footer.php row 82, change:

$astman->send_request(‘Command’, array(‘Command’=>‘reload’));

to:

$astman->send_request(‘Command’, array(‘Command’=>‘restart when
convenient’));

The problem with this fix is that, if Asterisk can’t restart itself in
that precise moment and delays the restart for some minutes, the HTTP
session hangs and all the application (I mean, FreePBX) stops being
responsive until then: minutes, hours… until Asterisk has no call
activity at all.

Second take: also in footer.php, remove all the code referring to
AGI_AsteriskManager and $astman (rows 73-86) and instead of that just do
a:

system(“touch /var/run/asterisk/restart”);

And then run something like this from cron every minute:


#!/bin/sh

if [ -f /var/run/asterisk/restart ]
then
echo "Restarting Asterisk*"
asterisk -r -x "restart when convenient"
killall op_server.pl
rm -f /var/run/asterisk/restart
fi

Somewhat kludgey, I know. Dirty? Yeah, sure. But WorksForMe™.

Of course, this solution has one drawback: the changes aren’t applied
immediately, but as Asterisk sees fit. But it works. I mean, no incoming
call is bounced with the “extension unavailable/no DID or CID match”.

Regards,


Vicente Aguilar [email protected]
Departamento de Sistemas
Tlf.: 965 98 71 92

Recursos en la Red, S.L.U.
http://www.renr.es


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


Amportal-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-users

Post generated using Mail2Forum (http://www.mail2forum.com)