[Serusers] allow_trusted"trusted table"

samuel samu60 at gmail.com
Fri Sep 15 11:26:23 CEST 2006


Check the logs for further info and provide it to the list so we can
point you to the right direction....
2006/9/15, ravi reddy <mravikreddy at gmail.com>:
>
>  I changed Samuel but no use.,,
>
>   my module param is like below:
>
>  modparam("permissions", "db_mode", 1)
>  modparam("permissions", "trusted_table", "trusted")
>
>  i think SER is not looking in to trusted table :-
>
>  Any ideas,
>
>
>
> On 9/15/06, samuel <samu60 at gmail.com> wrote:
> > CC'ing to the list...
> >
> > Change the from pattern and just place .* (without the ^sip: and the
> > $) if you want to accept ALL from patterns.
> >
> > Samuel.
> >
> > 2006/9/15, ravi reddy < mravikreddy at gmail.com>:
> > > Thanks for your reply Samuel,
> > >
> > >   I will get income calls from 6 pstn gateways and i had added all the
> > > ip-adresses in the trusted table as follows
> > >    src_ip   proto   from_pattern
> > >    pstngw   any    ^sip:.*$
> > >
> > >  but even though my SER is asking the authentication what i have to do
> :-(
> > >
> > > On 9/15/06, samuel <samu60 at gmail.com > wrote:
> > > > Take a look at the getting started doc and you'll find how to use
> > > > allow_trusted. For instance:
> > > >
> > > > #
> > >
> -----------------------------------------------------------------
> > > > 107. # Call Type Processing Section
> > > > 108. #
> > >
> -----------------------------------------------------------------
> > > > 109. if (!is_uri_host_local()) {
> > > > 110. if (is_from_local() || allow_trusted()) {
> > > > 111. route(4);
> > > > 112. route(1);
> > > > 113. } else {
> > > > 114. sl_send_reply("403", "Forbidden");
> > > > 115. };
> > > > 116. break;
> > > > 117. };
> > > >
> > > >
> > > > You would have to populate the trusted table in the SER's DB with the
> > > > "trusted" IPs.
> > > >
> > > > Samuel.
> > > >
> > > > 2006/9/14,
> > > >
> > > > ravi reddy <mravikreddy at gmail.com>:
> > > > > Hi samuel,
> > > > >
> > > > >     I am using onsip.org ser.cfg and how can we check allow_trusted
> is
> > > true
> > > > > ?
> > > > >
> > > > >                    Thank You for reply.
> > > > >
> > > > >  Regards,
> > > > >  Ravi.
> > > > >
> > > > >
> > > > > On 9/14/06, samuel <samu60 at gmail.com> wrote:
> > > > > > you have to check whether allow_trusted returns true or not before
> any
> > > > > > auth. action.
> > > > > >
> > > > > > Samuel.
> > > > > >
> > > > > > 2006/9/14, ravi reddy < mravikreddy at gmail.com>:
> > > > > > > Hi ,
> > > > > > >
> > > > > > >       When i tried to make a incoming call from pstn to SER its
> > > asking
> > > > > for
> > > > > > > proxy authentication required,
> > > > > > >
> > > > > > >   I had entered the pstngw ip address in trusted table even then
> the
> > > > > same
> > > > > > > problem , is any thing else i have to do ;-)
> > > > > > >
> > > > > > >   how i can cross this problem.
> > > > > > >
> > > > > > >
> > > Thank
> > > > > You.
> > > > > > >
> > > > > > >  Regards,
> > > > > > >  Ravi.
> > > > > > >
> > > > > > > _______________________________________________
> > > > > > > Serusers mailing list
> > > > > > > Serusers at lists.iptel.org
> > > > > > >
> http://lists.iptel.org/mailman/listinfo/serusers
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > >
> > >
> >
>
>



More information about the sr-users mailing list