Re: Authorization failed for sendsms

Giovanni Venturi <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization NoCable
Message-ID <[email protected]>
Alle 09:00, giovedì 31 marzo 2005, Benjamin Lee ha scritto:
> I think this is the relevant code:
>
> /*
>  * new authorisation, usable by POST and GET
>  */
> static URLTranslation *authorise_username(Octstr *username, Octstr
> *password, Octstr *client_ip)
> {
...
I tryed to add a fprintf(...) in gw/urltrans.c:

URLTranslation *urltrans_find_username(URLTranslationList *trans,
                                       Octstr *name)
{
    URLTranslation *t;
    int i;

    gw_assert(name != NULL);
    for (i = 0; i < list_len(trans->list); ++i) {
        t = list_get(trans->list, i);
        if (t->type == TRANSTYPE_SENDSMS) {
            if (octstr_compare(name, t->username) == 0)
            {
 -->>   fprintf( stderr, "return t;" ); <<--- I added this and it prints this.
                return t;
            }
        }
    }
    fprintf( stderr, "ritorna NULL" );
    return NULL;
}


Giovanni
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.