Hi, There is any possibility to dial a specific extension and then enter in your own mailbox (the one defined for that specific SIP phone) without asking for the exxtension number but only for the password? I want to be the same extension for all phones, not a specific one for each of them. It is possible to have a time stamp in the recorded message? I want to know when the message has been recorded. Thanks, Dan
e.g. exten => 8501,1,VoiceMailMain2(${CALLERIDNUM}) Tan telappliant.com ----- Original Message ----- From: "Dan" <dtoma@fx.ro> To: <asterisk-users@lists.digium.com> Sent: Monday, July 07, 2003 4:47 PM Subject: [Asterisk-Users] Direct entry to your own voice mailbox Hi, There is any possibility to dial a specific extension and then enter in your own mailbox (the one defined for that specific SIP phone) without asking for the exxtension number but only for the password? I want to be the same extension for all phones, not a specific one for each of them. It is possible to have a time stamp in the recorded message? I want to know when the message has been recorded. Thanks, Dan _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users
The Traveller
2003-Jul-07 09:39 UTC
[Asterisk-Users] Direct entry to your own voice mailbox
Hey Dan, On Mon, Jul 07, 2003 at 18:47:07 +0300, Dan wrote:> Hi, > > There is any possibility to dial a specific extension and then enter in your > own mailbox (the one defined for that specific SIP phone) without asking for > the exxtension number but only for the password?Sure. Pass the mailbox as an arg to the "VoiceMailMain" or "VoiceMailMain2"-app. See "show application voicemailmain" on the Asterisk-console for more info.> I want to be the same extension for all phones, not a specific one for each > of them.I think you could do that by passing "${CALLERIDNUM}" as the arg.> It is possible to have a time stamp in the recorded message? I want to know > when the message has been recorded.I think someone here was working on a patch for that, which was waiting for prompts to be recorded. Not sure of the current status. Grtz, Oliver
Hi, Thank you very much for your help.> > > It is possible to have a time stamp in the recorded message? I want toknow> > when the message has been recorded. > > I think someone here was working on a patch for that, which was waiting > for prompts to be recorded. Not sure of the current status.Why other prompts? There is an application available (DateTime) to say current date and time. It cannot be integrated in the Voicemail appication? BR, Dan
Thanks, It seems to work with VoiceMailMain application too. BR, Dan ----- Original Message ----- From: "Tan Aks" <tan@yointernet.com> To: <asterisk-users@lists.digium.com> Sent: Monday, July 07, 2003 7:25 PM Subject: Re: [Asterisk-Users] Direct entry to your own voice mailbox> e.g. > > exten => 8501,1,VoiceMailMain2(${CALLERIDNUM}) > > Tan > telappliant.com > > ----- Original Message ----- > From: "Dan" <dtoma@fx.ro> > To: <asterisk-users@lists.digium.com> > Sent: Monday, July 07, 2003 4:47 PM > Subject: [Asterisk-Users] Direct entry to your own voice mailbox > > > Hi, > > There is any possibility to dial a specific extension and then enter inyour> own mailbox (the one defined for that specific SIP phone) without askingfor> the exxtension number but only for the password? > > I want to be the same extension for all phones, not a specific one foreach> of them. > > It is possible to have a time stamp in the recorded message? I want toknow> when the message has been recorded. > > Thanks, > Dan > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users >
Florian Overkamp
2003-Jul-07 11:15 UTC
[Asterisk-Users] Direct entry to your own voice mailbox
Citeren Dan <dtoma@fx.ro>:> There is any possibility to dial a specific extension and then enter in your > own mailbox (the one defined for that specific SIP phone) without asking for > the exxtension number but only for the password? > > I want to be the same extension for all phones, not a specific one for each > of them.Hi, this is one tool I have used a lot up to now; I have a simple conversion table: callerid -> voicemailbox. You could simply used ${CALLERID} or something, but I also have some remote cellphones and the likes... #!/usr/bin/php4 -q <? // Set some parameters ob_implicit_flush(true); // Don't buffer output set_time_limit(0); // This program may take forever // Setup file handles $stdin = fopen("php://stdin", "r"); set_file_buffer($stdin, 0); $stderr = fopen("php://stderr", "a"); set_file_buffer($stderr, 0); // Do function definitions before we start the main loop function read() { global $stdin; $input=fgets($stdin, 255); return str_replace("\n", "", $input); return $input; } function errlog($line) { global $stderr; fputs($stderr, $line."\n"); } // parse agi headers into array $agi["callerid"] while ($env=read()) { errlog($env); $s = split(": ",$env); $agi[str_replace("agi_","",$s[0])] = trim($s[1]); echo "VERBOSE \"".$s[0].": ".$s[1]."\" 1\n"; if (($env == "") || ($env == "\n")) { break; } } // Main run $clid = $agi["callerid"]; switch($clid) { // enter the mailbox number for each valid callerid // prepend 's' if you wish to trust the callerid and skip the password check case "0612345678": $parms = "s1000"; break; default: $parms = "0"; break; } if($parms != "") $parms = " $parms"; echo "EXEC VoiceMailMain$parms\n"; // Close file handles fclose($stdin); fclose($stderr); ?> -- Met vriendelijke groet, Florian Overkamp ObSimRef BV