在无线的空间里冥想-http://www.joymo.cn(无线开发)

做SP人,想SP事(QQ:19149653) http://www.joymo.cn爱角摩,爱无线生活

NOWSMS使用

NOWSMS简介
====================

Now SMS/MMS Gateway(NowSMS)是一套SMS和MMS的内容交付解决方案。NowSMS是部署和开发SMS、MMS和WAP Push方案的快捷方法,可以用于Windows 2000/XP下的SMS网关、MMS网关、WAP Push网关以及多媒体消息中心。

NOWSMS的官方网站是:http://www.nowsms.com/,可以下载60天的试用版本来搭建自己的彩信中心;以下是NOWSMS的基本使用步骤:

1: 下载并安装NowSMS
2: 配置SMS/MMS Gateway以支持发送SMS和MMS
3: 发送SMS以确保正确配置了Gateway
4: 配置MMSC以支持发送MMS功能,并且配置可以使用MMSC的手机号列表.
5: 发送MMS以确保正确配置了MMSC
6: 配置手机上的MMSC以实现彩信上行功能
(如果遇到问题,可以把NOWSMS目录下的.log发给nowsms@now.co.uk寻求帮助)

NOWSMS的基本配置
====================

1. 配置GSM Modem
NowSMS requires a connection to an SMSC to interface with SMS and MMS networks. A SMSC connection can be a GSM Modem - A GSM modem or phone connected to a PC serial port (or to a USB port).
(可通过红外与笔记本连接,我的配置是Nokia 6610 + Dell Inspiron 600m)

2. 配置SMSC
The first step is to configure SMSC settings, which tell the gateway how it connects to the GSM network to send SMS.
(必须保证Modem支持发送SMS功能,市面上的GPRS上网卡因为使用cmwap,不支持SMS发送,即使NOWSMS能够找到,但也无法使用NOWSMS中发送SMS和MMS的功能)

3. The Now SMS/MMS Gateway installs as a Windows service. The MMSC runs as a separate service process from the gateway.
(建议把service配置成手工启动的,因为如果系统启动后没有发现GSM Modem,系统将无法工作)

4. Without the MMSC, you will still be able to "Send MMS Notifications" where the MMS content is stored on a separate web server, but you won't be able to use the "Send MMS Message" feature of the "web menu interface".

5. The MMSC supports sending MMS messages between mobile phones, and also
supports sending and receiving MMS messages between mobile phones and
standard internet e-mail systems.

6.MMSC的端口号
The gateway PC must be accessible via the internet in order to use its MMSC. When a mobile phone sends or receives an MMS message, it makes an HTTP connection to an MMSC (usually through a WAP gateway). The MMSC contains an integrated HTTP server to process these connections.
(Some operator WAP gateways have firewalls which prevent them from connecting to content servers that are installed on ports other than the default HTTP port of 80. Use caution when configuring the MMSC for a port other than 80, as this may prevent MMS messages from being received via some services.)

7. MMSC配置
Local Host Name or IP Address
specifies the local host name or IP address of the computer that is running the MMSC service. The name or address specified here will be used to construct URLs when sending MMS messages to mobile phones.
(必须确保MMSC的IP地址在本地也可以访问,因为NOWSMS在发送MMS时会验证URL的有效性;因为有些地方的外部IP是通过Firewall映射的,本地可能无法访问,建议直接绑定外部IP为第二个IP来解决这个问题)
Domain Name for MMS EMail / SMTP Relay Host
It is possible to operate the MMSC without the e-mail link, leaving the "Domain Name for MMS E-Mail" and "SMTP Relay Host" fields blank.

8.手机号的格式
To define a MMSC user , you must define a phone number using international format
(比如中国手机,格式是+8613xxxxxxxxx/ 新加坡+65xxxxxxxx)

9.手机上的彩信中心
Note that for a mobile phone user to use the simple MMSC integrated with this
gateway, the mobile phone user must configure their MMSC to point to the address of the MMSC, and include their user name and password in the MMSC URL. Example:
http://x.x.x.x/username=password
The username can be either the user alias name or phone number.
(在使用中发现必须是国际格式的手机号,不能用别名,否则服务器报错)

10. 用NOWSMS的WAP Gateway
Specify an IP address for the WAP gateway of 213.48.20.10
(this is a gateway at the Now Wireless offices).

11. GSM Modem
1) An external modem device, such as the Siemens MC35 or Wavecom FASTRACK.
2) A PC Card installed in a laptop, such as the Sierra Wireless Aircard 750
3) A standard GSM mobile phone with the appropriate cable and software driver to connect to a serial port or USB port on your computer.
(Any phone that supports the "extended AT command set" for sending/receiving SMS messages can be supported by the Now SMS/MMS Gateway)
A dedicated GSM modem (external or PC Card) is usually preferable to a GSM
mobile phone. This is because of some compatibility issues that can exist with
mobile phones.

