1. Brekeke Product Name and version: 2.4.73
2. Java version: 6/22
3. OS type and the version: windowx xp sp3
4. UA (phone), gateway or other hardware/software involved: Tenor Quitnum Gateway
5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/ ... terns.html :
6. Your problem:
the sip server, when arrive a request, can responce with different error, for example if not have in a dialplan a number give the error 404, request termined error 487, address incomplete error 484....etc...
so, would i like to know, if i can give in foce mode , the same error 404( for example) every time who match the error 487 or 484.
in other word, i make a request a sip server, the sip server responde the 487 error, but i whant give a the client request, the error 404....
THX
force error return.
Moderator: Brekeke Support Team
Refer the document below.
http://www.brekeke-sip.com/download/bss ... gin_en.txt
And try the method below.
I've tested it without problem.
http://www.brekeke-sip.com/download/bss ... gin_en.txt
And try the method below.
Code: Select all
public void procINVITE( ClientStat cs, SIPpacket sippacket, boolean bRequest )
{
super.procINVITE( cs, sippacket, bRequest ) ;
// response packet
if ( bRequest == false ) {
// 487 or 484
if ( ( sippacket.responsecode == 487 )
|| ( sippacket.responsecode == 484) ) {
sippacket.request = "SIP/2.0 404 Not Found" ;
}
}
}