[Serusers] AUTHENTIFCATION help meeeeeeeeee

Alan Litster alitster at telcoelectronics.co.uk
Tue Jul 13 13:03:12 CEST 2004


That's because you don't authorise the outbound call...

Place this with your domain name before you forward the call onto your
gateway.

if (!(proxy_authorize(""))) {
    proxy_challenge("", "1");
    break;
};


Regards,

Alan



-----Original Message-----
From: serusers-bounces at iptel.org [mailto:serusers-bounces at lists.iptel.org]On
Behalf Of Nicolas RUIZ
Sent: 13 July 2004 11:46
To: serusers at lists.iptel.org
Subject: [Serusers] AUTHENTIFCATION help meeeeeeeeee


Hi,



I can place and receive call from the PSTN, but I can place call even if I
am not registered !!!!!!!



And I want only user who are registered can place call?



How can I do please?



That's my configuration file :



route{

        # initial sanity checks -- messages with

        # max_forwards==0, or excessively long requests

        if (!mf_process_maxfwd_header("10")) {

                sl_send_reply("483","Too Many Hops");

                break;

        };

        if ( msg:len > max_len ) {

                sl_send_reply("513", "Message too big");

                break;

        };



        # we record-route all messages -- to make sure that

        # subsequent messages will go through our proxy; that's

        # particularly good if upstream and downstream entities

        # use different transport protocol

        record_route();

        # loose-route processing

        if (loose_route()) {

                t_relay();

                break;

        };





        /* grant Route routing if route headers present */

        if (loose_route()) { t_relay(); break; };



        /* record-route INVITEs -- all subsequent requests must visit us */

        if (method=="INVITE") {

                record_route();

        };



        # now check if it really is a PSTN destination which should be
handled

        # by our gateway; if not, and the request is an invitation, drop
it --

        # we cannot terminate it in PSTN; relay non-INVITE requests -- it
may

        # be for example BYEs sent by gateway to call originator



        if (uri=~"My realm") {



                if (method=="REGISTER") {



                        # Uncomment this if you want to use digest
authentication

                        if (!www_authorize("My realm ", "subscriber")) {

                                www_challenge("My realm ", "0");

                                break;

                        };



                        save("location");

                        break;

                };



                # native SIP destinations are handled using our USRLOC DB

                if (!lookup("location")) {



                #rewritehostport("*****:5060");

                forward(*****, 5060);



                };



               # forward the request now

                if (!t_relay()) {

                        sl_reply_error();

                        break;

                };

        };

}




-------------------------------------------------------------------------------------------------------
This email, and any files transmitted with it, is copyright and may contain confidential information.
The contents are intended for the use of the addressee(s) only.
Unauthorized use may be unlawful.
If you receive this email by mistake, please advise sender immediately.
The views of the author may not necessarily constitute the views of Telco Electronics Limited.
Nothing in this mail shall bind Telco Electronics Limited in any contract or obligation.

Telco Electronics Limited
6-8 Oxford Court
Brackley
Northants
NN13 7XY

Tel 07000 701999
Fax 07000 701777




More information about the sr-users mailing list