1. Brekeke Product Name and version:
1.5.3.0/172
2. Java version:
1.5.0_09
3. OS type and the version:
Windows 2000 5.0 Server SP4
4. UA (phone), gateway or other hardware/software involved:
all :)
5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/ ... terns.html :
Pattern9
6. Your problem:
One of my SIP provider answer to my SIP-server a 503 (Service Unavailable) when I provide to it a bad number, but I want a 404 (Not Found) in this case...
How can I catch the 503 error in a "Matching Pattern" and "Deploy" a 404 error to the UA ?
Replace 503 to 404
Moderator: Brekeke Support Team
-
- Posts: 528
- Joined: Tue Sep 20, 2005 9:10 am
- Location: Tannersville, Pennsylvania
Hi,
I tried to match the pattern $action = 503 but it appears you can not use the $action variable in matching patterns. I have never seen anyone successfully intercepting the status code and performing an action on it. Brekeke makes no mention of this in any documentation. Matching patterns appear to be based on requests not status. This was an interesting question and I hope someone else has some feedback on it.
Nick
I tried to match the pattern $action = 503 but it appears you can not use the $action variable in matching patterns. I have never seen anyone successfully intercepting the status code and performing an action on it. Brekeke makes no mention of this in any documentation. Matching patterns appear to be based on requests not status. This was an interesting question and I hope someone else has some feedback on it.
Nick