Callbacks | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through October 03, 2004 ⬆ |
◄ ► |
Author | Message | |||
Anonymous |
I can't find any Tab in the Now Sms/Mms gateway win32 interface for the callback configuration, so where I must put the URL of my callback page?. Thanks a lot | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 3246 Registered: 10-2002 |
Do you mean the accounting callbacks? They are configured manually in the INI files, as described at the following link: http://www.nowsms.com/support/bulletins/tb-nowsms-001.htm You might also be referring to the 2-way commands that are used to process received SMS messages: http://www.nowsms.com/documentation/ProductDocumentation/2_way_sms_support.htm Or you might also be thinking about the HTTP SMSC interface, where NowSMS makes an HTTP request to another service in order to send messages: http://www.nowsms.com/documentation/ProductDocumentation/configuring_smsc_connec tions/HTTP_SMSC.htm If that doesn't cover what you are looking for, please provide some more detail about what you are searching for. -bn | |||
Anonymous |
thanks!! is the first. | |||
Liliana Monroy New member Username: Lmonroy Post Number: 1 Registered: 08-2004 |
i have to develope an application in which automatically send a sms, the user responds with another sms, im using the received sms command as http://host:port/reponse.asp?sender=@@SENDER@@&text=@@FULLSMS@@ and the command returns response text is enable... somehow the receive this sms: "Command not completed. Request returned invalid content type: text/html" What can i do? Regards, Iz | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 3260 Registered: 10-2002 |
Iz, If you are going to generate a response back in your ASP, you need to include the following toward the top of the ASP: Response.ContentType = "text/plain" An example can be found here: http://support.nowsms.com/discus/messages/1/4420.html | |||
Liliana Monroy New member Username: Lmonroy Post Number: 2 Registered: 08-2004 |
Thankz, but i already do that. I configure nowsms as : http://host:port/reponse.asp?sender=@@SENDER@@&text=@@FULLSMS@@ then in response.asp: <% v_sender = request.queryString("sender") v_text = request.queryString("text") %> <% response.contentType="text/plain" if v_sender="" and v_text="" then response.write("Error: Faltan parámetros") else a=InStr(v_text, " ") v_r_nombre = Left(v_text,a) d= Len(v_text) v_r_clave = Mid(v_text, Len(v_r_nombre)+1,d) end if%> <% consulta = "insert into dba.respuesta(respuesta_sender,respuesta_login,respuesta_pswd) values('"&v_sender&"','"&v_r_nombre&"', '"&v_r_clave&"')" set conexion = server.createobject("ADODB.Connection") conexion.open "demoSys" set usuarios = conexion.execute(consulta) %> What am i missing? Thankz a lot :D | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 3268 Registered: 10-2002 |
Make Response.ContentType = "text/plain" the very first line of your ASP ... otherwise sometimes it does not take. Basically, the error from NowSMS is indicating that the response is returning "text/html". What happens if you call your script from a web browser, passing it test data? | |||
Liliana Monroy New member Username: Lmonroy Post Number: 3 Registered: 08-2004 |
Hi, again. I tried making response.ContentType the very first line, an it doesnt works... When I try manually as http://host:port/reponse.asp?sender=xxxxxxxxxx&text=hi+there it works fine... it insert to the database correctly. My only problem is how can i do the nowsms server send to my asp the full sms to handle it in the asp code and insert it into database. Please, urgent help! | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 3284 Registered: 10-2002 |
Two suggestions: 1.) Enable the debug log in NowSMS. Edit SMSGW.INI, and under the [SMSGW] section header, add Debug=Yes. Restart the NowSMS service. Send in another message. A file named SMSDEBUG.LOG will be generated, and it will show the transaction. You'll see the URL that NowSMS is generating, and you should see some details about the response. (Off-hand, I'm not sure how much detail we provide about the response.) If that doesn't provide any clues, the next suggestion would be to do a test with TELNET. From a TELNET prompt, type: open host port The cursor will go to the top left corner, and it will get a little confusing because you may be overwriting other text as you type. Type the following: GET /response.asp?sender=xxxxxx&text=hi+there HTTP/1.0 Host: host (Press Enter again for a blank line) Substitute your host name for "host" above. Now you should see the raw HTTP response returned by your script. What do you see for that response? |