[Serusers] pstn -> ser -> asterisk voicemail

Jack Wei cowlemon at yahoo.com
Wed Aug 3 22:17:19 CEST 2005


i'm having a minor problem with pstn to ser forwarding to asterisk voicemail. 
when ser forwards the call to asterisk, the destination ua keeps ringing while
the regular phone hears the voicemail.  this doesn't happen when it's a
ip-to-ip call.    anyone knows why this is happening?


ser.cfg
=================
route
{
...
                        if ( lookup( "location" ) )  # Destination UA is online
                        {
                                xlog("L_INFO", "%ru is online (in
usrloc)\n\n");
                                setflag( 10 );
                        }
                        else  # Checking database to check if destination UA is
online
                        {
                                route(4);
                        };

                        if ( !isflagset( 10 ) )  # Destination UA is not
online...sending to Asterisk voicemail
                        {
                                xlog("L_INFO", "%ru is not online...sending to
voicemail\n\n");
                                route(3);
                        }
                        else
                        {
                                resetflag( 10 );
                                append_hf( "P-hint: VOIP OUTBOUND\r\n" );
                                t_on_failure("1");
                        };
...
}

route[3]
{
        xlog("L_INFO", "Sending URI (%ru) to Asterisk voicemail\n\n");
        append_hf( "P-hint: VOICEMAIL\r\n" );
        rewritehostport("x.x.x.x:5060");
}


failure_route[1]
{
        xlog("L_INFO", "Call timed out\n\n");
        route(3);
        append_branch();
        t_relay_to_udp("x.x.x.x","5060");
        break;
}

Jack Wei

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




More information about the sr-users mailing list