中国移动短信MISC割接

本文详细介绍了中国移动短信MISC系统的割接过程,涉及网络通信的基础知识,包括socket编程和Windows系统下的网络配置。通过对割接步骤的解析,读者将了解如何确保在不影响正常服务的情况下进行系统升级。
摘要由CSDN通过智能技术生成
短信息中心错误与中国移动代码的对应关系。
MI::zzzz
SMSC返回状态报告的状态值为EXPIRED
MJ:zzzz
SMSC返回状态报告的状态值为DELETED
MK:zzzz
SMSC返回状态报告的状态值为UNDELIV
ML:zzzz
SMSC返回状态报告的状态值为ACCEPTD
MM:zzzz
SMSC返回状态报告的状态值为UNKNOWN
MN:zzzz
SMSC返回状态报告的状态值为REJECTD
CMPP发送失败代码对照表
值(4位,不足4位前面补0) 含义
1 消息结构错
2 命令字错误
3 消息序列号重复
4 消息长度错
5 资费代码错
6 超过最大信息长
7 业务代码错
8 流量控制错
9 本网关不负责此计费号码
10 Src_ID错
11 Msg_src错
12 计费地址错
13 目的地址错
14~49 扩展

51 尚未建立连接
52 尚未成功登录
53 发送消息失败
54 超时未接收到响应消息
55 等待状态报告超时


