[Serusers] using voicemail

Klaus Darilion klaus.mailinglists at pernau.at
Mon May 3 12:28:10 CEST 2004


you can try the revert_uri function before sending to sems. This will 
revert the request uri to the original one (sip:bonda at sip.inet.it), so 
that sems can find the emailaddress in the subscriber table.

klaus

Andrea Bondavalli wrote:
> Hi,
> 
> the problem is that my users register more than 1 contact.
> For example the user "sip:bonda at sip.inet.it" registers the following contacts:
> sip:bonda at 213.92.1.100
> sip:03472323 at sip.inet.it (to PSTN using a Cisco Gateway)
> sip:02323232 at sip.inet.it (to PSTN using a Cisco Gateway)
> 
> When all of these contacts are forked by SER and all of them
> timeout (30 seconds per INVITE) I want to
> send the caller to the bonda's voicemail.
> Unfortunately if the last INVITE is sent to a phone number and
> not to 'sip:bonda at 213.92.1.100' SEMS reports:
>  "Error: 404 voicemail: no email address for user 03472323."
> 
> Thank you,
> Andrea
> 
> ----- Original Message ----- 
> From: "Klaus Darilion" <klaus.mailinglists at pernau.at>
> To: "Andrea Bondavalli" <a.bondavalli at inet.it>
> Cc: <serusers at lists.iptel.org>
> Sent: Friday, April 30, 2004 1:11 PM
> Subject: Re: [Serusers] using voicemail
> 
> 
> 
>>Check if it is a gateway call before setting up the failure route.
>>
>>klaus
>>
>>if (isflagset(4)) { /*voicemail enabled*/
>>   if (!(PSTN call?)) {
>>       t_on_failure("1");
>>   }
>>}
>>
>>Andrea Bondavalli wrote:
>>
>>>Hi all,
>>>
>>>I am configuring SER in order to use the SEMS's voicemail
>>>when one of my subscribed users is not avaiable or
>>>when all the INVITEs to their contacts fail (fork).
>>>
>>>I'am using the following configuration:
>>>
>>>route {
>>>....
>>>if (isflagset(4)) { /*voicemail enabled*/
>>>    t_on_failure("1");
>>>}
>>>
>>>if (!t_relay()) {
>>>    sl_reply_error();
>>>    break;
>>>}
>>>
>>>}
>>>
>>>failure_route[1] {
>>>        t_reply("100","Trying -- going to voicemail");
>>>
>>>        if (method=="INVITE" || method=="REFER") {
>>>                 log("**************** vm start - begin ******************\n");
>>>                 log("****************     voicemail    ******************\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");
>>>        }
>>>        else if (method=="BYE") {
>>>                 log("**************** vm end - begin ******************\n");
>>>                 log("****************   voicemail    ******************\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");
>>>        };
>>>}
>>>
>>>...
>>>
>>>This works fine when the system calls a user's contact whose username part
>>>matches the subscribed user name. 
>>>Unfortunately, if the system tries to reach such a contact at a phone
>>>number (using a gateway)  the result is that SEMS reports:
>>>"Error: 404 voicemail: no email address for user 034823213213."
>>>
>>>Can you help me ?
>>>
>>>Best regards,
>>>Andrea
>>>
>>>
>>>
>>>
>>>
>>>
>>>_______________________________________________
>>>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
> 
> 




More information about the sr-users mailing list