Re: Aliases for sms-service is working

<[email protected]>
Newsgroups gmane.comp.mobile.kannel.user,gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Seems there is a problem with the aliases directive.

Aliases are completely ignored in current kannnel cvs 1.4.0 and requests
are directed to the default keyword.
Included is a patch for kannel 1.4.0 that fixes the problem.
Could this be included/fixed in current cvs of kannel ?

Thnx,

Best regards,


> Hello,
>
> I have troubles to get the "aliases" directive working for my
> sms-service.  We are using Kannel 1.4
> on a Debian Linux server.  Whenever we use an alias for an sms-service,
>  the URL of the default service is called.
>
> Could this be a bug ?  Is anyone else experiencing the same problem  ?
>
> Any help would be much appreciated...
>
> Best regards,
> Bart Ronsyn


-- 
Tom De Wispelaere
urltrans.patch (application/octet-stream, 503 B)
--- ../../../tom2/gateway/gw/urltrans.c	Wed Mar  2 14:55:00 2005
+++ urltrans.c	Wed May 25 16:55:18 2005
@@ -1386,6 +1386,7 @@ static URLTranslation *find_translation(
     octstr_convert_range(keyword, 0, octstr_len(keyword), tolower);
 
     list = get_matching_translations(trans, keyword);
+    if (gwlist_len(list)==0) list=dict_get(trans->dict,keyword);
     /*
       list now contains all translations where the keyword of the sms matches the
       pattern defined by the tranlsation's keyword
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.