Re: dlr-url through cgi-bin/sendsms
On Wed, 2002-06-05 at 20:33, Hani Mustafa wrote: > I'm not sure if this is a known issue, but when I send an sms through the https >interface, it gets the url alright, but it doesn't POST any variables. > > 2002-06-05 15:01:58 [8] DEBUG: data: 47 45 54 20 2f 63 68 65 GET /che > 2002-06-05 15:01:58 [8] DEBUG: data: 63 6b 73 6d 73 2e 70 68 cksms.ph > 2002-06-05 15:01:58 [8] DEBUG: data: 70 20 48 54 54 50 2f 31 p HTTP/1 > 2002-06-05 15:01:58 [8] DEBUG: data: 2e 31 0d 0a 48 6f 73 74 .1..Host > 2002-06-05 15:01:58 [8] DEBUG: data: 3a 20 31 37 32 2e 31 36 : 172.16 > 2002-06-05 15:01:58 [8] DEBUG: data: 2e 31 2e 31 0d 0a 55 73 .1.1..Us > 2002-06-05 15:01:58 [8] DEBUG: data: 65 72 2d 41 67 65 6e 74 er-Agent > 2002-06-05 15:01:58 [8] DEBUG: data: 3a 20 4b 61 6e 6e 65 6c : Kannel > 2002-06-05 15:01:58 [8] DEBUG: data: 20 31 2e 31 2e 36 0d 0a1.1.6.. > 2002-06-05 15:01:58 [8] DEBUG: data: 58 2d 4b 61 6e 6e 65 6c X-Kannel > 2002-06-05 15:01:58 [8] DEBUG: data: 2d 46 72 6f 6d 3a 20 30 -From: 0 > 2002-06-05 15:01:58 [8] DEBUG: data: 30 30 0d 0a 0d 0a 00 > 2002-06-05 15:01:58 [8] DEBUG: Octet string dump ends. > > -- > As you can see the From is always 000, with no other variables being posted...I have >included dlrmask as 24 and also 31 (tried both).. the url I'm using to send sms's is: dlr-url is a GET and it is configured just like the get-url. You'll say http://../receive-dlr.php?from=%p&text=%a Check the %* codes, especially the ones that only make sense for dlr (like the message replied from the smsc, if any, or the dlr id, etc) X-Kannel-From is a header, and it shouldn't be present, in my opinion (specially if you don't set "send-sender" in configuration) > > >https://aphrodite:13013/cgi-bin/sendsms?username=tester&password=foobar&from=0124353&to=2020123456&text=Hello+world&dlrmask=31&dlrurl=http://172.16.1.1/checksms.php > > I was also wondering about PAM support, what modules should be used? > > > Thanks alot , > ~Hani Mustafa > > > > > >
RE: dlr-url through cgi-bin/sendsms
The logs suggest a GET request, not a POST. check your HTTP client implementation, as that may be the problem. -- Oded Arbel m-Wise Inc. [EMAIL PROTECTED] (972)-67-340014 (972)-9-9581711 (ext: 116) ::.. Don't stop to stomp ants when the elephants are stampeding. > -Original Message- > From: Hani Mustafa [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 05, 2002 9:33 PM > To: Oded Arbel; Kari Asikainen; [EMAIL PROTECTED] > Subject: dlr-url through cgi-bin/sendsms > > > I'm not sure if this is a known issue, but when I send an sms > through the https interface, it gets the url alright, but it > doesn't POST any variables. > > 2002-06-05 15:01:58 [8] DEBUG: data: 47 45 54 20 2f 63 68 > 65 GET /che > 2002-06-05 15:01:58 [8] DEBUG: data: 63 6b 73 6d 73 2e 70 > 68 cksms.ph > 2002-06-05 15:01:58 [8] DEBUG: data: 70 20 48 54 54 50 2f > 31 p HTTP/1 > 2002-06-05 15:01:58 [8] DEBUG: data: 2e 31 0d 0a 48 6f 73 > 74 .1..Host > 2002-06-05 15:01:58 [8] DEBUG: data: 3a 20 31 37 32 2e 31 > 36 : 172.16 > 2002-06-05 15:01:58 [8] DEBUG: data: 2e 31 2e 31 0d 0a 55 > 73 .1.1..Us > 2002-06-05 15:01:58 [8] DEBUG: data: 65 72 2d 41 67 65 6e > 74 er-Agent > 2002-06-05 15:01:58 [8] DEBUG: data: 3a 20 4b 61 6e 6e 65 > 6c : Kannel > 2002-06-05 15:01:58 [8] DEBUG: data: 20 31 2e 31 2e 36 0d > 0a1.1.6.. > 2002-06-05 15:01:58 [8] DEBUG: data: 58 2d 4b 61 6e 6e 65 > 6c X-Kannel > 2002-06-05 15:01:58 [8] DEBUG: data: 2d 46 72 6f 6d 3a 20 > 30 -From: 0 > 2002-06-05 15:01:58 [8] DEBUG: data: 30 30 0d 0a 0d 0a >00 > 2002-06-05 15:01:58 [8] DEBUG: Octet string dump ends. > > -- > As you can see the From is always 000, with no other > variables being posted...I have included dlrmask as 24 and > also 31 (tried both).. the url I'm using to send sms's is: > > https://aphrodite:13013/cgi-bin/sendsms?username=tester&passwo rd=foobar&from=0124353&to=2020123456&text=Hello+world&dlrmask=31&dlrurl=http://172.16.1.1/checksms.php I was also wondering about PAM support, what modules should be used? Thanks alot , ~Hani Mustafa