This works great if the user is offline. Is there anyway for voicemail to pick up after a certain time period or after a certain number of rings?
Thanks,
Stephen
-----Original Message----- From: Jiri Kuthan [mailto:jiri@iptel.org] Sent: Tuesday, September 09, 2003 1:15 PM To: Steve Dolloff; serusers@lists.iptel.org Subject: RE: [Serusers] Implementing Voicemail
The key fragments of SER script with voicemail support are as follows:
if (uri==myself) { # vm only for my domain ...
/* if this is an in-dialog request from voicemail, jump out of proxy mode and pass the request to voicemail; you need to have 'user_prefix_separator=+' in sems.conf */ if (uri=~"sip:voicemail+@") { /* some transaction processing to absorb retransmissions; the key part is "vm", which passes requests to the SEMS machine (we should better integrate all this stuff in a single command someday, sorry scriptwriters */ t_newtran(); t_reply("100", "trying -- just a second"); if (!vm("/tmp/am_fifo","announcement")) { t_reply("500", "SEMS error"); }; break; };
if (!lookup()) { # user off-line? if (method=="INVITE" || method=="ACK") { t_newtran(); t_reply("100", "trying -- just a second"); if (!vm("/tmp/am_fifo","announcement")) { t_reply("500", "SEMS error"); }; break; }; # non-VoIP methods for off-line users will just # just return 404 sl_send_reply("404", "Not Found"); break; }; # continue with online users.....
That's it, very briefly.
You can improving by handling users who are on-line but whose requests fail downstream (no reply timeout,busy,etc.)
If all is set up properly, the recepient will receive the message by email/
-Jiri
At 06:37 PM 9/9/2003, Steve Dolloff wrote:
I have the sems installed and it works great. Does anyone have a
config
that they could share that would illustrate how to use the vm in normal use? I'm sending all off-net calls to a sip gateway. I would want calls to go to vm after x rings.
Thanks,
Stephen
-----Original Message----- From: Steve Dolloff Sent: Tuesday, September 09, 2003 9:48 AM To: serusers@lists.iptel.org Subject: [Serusers] Implementing Voicemail
I was looking at an old thread regarding this. http://lists.iptel.org/pipermail/serusers/2003-July/002003.html
- How do I know when to direct it to this portion of the code? After
x
rings?
- Am I mistaken in thinking that there is a voicemail system built in?
Do I need to install a separate voicemail system? If not, how do I configure the voice mail system? If so, can anyone recommend one?
Thanks,
Stephen
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Jiri Kuthan http://iptel.org/~jiri/
At 10:26 PM 9/9/2003, Steve Dolloff wrote:
This works great if the user is offline. Is there anyway for voicemail to pick up after a certain time period or after a certain number of rings?
Roughly yes. The closest example is at http://www.iptel.org/ser/doc/seruser/seruser.html#REPLYPROCESSING
There is no number of rings in SIP -- there is the invite_fr timeout.
-Jiri