Forums Read-only archive

Replace 503 to 404

3 posts · Brekeke SIP Server Forum

akinea Original post
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 ?
voipwell.com
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
akinea
Thanks !
I hope too :)

Before to post my question, I tried the same tests, and I never intercepted a status code too....

Come on everybody, we need you !
[image: http://cweben.free.fr/images/superdupont-we-need-you.jpg]