60 保留
61 有效时间已经过期
62 定时发送时间已经过期
63 不能识别的FeeType
64 发送服务源地址鉴权失败
65 发送服务目的地址鉴权失败
66 接收服务源地址鉴权失败
67 接收服务目的地址鉴权失败
68 用户鉴权失败
69 此用户为黑名单用户
70 网络断连或目的设备关闭接口
71 超过最大节点数
72 找不到路由
73 等待应答超时
74 送SCP失败
75 送SCP鉴权等待应答超时
76 信息安全鉴权失败
77 超过最大Submit提交数
78 SPID 为空
79 业务类型为空
80 CPCode错误
81 发送接收接口重复
82 循环路由
83 超过接收侧短消息MTU
84 送DSMP重发失败
85 DSMP系统忙重发
86 DSMP系统忙,且缓存满重发
87 DSMP流控重发
88 等DSMP应答超时重发
89
201~240 SCP错误码
202 非神州行预付费用户
203 数据库操作失败
206 移动用户帐户数据异常
208 用户余额不足
210 超过最高欠费额
215 重复发送消息序列号msgid相同的计费请求消息
218 SCP互联失败
222 未登记的SP
232 月消费超额
241~255 SMC错误码(其中250~255为康为短消息中心错误应答映射,根据smpp3.4协议)
241 未定义
250 消息队列满
300 暂还没有设置定义255号以上错误的,建议SP查一下是否存在
华为InfoX——SMPP话单错误码
错误码 含义
AAAA 网关错误码
1XXXX 消息发往SCP出错时错误码
2BBBB SCP返回错误应答时的错误码,其中BBBB为SCP返回的错误应答消息中的错误码值
3XXXX 消息发往下一级ISMG出错时错误码
4CCCC 下一级ISMG返回错误应答时的错误码,其中CCCC为下一级ISMG返回的错误应答消息中的错误码值
5XXXX 消息发往SP出错时错误码
6DDDD SP返回错误应答时的错误码,其中DDDD为SP返回的错误应答消息中的错误码值
7XXXX 消息发往DSMP出错时错误码
8EEEE DSMP返回错误应答时的错误码,其中EEEE为DSMP返回的错误应答消息中的错误码值
9XXXX 消息发往SMC出错时错误码
10FFFF SMC返回错误应答时的错误码,其中FFFF为SMC返回的错误应答消息中的错误码值
11XXXX 消息发往SPACE出错时错误码
12GGGG SPACE返回错误应答时的错误码,其中FFFF为SPACE返回的错误应答消息中的错误码值
华为InfoX——CMPP状态报告错误stat含义
Message State Final Message States Description
DELIVERED DELIVRD Message is delivered to destination
EXPIRED EXPIRED Message validity period has
expired
DELETED DELETED Message has been deleted.
UNDELIVERABLE UNDELIV Message is undeliverable
ACCEPTED ACCEPTD Message is in accepted state(i.e. has been manually read on behalf of the subscriber by customer service)
UNKNOWN UNKNOWN Message is in invalid state
REJECTED REJECTD Message is in a rejected state
NOROUTE NOROUTE 查找路由失败
MA:xxxx MA:xxxx SMSC不返回响应消息时的状态报告
MB:xxxx MB:xxxx SMSC返回错误响应消息时的状态报告
MC:xxxx MC:xxxx 没有从SMSC处接收到状态报告时的状态报告
CA:xxxx CA:xxxx SCP不返回响应消息时的状态报告
CB:xxxx CB:xxxx SCP返回错误响应消息时的状态报告
DA:xxxx DA:xxxx DSMP不返回响应消息时的状态报告
DB:xxxx DB:xxxx DSMP返回错误响应消息时的状态报告
SA:xxxx SA:xxxx SP不返回响应消息时的状态报告
SB:xxxx SB:xxxx SP返回错误响应消息时的状态报告
IA:xxxx IA:xxxx 下一级ISMG不返回响应消息时的状态报告
IB:xxxx IB:xxxx 下一级ISMG返回错误响应消息时的状态报告
IC:xxxx IC:xxxx 没有从下一级ISMG处接收到状态报告时的状态报告
ID:xxxx ID:xxxx 网关ISMG内部检测错误码
ID:0020 ID:0020 SPACE用户鉴权模块鉴权用户停机或欠费错误
ID:0021 ID:0021 SPACE用户鉴权模块:用户销户错误
MI::zzzz MI::zzzz SMSC返回状态报告的状态值为EXPIRED
MJ:zzzz MJ:zzzz SMSC返回状态报告的状态值为DELETED
MK:zzzz MK:zzzz SMSC返回状态报告的状态值为UNDELIV
ML:zzzz ML:zzzz SMSC返回状态报告的状态值为ACCEPTD
MM:zzzz MM:zzzz SMSC返回状态报告的状态值为UNKNOWN
MN:zzzz MN:zzzz SMSC返回状态报告的状态值为REJECTD
MH:zzzz MH:zzzz 其它值
华为InfoX——接口断连错误码说明
4.1 infoX接口断连的原因概述
接口断连的原因一般可分为三类,分别为:
A、握手超时(Enquire Link)
B、业务模块发送的消息协议错误
C、TCP/IP的SOCKET关闭或产生异常。
以下将对各情况进行描述。
4.2 业务模块发送的消息协议错误
此情况由于客户模块发送了结构错误的消息,或者消息错位,导致infoX读取消息错误。由于infoX与客户模块采用消息流格式,为防止由于消息错位造成以后的消息都不能正确取得,此时,对于基中的某些消息,infoX将断连接口。原因分别为:
错误码 原因分析 后续操作
97001 缺省解码失败 为防止以后消息错位,接口将断连
97002 消息头错误 为防止以后消息错位,接口将断连
97003 源缓冲区不够,不处理 继续接收消息
97004 目的缓冲区不够 为防止以后消息错位,接口将断连
97005 严重协议错误 为防止以后消息错位,接口将断连
97006 协议中某字段一般性错误 只删除此消息,不断开接口
97007 接收到NACK消息 为防止以后消息错位,接口将断连
97008 接收太多的握手 接口将断连
97009 地址错误,NPI、TON不支持 只删除此消息,不断开接口
97010 时间格式错误 只删除此消息,不断开接口
97011 DCS错误 只删除此消息,不断开接口
97012 协议不支持 只删除此消息,不断开接口
97013~97999 保留

例:
2001/05/28 15:31:03 2 ID为32的接口产生接口断连信息,对端地址:10.10.2.1 ErrCode:97001,ErrorType:0

