Web-interface "Message Route" - customize for User

Web-interface "Message Route" - customize for User SearchSearch

SMS & MMS Technical Forum » MMS & SMS Technical Discussions (unsupported) » Web-interface "Message Route" - customize for User « Previous || Next »
Author Message
alex med
New member
Username: Alexmed

Post Number: 1
Registered: 12-2015
Posted on Wednesday, December 02, 2015 - 09:49 am:   

Hello!

Is there any way to customize appearance of page web-interface "Send Text Message", dropdown menu "Message Route". goal is to show only routes allowed for certain user

Particulary Ethernet Modems (SMSC).

May be it is possible to write some .ini value in SMSGW.INI config to make some SMSC visible only to certain username(s)/password

Kindest regards, Alex
alex med
New member
Username: Alexmed

Post Number: 2
Registered: 12-2015
Posted on Wednesday, December 02, 2015 - 09:57 am:   

i would not ask, but it looks like just changing HTML files makes no sense as this info arrive to page directly from webserver established by NowSms binary file... so seems no way to change procedure of getting this info based on user authorization
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5522
Registered: 08-2008
Posted on Wednesday, December 02, 2015 - 01:37 pm:   

Hi Alex,

My advice would be to use the config option to remove the message route selection from the web interface.


Here is a screen capture of where to find the setting:



--
Des
NowSMS Support
alex med
New member
Username: Alexmed

Post Number: 3
Registered: 12-2015
Posted on Thursday, December 03, 2015 - 12:37 pm:   

sure, but my idea exactly to give option to choose Routes but only among routes I asign to user. Application example: SIM-hosting - when send SMS - user choose which SIM (among assigned to him) he wants to use
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5527
Registered: 08-2008
Posted on Thursday, December 03, 2015 - 07:31 pm:   

Hi Alex,

I agree.

You are referring to the AlloweddUserOnly settings, correct? (Or adding a user account name to the preferred routing list.)

I am discussing this with engineering how to fix and limit the displayed routes to only the routes that the user has access to.

The route selection setting was intended as an option for quick tests, which is why it is normally disabled in configurations like you describe. But it should not offer access to restricted routes, so I am asking our engineering team for a fix.

--
Des
NowSMS Support
alex med
New member
Username: Alexmed

Post Number: 4
Registered: 12-2015
Posted on Friday, December 04, 2015 - 06:25 am:   

Thank you for clarification. You are totally right but i forgot this setting but you exactly right about it.

So my goal to
1. restrict Route use with AlloweddUserOnly
2. make in Web visible only routes Allowed for this user
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5528
Registered: 08-2008
Posted on Friday, December 04, 2015 - 04:20 pm:   

Hi Alex,


We've posted a preliminary update to address this at http://www.nowsms.com/download/nowsms20151203.zip

Note that we have updated the web interface templates considerably in this release to give them a more modern appearance. If you have customized any of the templates, I'd recommend backing them up before installing this update.

--
Des
NowSMS Support
alex med
New member
Username: Alexmed

Post Number: 5
Registered: 12-2015
Posted on Saturday, December 05, 2015 - 09:41 am:   

wow guys you are just incredible with so fast update reaction. Many thanks i will give it a try and write back!
alex med
New member
Username: Alexmed

Post Number: 6
Registered: 12-2015
Posted on Saturday, December 05, 2015 - 08:59 pm:   

with fresh install and having this kind of config SMSGW.INI I still have both users (they already created) see both modems and btw - there is no Logout button in web-menu, or may be i just didn't find it

[SMSGW]
Modem1=IPModem1 - 123.45.67.89:101
Modem2=IPModem2 - 123.45.67.89:102
WebAuth=Yes
WebMenu=Yes
WebDisplaySender=Yes
WebDisplayRoute=Yes
WebPort=8800
SeparateUserQueues=Yes
ReceiveSMS=Yes
ReceiveMMS=No
PHPEnable=No
PHPAllowRemote=No
ReceiveSMSCharset=utf-8
SMPPPort=3377
Debug=Yes


[IPModem1 - 123.45.67.89:101]
ReceiveSMS=Yes
ReceiveMMS=No
AllowedUserOnly=Yes
AllowedUser1=alex

[IPModem2 - 123.45.67.89:102]
ReceiveSMS=Yes
ReceiveMMS=No
AllowedUserOnly=Yes
AllowedUser1=alex2
alex med
New member
Username: Alexmed

Post Number: 7
Registered: 12-2015
Posted on Saturday, December 05, 2015 - 09:09 pm:   

