--- gateway/gw/smsc/smsc_http.c Tue Mar 4 15:16:09 2003 +++ gateway/gw/smsc/smsc_http.c.alex Tue Apr 1 12:04:43 2003 @@ -45,6 +45,7 @@ * group = sms-service * keyword = ... * url = "client.host:NNN/sms?user=XXX&pass=YYY&from=%p&to=%P&text=%a" + * (username and password supported for cgi-bin/sendsms compatibility) * max-messages = 0 * * group = send-sms @@ -300,8 +301,10 @@ mclass = mwi = coding = validity = deferred = 0; - user = http_cgi_variable(cgivars, "user"); - pass = http_cgi_variable(cgivars, "pass"); + if ((user = http_cgi_variable(cgivars, "user")) == NULL) + user = http_cgi_variable(cgivars, "username"); + if ((pass = http_cgi_variable(cgivars, "pass")) == NULL) + pass = http_cgi_variable(cgivars, "password"); from = http_cgi_variable(cgivars, "from"); to = http_cgi_variable(cgivars, "to"); text = http_cgi_variable(cgivars, "text");