12. SMS User / MMSC User
The “SMS Users” defines user accounts that are allowed to submit SMS and MMS messages through the gateway. (Note: Mobile phone users that connect to the MMSC to send and receive MMS messages are configured under the “MMSC Users”)

13. Long SMS
If the text message is longer than 160 characters, the gateway will automatically use concatenated SMS (“long SMS”) message support to send the entire message.

13. Send MMS Notification
The MMS Notification is sent to the recipient independent of the MMSC built-in to the
gateway. The message recipient will fetch the message directly from the URL specified. As the message is not routed through the MMSC, the MMSC cannot provide dynamic content adaptation and conversion services.

14. Send WAP OTA Bookmark
“Send WAP OTA Bookmark” allows bookmarks to be sent to compatible mobile phones. Simply specify the WAP URL, a title for the bookmark, and a phone number to
which the bookmark should be sent.

15. Send SMS URL
To send a text message via SMS, use the following URL format:
http://127.0.0.1:8800/?PhoneNumber=xxx&Text=xxx
1) Use either the local phone number format, or the international phone number format .
2) If the international phone number format is used, note that you must substitute
“%2B” for the “+” character, because of URL escaping restrictions.

16. WAP Push
WAP Push messages are specially formatted SMS messages that display an alert
message to the user, and give the user the option of connecting directly to a particular URL via the mobile phone’s WAP browser.
Note that there are two types of “WAP Push” messages, “Service Indication (SI)” and “Service Load (SL)”. The “SL” format can be selected by including "WAPSL=1" as a URL parameter, and does not support a “Text” parameter, while the “SI” format does. (By specification, the “SL” format was designed to tell the browser to connect to a URL without user intervention. However, for security reasons, mobile phones will always display a prompt before connecting to a URL. Therefore, the lack of a text parameter makes the “SL” format considerably less user-friendly than the “SI” format, and in practice, most users will exclusively use the “SI” format.)

17. 2-Way SMS
The “2-Way” configuration contains settings relevant to the creation of 2-way applications that can receive SMS messages, and return a response based upon the content of the received SMS message. When an SMS message is received, the gateway will evaluate the content of the message, and can either execute a program, or connect to an HTTP URL, based upon the content of the message.


NOWSMS连接到Operator MMSC
========================================

By default, the Now SMS/MMS Gateway will act as an MMSC and perform direct
delivery of MMS messages to recipients using a combination of SMS and WAP
technologies.

1. 通过运营商的MMSC接收/发送MMS
NowSMS can use a GSM/GPRS modem to send and receive MMS messages via an operator MMSC. The NowSMS sends and receives MMS messages using the same protocol that is used by the MMS client in a mobile phone, so it simply requires that the SIM card in your mobile phone be provisioned by your mobile operator for MMS support.
1) 发送MMS
When sending an MMS message, the NowSMS initiates a GPRS connection to the mobile operator, it then makes a connection to the operator WAP gateway, and submits the MMS message over this WAP and GPRS connection to the mobile operator’s MMSC.
2) 接收MMS
When receiving an MMS message, the gateway first receives an MMS notification
message via SMS. When this special notification message is received, the
gateway initiates a GPRS connection to the mobile operator, and a connection
to the operator WAP gateway over GPRS, in order to retrieve the content of the
MMS message from the mobile operator’s MMSC.
Note: When a GSM phone or GSM modem receives an MMS message, what it actually
receives is an MMS notification message. The MMS notification message arrives via an SMS message (usually two concatenated SMS messages). The MMS notification message contains header information about the MMS message, plus a URL pointer (e.g., http://host/path/file.mms) to the actual MMS content.
Note that you can still not use an MMS compatible phone as a GSM modem if you want to be able to receive MMS messages through the gateway. This is because an MMS compatible phone intercepts the MMS notification and tries to process it automatically, never forwarding it to the gateway. You must use a GSM/GPRS modem device to take advantage of this feature.

2. 小心运营商的限制
The reason that it would not work in many installations is that the operator MMSCs were either firewalled off so that they were inaccessible from the internet, or they were on private IP addresses within the operator network.

3. 配置信息
You will need to determine the GPRS APN (Access Point Name), the IP address of the WAP gateway, and the MMSC Message Server URL that are used for sending/receiving MMS via your operator network.
1) “WAP Gateway IP Address” should contain the IP address of the operator WAP gateway which will act as a proxy for connections to the MMSC.

4. MMSC路由
MMSC Routings can use MM1 – A binary format for transmitting MMS messages using HTTP POST. This is the protocol that is used for phone to phone MMS, so if you are routing messages to an operator MMSC over a GPRS connection.