and 1 more thing would be helpful: if we can give meaningful names to routes. because here with Ethernet modems we restricted with syntax related names, but not possible to make it look in Web just like "SIM1" or "SIM +44(123)4567890" or "veryGoodRoute". so to have it more user-friendly it would be very nice to have ability to give any names to routes
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5530
Registered: 08-2008
Posted on Sunday, December 06, 2015 - 06:44 pm:   

Hi Alex,

The main problem is because the entries have been manually defined and the syntax is a bit different than expected.

Change IPModem1 and IPModem2 to IPModem. For example:

[SMSGW]
Modem1=IPModem - 123.45.67.89:101
Modem2=IPModem - 123.45.67.89:102
WebAuth=Yes
WebMenu=Yes
WebDisplaySender=Yes
WebDisplayRoute=Yes
WebPort=8800
SeparateUserQueues=Yes
ReceiveSMS=Yes
ReceiveMMS=No
PHPEnable=No
PHPAllowRemote=No
ReceiveSMSCharset=utf-8
SMPPPort=3377
Debug=Yes


[IPModem - 123.45.67.89:101]
RouteName=ABC
ReceiveSMS=Yes
ReceiveMMS=No
AllowedUserOnly=Yes
AllowedUser1=alex

[IPModem - 123.45.67.89:102]
RouteName=XYZ
ReceiveSMS=Yes
ReceiveMMS=No
AllowedUserOnly=Yes
AllowedUser1=alex2


For a meaningful name, use the RouteName setting.

There is no logout button because we use browser based authentication where the web browser prompts for login. The only way to logout is to close the browser.

The lack of a logout button has been a frequent complaint, so we will be adding a separate login form in an update early next year. That will allow for a logout.

--
Des
NowSMS Support
alex med
New member
Username: Alexmed

Post Number: 8
Registered: 12-2015
Posted on Tuesday, December 15, 2015 - 09:23 pm:   

Hello!

it works just like you say, thank you

now i am trying to customize HTML of Inbox
is there any way to show Recepient Sim-number in Inbox?

I tried to guess template value to use like @@RECEPIENT@@ @@RECEIP@@ @@TO@@ etc but nothing works

can you please advice? how to show not just @@SENDER@@ info but also number the SMS was sent To
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5542
Registered: 08-2008
Posted on Wednesday, December 16, 2015 - 03:05 pm:   

Hi Alex,

I checked with our engineering team, and unfortunately there is no variable to retrieve the receiving SIM # in the web interface.

So we will have to add it. It will be @@RECIP@@, like it is with 2-way commands.

We are currently working on changing the login procedure to improve security and add a logout button. Those changes are due in about 3 weeks, and this addition will be included in that update.

I might get an OK to post a preliminary version next week before the holidays...but definitely within a few days after the new year.

--
Des
NowSMS Support
alex med
New member
Username: Alexmed

Post Number: 9
Registered: 12-2015
Posted on Wednesday, December 16, 2015 - 10:02 pm:   

great! thank you

i noticed such thing in Web GUI (attached)
looks like the Encoding does not always match for non-Latin locale systems

at the same time - Cyrillic text arriving in the incoming message is always shown Ok
so seems problem related to information got from system directly, as seems you getting Month names from system locale.

Wrong encoding in Web-interface
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5543
Registered: 08-2008
Posted on Thursday, December 17, 2015 - 08:05 am:   

Hi Alex,

Yes, the character set for the date being returned from the system is not being handled correctly.

I am out of the office, but a colleague tells me the following link has been updated to fix this:
http://www.nowsms.com/download/nowsms20151212.zip

This also includes support for @@RECIP@@ in the inbox/received messages template and changes to the login (supporting a logout button).

Note that because of the new login process, this is more of a beta update. If you need to go back to the previous version, run the installer for the previous version.

--
Des
NowSMS Support
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5544
Registered: 08-2008
Posted on Thursday, December 17, 2015 - 08:09 am:   

Hi Alex,

Yes, the character set for the date being returned from the system is not being handled correctly.

I am out of the office, but a colleague tells me the following link has been updated to fix this:
http://www.nowsms.com/download/nowsms20151212.zip

This also includes support for @@RECIP@@ in the inbox/received messages template and changes to the login (supporting a logout button).

Note that because of the new login process, this is more of a beta update. If you need to go back to the previous version, run the installer for the previous version.

--
Des
NowSMS Support

Add Your Message Here, or click here to create a new discussion topic.
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image
Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Click here to create an account.
Username:
Password:
Options: Automatically activate URLs in message
Action:

Login Login / Register Logout Logout Search Last 30 Days Topics Topics