[asterisk-users] Asterisk - How to trggier some specical reject message from Asterisk server?

Gu, Cheng Cheng.Gu at sonymobile.com
Tue Apr 24 22:53:52 CDT 2012


Hi all:

I want to modify Dialplan or chan_sip.c to let asterisk server send some abnormity messages to test mobile 


such as:

3xx	302 Moved Temporarily	Temporary redirect
4xx	400 Bad Request	Indicates request error
	401 Unauthorized	Indicates that authentication information is required. This specification defines the DIGEST authentication mechanism that only supports HTTP.
	403 Forbidden	Refuses to fulfill the request
	404 Not Found	Indicates that the domain specified in the Request-URI can not be found
	405 Method Not Allowed	Indicates that the request method is not allowed
	415 Unsupported Media Type	Indicates that the requested message body coding, format, compression and format are incorrect
	420 Bad Extension	Indicates that the request message carries extension not supported by wPDIF WAG
	481 Call/Transaction Does Not Exist	Indicates that the dialog or transaction of the request message does not exist.
	489 Bad Event	Indicates undefined event type
	494 Security Agreement Required	Indicates that security negotiation is required
5xx	500 Server Internal Error	Indicates that wPDIF WAG can not complete this request due to its own error
	503 Service Unavailable	Service unavailable
	504 Server Time-out	Indicates that WAG does not receive a timely response from CN and thus leads to time-out


And then observer the test mobile's action, but no matter I how to modify the dailplan with extensions.conf , the asterisk reject message is always 603 Deline.


I do not know whether I meet the same problem with :    http://threebit.net/mail-archive/asterisk-users/msg12533.html


Could anyone tell me how to do it? Thanks.





More information about the asterisk-users mailing list