> I did place this portion inside the myself check
>and it still tries to transfer to vm after the time expires.
I'm puzzled -- did not you want to transfer to vm
after the time
expires?
I will try to make this clearer. I am behind an ATA with a SIP proxy of
209.242.10.153. If I call someone else registered on my domain and they
are not available, I want to go to voice mail. If I call 1-800-555-1212
from my phone, I do not want my sip proxy to reroute the call to
voicemail after 10 seconds if no one answers(or ever for that matter).
Right now if I dial 18005551212 from my handset, I see the destination
as sip:18005551212@209.242.10.153 on the server which matches to myself
and ser tries to send it to voicemail.
Someone calling into the network is not a problem. They will never hit
our server unless the destination is local.
>This is the part that I really need help with!
When the call timer
>fails, the call goes to the route[1]. How do I get it into voice mail
>from that point?
See bellow, I think that should work.
This is what I had originally, and I get the following syslog.
Sep 10 16:36:36 voip2 ser: parse error (127,37-38): Command cannot be
used in the block
Sep 10 16:36:36 voip2 ser: ERROR: bad config file (1 errors)
Sep 10 16:36:36 voip2 ser: ser startup failed
Is says that vm is not valid in the block. According the admin guide,
only certain commands can be used within a failure block. I assume that
is the problem here. If not, please let me know as this is exactly what
I want to do.
THE SAME STUFF LIKE ABOVE, YOU DON'T WANT TO
t_relay ANYTHING
if(!vm("/tmp/am_fifo","voicemail")){
t_reply("500", "SEMS
error");
};
break;