[Serusers] Implementing Voicemail

Jiri Kuthan jiri at iptel.org
Tue Sep 9 20:15:04 CEST 2003


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 at 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
>
>1) How do I know when to direct it to this portion of the code?  After x
>rings?
>
>2) 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 at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
>
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers

--
Jiri Kuthan            http://iptel.org/~jiri/ 




More information about the sr-users mailing list