4.3 握手或接收异常错误
错误码 原因分析 后续操作
19000 保留
19001 接收消息的Buff出了问题 接口将断连
19002 解码返回的值不对(只能是0/-1/>0) 接口将断连
19003 握手超时 接口将断连
19004 对端主动关闭Socket
19005 连接对方服务器的间隔时间,到时重连
19006 发送Login请求后,等待对方服务器的应答消息超时
19007 进行Socket底层的连接建立,等待connect函数的时间
19008 Dsmpfep read消息错误

4.4 TCP/IP的SOCKET关闭或产生异常
此情况是由于客户端主动关闭退出产生的提示信息,错误代码为“0”;
例:
2001/05/28 15:32:14 2 ID为32的接口产生接口断连信息,对端地址:10.10.2.1 ErrCode:0,ErrorType:0
或者由于SOCKET底层的其它异常错误,导致接口断连,此时的错误码将有多种多样,详细描述请见WINDOWS平台SOCKET错误码说明及UNIX平台错误码说明。
例:
2001/05/30 15:49:32 2 ID为32的接口产生接口断连信息,对端地址:10.10.2.1 ErrCode:10054,ErrorType:0

4.5 WINDOWS平台SOCKET错误码说明
MSDN对于SOCKET异常ID的描述
错误码值 错误码标识 含义
10004 WSAEINTR Interrupted function call.
A blocking operation was interrupted by a call to WSACancelBlockingCall.
10013 WSAEACCES Permission denied.
An attempt was made to access a socket in a way forbidden by its access permissions. An example is using a broadcast address for sendto without broadcast permission being set using setsockopt(SO_BROADCAST).
10014 WSAEFAULT Bad address.
The system detected an invalid pointer address in attempting to use a pointer argument of a call. This error occurs if an application passes an invalid pointer value, or if the length of the buffer is too small. For instance, if the length of an argument which is a struct sockaddr is smaller than sizeof(struct sockaddr).
10022 WSAEINVAL Invalid argument.
Some invalid argument was supplied (for example, specifying an invalid level to the setsockopt function). In some instances, it also refers to the current state of the socket - for instance, calling accept on a socket that is not listening.
10024 WSAEMFILE Too many open files.
Too many open sockets. Each implementation may have a maximum number of socket handles available, either globally, per process or per thread.
10035 WSAEWOULDBLOCK Resource temporarily unavailable.
This error is returned from operations on non-blocking sockets that cannot be completed immediately, for example recv when no data is queued to be read from the socket. It is a non-fatal error, and the operation should be retried later. It is normal for WSAEWOULDBLOCK to be reported as the result from calling connect on a non-blocking SOCK_STREAM socket, since some time must elapse for the connection to be established.
10036 WSAEINPROGRESS Operation now in progress.
A blocking operation is currently executing. Windows Sockets only allows a single blocking operation to be outstanding per task (or thread), and if any other function call is made (whether or not it references that or any other socket) the function fails with the WSAEINPROGRESS error.
10037 WSAEALREADY Operation already in progress.
An operation was attempted on a non-blocking socket that already had an operation in progress - i.e. calling connect a second time on a non-blocking socket that is already connecting, or canceling an asynchronous request (WSAAsyncGetXbyY) that has already been canceled or completed.
10038 WSAENOTSOCK Socket operation on non-socket.
An operation was attempted on something that is not a socket. Either the socket handle parameter did not reference a valid socket, or for select, a member of an fd_set was not valid.
10039 WSAEDESTADDRREQ Destination address required.
A required address was omitted from an operation on a socket. For example, this error will be returned if sendto is called with the remote address of ADDR_ANY.
10040 WSAEMSGSIZE Message too long.
A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram into was smaller than the datagram itself.
10041 WSAEPROTOTYPE Protocol wrong type for socket.
A protocol was specified in the socket function call that does not support the semantics of the socket type requested. For example, the ARPA Internet UDP protocol cannot be specified with a socket type of SOCK_STREAM.
10042 WSAE
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值