Different Network

Different Network SearchSearch
Author Message
Boris Antoine
New member
Username: Mawogani

Post Number: 2
Registered: 06-2007
Posted on Friday, June 29, 2007 - 09:18 pm:   

Hi can I have different network on the same Pc with dmultiple gsm modem and assigne users with different network like:
user1 can send SMS to network 1 only
user2 can send SMS to network 2 only
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 7359
Registered: 10-2002
Posted on Wednesday, July 11, 2007 - 09:15 pm:   

Hi Boris,

The answer depends on how complex your configuration is. If you only have 2 users and 2 modems, then it is easy.

You can use sender-based routing, which is described in the above thread:

http://support.nowsms.com/discus/messages/1/21672.html

Basically, in the "SMS Users" account definition, you would define a "Forced Sender Address" for each of your users. That should be a phone number that matches the "Phone Number" property for the modem that you want this user to send via.

When the user submits a message to NowSMS, NowSMS will set the sender value to the "Forced Sender Address". It will then look for an SMSC definition with a matching sender, and route the message via that connection.

That is the simple answer if your configuration is not very complex.

There is an alternative solution for more complex configurations.

This alternative solution does not rely on sender address matching, but instead can force all messages submitted by a particular "SMS Users" account to be routed via a specific "SMSC" connection. However, this approach requires manual SMSGW.INI file edits at this time. The following settings can be added to an SMSC specific section of SMSGW.INI (e.g., [SMPP - a.b.c.d:xyz] or [Modem - Modem Name] section):

AllowedUserOnly=
AllowedUser1=
AllowedUser2=
AllowedUser...=

These configuration settings are defined to limit particular outbound "SMSC" connections to use by selected "SMS Users" accounts.

AllowedUserOnly=Yes -- This setting specifies that the SMSC connection can only be used by users that are specifically authorised to use this SMSC. When routing messages from users that are not specifically authorised for this connection, NowSMS will not use this SMSC and route messages as if this SMSC definition did not exist.

AllowedUser1=username -- This setting can be repeated with sequentially assigned numbers (e.g., AllowedUser2=xxx; AllowedUser3=yyyy). This entry is used to specify specific "SMS Users" accounts that are allowed to use the SMSC connection when AllowedUserOnly=Yes.

Note: It is NOT necessary to restart NowSMS when making updates to the AllowedUserOnly or AllowedUser1 settings in SMSGW.INI. These changes will be detected dynamically by NowSMS.


-bn
Boris Antoine
New member
Username: Mawogani

Post Number: 3
Registered: 06-2007
Posted on Tuesday, July 17, 2007 - 03:36 pm:   

Ok I get it and I will apply the first one.Since it is based on the Sender phone number, can i put character instead of because i don't want to see wicth phone nuber is used, for ex. can i have in the modem 1 sender=internet? and modem 2 sender=internet2?
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 7378
Registered: 10-2002
Posted on Tuesday, July 17, 2007 - 04:20 pm:   

Hi Boris,

Yes. Under "Properties" for the modem, you could put in a text string for the modem's "Phone Number".

NowSMS would apply this value as the "Recipient" address for any messages received via this modem. And it would use that value as a "Sender address" for the purpose of routing logic.

However, since it is not possible to override the actual sender address when using a GSM modem, this value would not be passed externally. So it sounds like this would be fine for the purposes you have described.

-bn