2 way command and replaceable parameters | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through November 14, 2013 ⬆ |
◄ ► |
Author | Message | |||
Davide Ghirardini New member Username: Ghironet Post Number: 16 Registered: 08-2013 |
Hi Support/Des, here below my scenario. I'm using the trial version of NowSMS 20130803, 2 way option is on to route the incoming SMSs to other phone numbers. The "DuplicateUserMessagesFor2Way=Yes" is on and I can see the SMS in the inbox folder also. If the phone number is in the address book I can see the name also. Looking to the 2way replaceable parameters table I don't see any option to send the name recorded in the address book but only the phone number (@@SENDER@@). Is it possible to add this option to this version or do you have a workaround? Thank you. Davide. | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4670 Registered: 08-2008 |
Hi Davide, Sorry, but no, the address book names are not accessed as part of the 2-way command process. It's an interesting idea ... so I'll put it on the suggestions list. I'm not overly optimistic though, because the intent of having the address book was more for the user interface, not so much programmatic access. That said, if it is an easy addition and doesn't have any performance impact, then we will consider it. -- Des NowSMS Support | |||
Davide Ghirardini New member Username: Ghironet Post Number: 17 Registered: 08-2013 |
Thank you Des, please let me know if you will add this feature in the NowSMS software. Davide. | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4678 Registered: 08-2008 |
Hi Davide, We did implement this in the update that was just released. If you include @@SENDERFULLNAME@@ in the 2-way command string, NowSMS will look up the full name from the address book. This is included in the 2013.09.26 release which is now the official download release on the web site. -- Des NowSMS Support | |||
Davide Ghirardini New member Username: Ghironet Post Number: 18 Registered: 08-2013 |
Hi Des, thank you for the good news but unfortunately it doesn't work. I downloaded the 2013.09.26 version from the Nowsms download page, following your instructions I just added the @@SENDERFULLNAME@@ to the two way command, please see below: http://127.0.0.1:8800/?user=username&password=password&phonenumber=1234567,12345 67&text=@@SENDER@@/@@SENDERFULLNAME@@/@@FULLSMS@@ The software sends the sender and the full sms text only. The "SENDERFULLNAME" space stays empty. Do you have an idea about that? Thanks for your help. Davide. | |||
Davide Ghirardini New member Username: Ghironet Post Number: 19 Registered: 08-2013 |
Des, to clarify the situation I installed the newversion 2013.09.26 over the old one (2013.08.30) without uninstall it. Davide. | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4683 Registered: 08-2008 |
Hi Davide, This is probably why we never bothered with this in the past. But I can verify that it did work for me. Most likely the issue is that the name must be in the public address book. 2-way commands run in a system context, not under a user context. (To see the options for putting an address in the public address book, grant the account "Admin Access" under "SMS Users".) -- Des NowSMS Support | |||
Davide Ghirardini New member Username: Ghironet Post Number: 20 Registered: 08-2013 |
Hi Des, I'm sorry but the user is already an admin one... And it doesn't works... Davide. | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4684 Registered: 08-2008 |
Hi Davide, In the "Address book" ... does the name have [#] after it? This is a visual indication that the entry is public, as opposed to user account specific. -- Des NowSMS Support | |||
Davide Ghirardini New member Username: Ghironet Post Number: 21 Registered: 08-2013 |
Hi Des, the name dosn't have the # after it. How can I add it? Thanks, Davide. | |||
Davide Ghirardini New member Username: Ghironet Post Number: 22 Registered: 08-2013 |
Dear Des, fixed. I found the checkbox! Thank you. Davide. | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4685 Registered: 08-2008 |
Hi Davide, You just beat me to the reply! I'll add that the address book is a simple text file with a file name of ADDRESS.LST if you have a need to manage it externally. -- Des NowSMS Support | |||
Davide Ghirardini New member Username: Ghironet Post Number: 23 Registered: 08-2013 |
Hi Des, another thing to add to the nowsms software that could be useful is the possibility to manage more than one command per time in the 2 way section with the same "SMS command prefix". Do you think in the near future it will implemented? Thanks, Davide. | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4688 Registered: 08-2008 |
Hi Davide, That has been frequently requested, but is highly unlikely (as the processing is designed to delete the message after successful command processing). If such processing is required, we suggest having the first script initiate a new HTTP request for any additional scripts. -- Des NowSMS Support |