[Amportal-devel] voicemail context issues

Hi all,

(resend to users, as “devel” ignores my mails… sourceforce SUX)

I got a bug report from a user which complains that his SIP phones did
not get voicemail indications. We had another report which claims that
the Zaptel auto configurated phones had the same problem.

In both times the problem was that the context defined for those devices
was “device”. While the voicemail.con generated by AMP (and also FreePBX
2.1.1) puts those devices under “default”. This works because of update
default_devices_users.php from 1.0.009-beta2:

    foreach($devresults as $dev) {
            extract($dev);
            $astman->database_put("DEVICE",$id."/dial",$dial);
            $astman->database_put("DEVICE",$id."/type",$devicetype);
            $astman->database_put("DEVICE",$id."/user",$user);
            $astman->database_put("AMPUSER",$user."/device",$id);

            //voicemail symlink
            exec("rm -f /var/spool/asterisk/voicemail/device/".$id);
            exec("/bin/ln -s

/var/spool/asterisk/voicemail/default/".$user."/
/var/spool/asterisk/voicemail/device/".$id);
exec(“chown asterisk:asterisk
/var/spool/asterisk/voicemail/device/”.$id);
}

I would like to know what purpose does it serve. Why we cannot just
modify functions.php to generate all SIP (IAX,ZAP whatever) extensions
to work on the default context? or modifying the default context defined
at voicemail.conf.

IMHO, having those links is plain stupid.

  • diego

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

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