[Serusers] Call rout to PSTN gw

Kamran Ahmad p_kami at yahoo.com
Tue Apr 12 13:09:31 CEST 2005


should i use for NAT+PSTN call
but when i am trying from PrivateIP it is saying "603
Decline"

if (uri=~"^sip:6[0-9]*@202.42.132.133") {
                rewritehostport("203.193.46.38:5060");
                #t_relay();

                force_rport();
                fix_nated_contact();
                force_rtp_proxy();
                t_relay();
                break;
}



--- "Greger V. Teigre" <greger at teigre.com> wrote:
> You forgot t_relay();
> 
>         if (method=="INVITE") {
>                 rewritehostport("gwIP:5060");
>         =>
>                 break;
>         };
> 
> Kamran Ahmad wrote:
> > hello
> > 
> > i have a simple problem i am trying to rout my
> call to
> > PSTN gateway but it is not working
> > 
> > but i cant receive any request on gateway
> > 
> > route {
> > 
> >     #
> >
>
-----------------------------------------------------------------
> >     # Sanity Check Section
> >     #
> >
>
-----------------------------------------------------------------
> > 
> >     if (!mf_process_maxfwd_header("10")) {
> >             sl_send_reply("483", "Too Many Hops");
> >             break;
> >     };
> > 
> >     if (msg:len > max_len) {
> >             sl_send_reply("513", "Message
> Overflow");
> >             break;
> >     };
> > 
> >     #
> >
>
-----------------------------------------------------------------
> >     # Record Route Section
> >     #
> >
>
-----------------------------------------------------------------
> > 
> >        if (method=="INVITE") {
> >                rewritehostport("gwIP:5060");
> >                break;
> >        };
> > 
> > 
> >     if (method!="REGISTER") {
> >                save("location");
> >             record_route();
> >     };
> > }
> > 
> > 
> > 
> > 
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Small Business - Try our new resources
> site!
> > http://smallbusiness.yahoo.com/resources/
> > 
> > _______________________________________________
> > Serusers mailing list
> > serusers at lists.iptel.org
> > http://lists.iptel.org/mailman/listinfo/serusers
> 


		
__________________________________ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 




More information about the sr-users mailing list