The “Route messages to this account for recipient phone number(s)” field is an address mask for defining which recipient phone numbers should be routed to this account. For example, “+44*” would route all messages for the UK country code (44) to this connection. When multiple address masks are defined, they should be separated by a comma only (,) and no white space characters.

Note that when you are using MM1 to connect with an operator MMSC over GRPS, this “Server address” is the “MMS Server URL” that would normally be configured on a mobile phone to connect with the operator MMSC.

NOWSMS中的彩信功能
========================================

When you send an MMS message with NowSMS, this can be done using either of the following configurations:

1. Direct MMS delivery.
In this configuring, NowSMS is an MMSC. The MMS message content is stored on the NowSMS, and the gateway publishes a dynamic URL for access to the MMS message content. The gateway generates an MMS notification message to the recipient device which is sent over SMS, and this notification includes a URL pointer back to the MMS message content on the NowSMS server.

2.Send the message through the operator MMSC.
NowSMS supports all of the major MMS related protocols, including MM7, MM4, MM1 and EAIF for this purpose. But most frequently, what we see is the use of MM1 where NowSMS makes a GPRS connection over a GSM/GPRS modem, connects to the operator WAP gateway that is designated for MMS usage by the operator, and submits the message to the operator MMSC via the WAP gateway over the GPRS connection.
(The operator MMS gateway then generates the dynamic URL and MMS notification message that is ultimately received by the recipient device.)

The MMS message file format consists of an MMS message binary header, followed by a multipart MIME message where the multipart message is encoded in a binary multipart format as defined by the WAP Wireless Session Protocol (WSP) specification. This binary MMS message file is stored on a web server using a MIME type of application/vnd.wap.mmsmessage and an MMS message type of m-retrieve-conf. A subset of the binary MMS header is sent as an MMS notification message (MMS message type mnotification-ind) via SMS to the mobile device together with a URL pointer to the location of the complete message.

Once an MMS message file has been built and published via a web server, the
MMS notification message can be sent by the gateway using the following URL
format:

http://127.0.0.1:8800/?PhoneNumber=xxx&MMSURL=host/path/filename.mms

Before sending the MMS notification message, the gateway will validate that the MMS message file is of the MIME type application/vnd.wap.mms-message, and is of the MMS message type mretrieve-conf.

The MMSCOMP utility is provided to assist in the creation of MMS message files.

NOWSMS的使用技巧
========================================

1. 查看NOWSMS日志信息
在“管理工具”->“事件查看器”->“应用程序”中的日志信息,可以查看NOWSMS在启动和使用中的出错信息!如果发现“连接SMS Modem”出错,需要在SMSC中执行“Remove Service”,并重新添加"GSM Modem";
(The gateway always logs when its services are started and stopped. Additionally errors are reported to the event log if a particular SMSC interface fails to initialize, and when a user account exceeds their defined message quota for sending messages.)

2. 设置为Debug模式
修改配置文件SMSGW.INI/MMSGW.INI,在[SMSGW]中加入Debug=Yes,这样调试信息就会写入到MMSC-yyyymmdd.LOG中,SMSDEBUG.LOG和SMSOUT-yyyymmdd.LOG中;

3. 查询MMS发送情况
如果在发送MMS时收到错误信息,先检查手机上MMSC的配置;然后可以查看Gateway目录下的MMSC-yyyymmdd.log;上行的MMS被存放在\MMSCDATA下的日期目录中


常用术语
========================================

SMPP (Short Message Peer to Peer) 短消息点对点协议,网关与短消息中心之间使用SMPP
CMPP (China Mobile Peer to Peer) 中国移动点对点协议,网关与SP之间使用CMPP协议
OMA (Open Mobile Alliance) 开放移动联盟,OMA为移动行业提供公开标准,帮助创建符合用户需求,并能跨国家、运营商和移动终端运行的互操作性服务。
3GPP (3G Partnership Project) 3G伙伴计划

nowsms.GIF

webnowsms.GIF

posted on 2006-09-19 12:09 无线自由 阅读(1990) 评论(6)  编辑 收藏 引用 所属分类: 无线技术

评论

# re: NOWSMS使用[未登录] 2008-10-03 20:15 11

1111111  回复  更多评论   

# re: NOWSMS使用[未登录] 2008-10-03 20:16 11

11hh  回复  更多评论   

# re: NOWSMS使用 2010-06-17 23:40 BettieFIELDS19

If you are willing to buy a house, you would have to get the <a href="http://lowest-rate-loans.com">loan</a>. Furthermore, my mother commonly uses a financial loan, which is the most useful.   回复  更多评论   

只有注册用户登录后才能发表评论。