﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>IT博客-在无线的空间里冥想-http://www.joymo.cn(无线开发)-文章分类-无线技术</title><link>http://www.cnitblog.com/freemobile/category/3868.html</link><description>做SP人，想SP事(QQ:19149653)
http://www.joymo.cn爱角摩，爱无线生活</description><language>zh-cn</language><lastBuildDate>Wed, 28 Sep 2011 01:20:22 GMT</lastBuildDate><pubDate>Wed, 28 Sep 2011 01:20:22 GMT</pubDate><ttl>60</ttl><item><title>NOWSMS使用</title><link>http://www.cnitblog.com/freemobile/articles/17049.html</link><dc:creator>无线自由</dc:creator><author>无线自由</author><pubDate>Tue, 19 Sep 2006 04:09:00 GMT</pubDate><guid>http://www.cnitblog.com/freemobile/articles/17049.html</guid><wfw:comment>http://www.cnitblog.com/freemobile/comments/17049.html</wfw:comment><comments>http://www.cnitblog.com/freemobile/articles/17049.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.cnitblog.com/freemobile/comments/commentRss/17049.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/freemobile/services/trackbacks/17049.html</trackback:ping><description><![CDATA[NOWSMS简介 <br />==================== <br /><br />Now SMS/MMS 
            Gateway(NowSMS)是一套SMS和MMS的内容交付解决方案。NowSMS是部署和开发SMS、MMS和WAP 
            Push方案的快捷方法，可以用于Windows 2000/XP下的SMS网关、MMS网关、WAP Push网关以及多媒体消息中心。 
            <br /><br />NOWSMS的官方网站是：<a href="http://www.nowsms.com/" target="_blank">http://www.nowsms.com/</a>，可以下载60天的试用版本来搭建自己的彩信中心；以下是NOWSMS的基本使用步骤： 
            <br /><br />1: 下载并安装NowSMS <br />2: 配置SMS/MMS Gateway以支持发送SMS和MMS <br />3: 
            发送SMS以确保正确配置了Gateway <br />4: 配置MMSC以支持发送MMS功能，并且配置可以使用MMSC的手机号列表. 
            <br />5: 发送MMS以确保正确配置了MMSC <br />6: 配置手机上的MMSC以实现彩信上行功能 
            <br />（如果遇到问题，可以把NOWSMS目录下的.log发给nowsms@now.co.uk寻求帮助） 
            <br /><br />NOWSMS的基本配置 <br />==================== <br /><br />1. 配置GSM Modem 
            <br />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). 
            <br />(可通过红外与笔记本连接，我的配置是Nokia 6610 + Dell Inspiron 600m) <br /><br />2. 
            配置SMSC <br />The first step is to configure SMSC settings, which tell 
            the gateway how it connects to the GSM network to send SMS. 
            <br />(必须保证Modem支持发送SMS功能，市面上的GPRS上网卡因为使用cmwap,不支持SMS发送，即使NOWSMS能够找到，但也无法使用NOWSMS中发送SMS和MMS的功能) 
            <br /><br />3. The Now SMS/MMS Gateway installs as a Windows service. 
            The MMSC runs as a separate service process from the gateway. 
            <br />(建议把service配置成手工启动的，因为如果系统启动后没有发现GSM Modem，系统将无法工作) <br /><br />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". <br /><br />5. The MMSC supports sending MMS messages 
            between mobile phones, and also <br />supports sending and receiving 
            MMS messages between mobile phones and <br />standard internet e-mail 
            systems. <br /><br />6.MMSC的端口号 <br />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. <br />(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.) <br /><br />7. MMSC配置 <br />Local Host Name or IP 
            Address <br />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. 
            <br />(必须确保MMSC的IP地址在本地也可以访问，因为NOWSMS在发送MMS时会验证URL的有效性；因为有些地方的外部IP是通过Firewall映射的，本地可能无法访问，建议直接绑定外部IP为第二个IP来解决这个问题) 
            <br />Domain Name for MMS EMail / SMTP Relay Host <br />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. 
            <br /><br />8.手机号的格式 <br />To define a MMSC user , you must define a phone 
            number using international format <br />(比如中国手机，格式是+8613xxxxxxxxx/ 
            新加坡+65xxxxxxxx) <br /><br />9.手机上的彩信中心 <br />Note that for a mobile phone 
            user to use the simple MMSC integrated with this <br />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: <br /><a href="http://x.x.x.x/username=password" target="_blank">http://x.x.x.x/username=password</a><br />The username 
            can be either the user alias name or phone number. 
            <br />(在使用中发现必须是国际格式的手机号，不能用别名，否则服务器报错) <br /><br />10. 用NOWSMS的WAP 
            Gateway <br />Specify an IP address for the WAP gateway of 
            213.48.20.10 <br />(this is a gateway at the Now Wireless offices). 
            <br /><br />11. GSM Modem <br />1) An external modem device, such as the 
            Siemens MC35 or Wavecom FASTRACK. <br />2) A PC Card installed in a 
            laptop, such as the Sierra Wireless Aircard 750 <br />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. <br />(Any 
            phone that supports the "extended AT command set" for 
            sending/receiving SMS messages can be supported by the Now SMS/MMS 
            Gateway) <br />A dedicated GSM modem (external or PC Card) is usually 
            preferable to a GSM <br />mobile phone. This is because of some 
            compatibility issues that can exist with <br />mobile phones. 
            <br /><br />12. SMS User / MMSC User <br />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”) 
            <br /><br />13. Long SMS <br />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. <br /><br />13. 
            Send MMS Notification <br />The MMS Notification is sent to the 
            recipient independent of the MMSC built-in to the <br />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. 
            <br /><br />14. Send WAP OTA Bookmark <br />“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 <br />which 
            the bookmark should be sent. <br /><br />15. Send SMS URL <br />To send a 
            text message via SMS, use the following URL format: <br /><a href="http://127.0.0.1:8800/?PhoneNumber=xxx&amp;Text=xxx" target="_blank">http://127.0.0.1:8800/?PhoneNumber=xxx&amp;Text=xxx</a><br />1) Use either the local phone number format, or the 
            international phone number format . <br />2) If the international 
            phone number format is used, note that you must substitute <br />“%2B” 
            for the “+” character, because of URL escaping restrictions. 
            <br /><br />16. WAP Push <br />WAP Push messages are specially formatted 
            SMS messages that display an alert <br />message to the user, and give 
            the user the option of connecting directly to a particular URL via 
            the mobile phone’s WAP browser. <br />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.) <br /><br />17. 2-Way SMS <br />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. 
            <br /><br /><br />NOWSMS连接到Operator MMSC 
            <br />======================================== <br /><br />By default, the 
            Now SMS/MMS Gateway will act as an MMSC and perform direct 
            <br />delivery of MMS messages to recipients using a combination of 
            SMS and WAP <br />technologies. <br /><br />1. 通过运营商的MMSC接收/发送MMS 
            <br />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. <br />1) 发送MMS 
            <br />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. <br />2) 接收MMS <br />When 
            receiving an MMS message, the gateway first receives an MMS 
            notification <br />message via SMS. When this special notification 
            message is received, the <br />gateway initiates a GPRS connection to 
            the mobile operator, and a connection <br />to the operator WAP 
            gateway over GPRS, in order to retrieve the content of the <br />MMS 
            message from the mobile operator’s MMSC. <br />Note: When a GSM phone 
            or GSM modem receives an MMS message, what it actually <br />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., <a href="http://host/path/file.mms%29" target="_blank">http://host/path/file.mms)</a> to the actual MMS 
            content. <br />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. <br /><br />2. 
            小心运营商的限制 <br />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. <br /><br />3. 配置信息 <br />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. <br />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. 
            <br /><br />4. MMSC路由 <br />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. <br /><br />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. <br /><br />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. 
            <br /><br />NOWSMS中的彩信功能 <br />======================================== 
            <br /><br />When you send an MMS message with NowSMS, this can be done 
            using either of the following configurations: <br /><br />1. Direct MMS 
            delivery. <br />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. <br /><br />2.Send the 
            message through the operator MMSC. <br />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. <br />(The operator MMS gateway then 
            generates the dynamic URL and MMS notification message that is 
            ultimately received by the recipient device.) <br /><br />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. <br /><br />Once an MMS message file has been built 
            and published via a web server, the <br />MMS notification message can 
            be sent by the gateway using the following URL <br />format: 
            <br /><br /><a href="http://127.0.0.1:8800/?PhoneNumber=xxx&amp;MMSURL=host/path/filename.mms" target="_blank">http://127.0.0.1:8800/?PhoneNumber=xxx&amp;MMSURL=host/path/filename.mms</a><br /><br />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. <br /><br />The MMSCOMP utility is provided to assist in 
            the creation of MMS message files. <br /><br />NOWSMS的使用技巧 
            <br />======================================== <br /><br />1. 查看NOWSMS日志信息 
            <br />在“管理工具”-&gt;“事件查看器”-&gt;“应用程序”中的日志信息，可以查看NOWSMS在启动和使用中的出错信息！如果发现“连接SMS 
            Modem”出错，需要在SMSC中执行“Remove Service”，并重新添加"GSM Modem"； <br />(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.) <br /><br />2. 
            设置为Debug模式 
            <br />修改配置文件SMSGW.INI/MMSGW.INI，在[SMSGW]中加入Debug=Yes，这样调试信息就会写入到MMSC-yyyymmdd.LOG中，SMSDEBUG.LOG和SMSOUT-yyyymmdd.LOG中； 
            <br /><br />3. 查询MMS发送情况 
            <br />如果在发送MMS时收到错误信息，先检查手机上MMSC的配置；然后可以查看Gateway目录下的MMSC-yyyymmdd.log；上行的MMS被存放在\MMSCDATA下的日期目录中 
            <br /><br /><br />常用术语 <br />======================================== 
            <br /><br />SMPP (Short Message Peer to Peer) 短消息点对点协议，网关与短消息中心之间使用SMPP 
            <br />CMPP (China Mobile Peer to Peer) 中国移动点对点协议，网关与SP之间使用CMPP协议 
            <br />OMA (Open Mobile Alliance) 
            开放移动联盟，OMA为移动行业提供公开标准，帮助创建符合用户需求，并能跨国家、运营商和移动终端运行的互操作性服务。 <br />3GPP 
            (3G Partnership Project) 3G伙伴计划<br /><br /><img src="http://www.cnitblog.com/images/cnitblog_com/freemobile/nowsms.GIF" alt="nowsms.GIF" border="0" height="580" width="415" /><br /><br /><img src="http://www.cnitblog.com/images/cnitblog_com/freemobile/webnowsms.GIF" alt="webnowsms.GIF" border="0" height="446" width="843" /><br /><img src ="http://www.cnitblog.com/freemobile/aggbug/17049.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/freemobile/" target="_blank">无线自由</a> 2006-09-19 12:09 <a href="http://www.cnitblog.com/freemobile/articles/17049.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>