Hey guys,
Im playing with the voicemail .. again..and wondering on how I can make my voicemail service take the phone after ~10 rings.
this is the if I'v got now..
- Atle
# Voicemail specific configuration - begin
if(method=="ACK" || method=="INVITE" || method=="BYE"){
if(t_newtran()){
t_reply("100","Trying -- just wait a minute !");
if(method=="INVITE"){ log("**************** vm start - begin ******************\n"); if(!vm("/tmp/am_fifo","voicemail")){ log("could not contact the answer machine\n"); t_reply("500","could not contact the answer machine"); }; log("**************** vm start - end ******************\n"); break; };
if(method=="BYE"){ log("**************** vm end - begin ******************\n"); if(!vm("/tmp/am_fifo","bye")){ log("could not contact the answer machine\n"); t_reply("500","could not contact the answer machine"); }; log("**************** vm end - end ******************\n"); break; }; } else { log("could not create new transaction\n"); sl_send_reply("500","could not create new transaction"); }; };
# Voicemail specific configuration - end
Hi Atle,
take a look at the confuration file within [ser]/examples/vm_proxy.cfg. Then you can change the redirection part within 'failure_route' block to redirect to voicemail. That's it !
-Raphael.
----- Original Message ----- From: "Atle Samuelsen" clona@cyberhouse.no To: serusers@lists.iptel.org Sent: Sunday, January 25, 2004 10:10 PM Subject: [Serusers] voicemail (again)
Hey guys,
Im playing with the voicemail .. again..and wondering on how I can make my voicemail service take the phone after ~10 rings.
this is the if I'v got now..
- Atle
# Voicemail specific configuration - begin
if(method=="ACK" || method=="INVITE" || method=="BYE"){ if(t_newtran()){ t_reply("100","Trying -- just wait a
minute !");
if(method=="INVITE"){ log("**************** vm start -
begin ******************\n");
if(!vm("/tmp/am_fifo","voicemail")){
log("could not contact the
answer machine\n");
t_reply("500","could not
contact the answer machine");
}; log("**************** vm start -
end ******************\n");
break; }; if(method=="BYE"){ log("**************** vm end -
begin ******************\n");
if(!vm("/tmp/am_fifo","bye")){ log("could not contact the
answer machine\n");
t_reply("500","could not
contact the answer machine");
}; log("**************** vm end - end
******************\n");
break; }; } else { log("could not create new transaction\n"); sl_send_reply("500","could not create new
transaction");
}; }; # Voicemail specific configuration - end
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
You can't make it to pick up after 10 rings. Rings are generated localy by your phone. You can make to pick it up after some timeout.
Jan.
On 25-01 22:10, Atle Samuelsen wrote:
Hey guys,
Im playing with the voicemail .. again..and wondering on how I can make my voicemail service take the phone after ~10 rings.
this is the if I'v got now..
- Atle
# Voicemail specific configuration - begin
if(method=="ACK" || method=="INVITE" || method=="BYE"){ if(t_newtran()){ t_reply("100","Trying -- just wait a minute !"); if(method=="INVITE"){ log("**************** vm start - begin ******************\n"); if(!vm("/tmp/am_fifo","voicemail")){ log("could not contact the answer machine\n"); t_reply("500","could not contact the answer machine"); }; log("**************** vm start - end ******************\n"); break; }; if(method=="BYE"){ log("**************** vm end - begin ******************\n"); if(!vm("/tmp/am_fifo","bye")){ log("could not contact the answer machine\n"); t_reply("500","could not contact the answer machine"); }; log("**************** vm end - end ******************\n"); break; }; } else { log("could not create new transaction\n"); sl_send_reply("500","could not create new transaction"); }; }; # Voicemail specific configuration - end
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers