This seem about right, not tested all too well:
Index: includes/callme.php
===================================================================
--- includes/callme.php (revision 10209)
+++ includes/callme.php (working copy)
@@ -93,7 +93,14 @@
$extension = "s";
$priority = "1";
$callerid = "VMAIL/$from";
- $variable = "MSG=$new_path|MBOX=$from";
+ $engine_info = engine_getinfo();
+ $version = $engine_info['version'];
+ if (version_compare($version, "1.6", "ge")) {
+ $variable = "MSG=$new_path,MBOX=$from";
+ } else {
+ $variable = "MSG=$new_path|MBOX=$from";
+ }
+
/* Arguments to Originate: channel, extension, context, priority, timeout, callerid, variable, account, application, data */
$status = $astman->Originate($channel, $extension, $context, $priority, NULL, $callerid, $variable, NULL, NULL, NULL);
if (is_array($status))