[asterisk-users] How to send "404 Not found" SIP reply?
Philipp Kempgen
philipp.kempgen at amooma.de
Thu Apr 16 06:57:04 CDT 2009
Chris Maciejewski schrieb:
> I am trying to send "404 Not found" reply, without any luck with the
> following:
>
> exten => 555,1,Playback(you-dialed-wrong-number,noanswer)
> exten => 555,n,Playback(check-number-dial-again,noanswer)
> exten => 555,n,Congestion()
>
> However the above results in "500 Service Unavailable" being send out.
>
> What would be the correct application/function to generate "404 Not found"?
You should either not have that extension at all
or you could try something like
exten => 555,1,Set(PRI_CAUSE=1)
exten => 555,n,Hangup(1)
Cause 1 is AST_CAUSE_UNALLOCATED which should translate to
404 Not Found in SIP.
Philipp Kempgen
--
AMOOCON 2009, May 4-5, Rostock / Germany -> http://www.amoocon.de
Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de
AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
--
More information about the asterisk-users
mailing list