Thx for mentioning that Beckman. I missed that part. -- regards,
Anand > You need to urlencode your dlr-url. > > That will change all of the & to %65 or something (can't remember what) so > the sendsms script doesn't try and take &slid=8 as a parameter to itself. > > see http://php.net/urlencode > > Beckman > > On Mon, 18 Apr 2005, Anand Gupta wrote: > >> Dear Naren, >> >>> I have been following this thread (regarding DLR) for a >>> while. I just want to know if i can get a sample script for >>> handling the DLRs (the one u have mentioned above). >>> I have started using kannel recently, i would be very >>> much grateful if get this favour. From ur discussion >>> i gained a good knowlege of that a DLR actually is and for >>> what it is used. >> >> When calling sendsms, use the dlr-url to call any php/asp/perl/cf >> (basically any language you use to code) with the escape codes mentioned >> in the kannel docs >> (http://www.kannel.org/download/1.4.0/userguide-1.4.0/userguide.html, >> Table 6-9. Parameters). You can pass all those escape codes to the >> script, >> make the script send you a mail with the values of those parameters. >> Send >> a sms using the sendsms and call the script using dlr-url, see the >> response from the script and you will understand which all escape code >> is >> returning what values. >> >> Example: >> >> lynx --dump >> "http://127.0.0.1:13013/cgi-bin/sendsms?username=foo&password=bar&to=NUMBER&text=hello&from=anand&dlr-mask=31&dlr-url=http://x.x.x.x/dlr.php?type=%d&slid=8&k=%k&s=%s&s1=%S&r=%r&a=%a&b=%b&t=%t&t1=%T&p=%p&p1=%P&q=%q&q1=%Q&i=%i&i1=%I&a1=%A&n=%n&c=%c&c1=%C&u=%u&b1=%B&o=%o&mclass=1" >> >> I just typed all the escape codes in the above link (please do check >> before using it as it is). >> >> Hope it helps. >> >> -- >> regards, >> >> Anand >> >>> >>> -- >>> K Naren, MeTel Team. >>> http://www.midascomm.com/ >>> >>> >>> >>> >> > > --------------------------------------------------------------------------- > Peter Beckman Internet > Guy > [EMAIL PROTECTED] > http://www.purplecow.com/ > --------------------------------------------------------------------------- >
