[asterisk-users] How to send "404 Not found" SIP reply?

Chris Maciejewski chris at wima.co.uk
Thu Apr 16 10:53:11 CDT 2009


Thank you all for help!

What I was trying to achieve was:

UA                                 Asterisk
------------- INVITE ----------------->
<----------- 100 Trying --------------
<---- 183 Sess. Prog (sdp) -----
[ here we play "You dialled wrong..." ]
<------ 404 Not found -------------

And all is needed to do this, is to use correct 'causecode' as Hangup
parameter :-)

exten => i,1,Playback(you-dialed-wrong-number,noanswer)
exten => i,n,Playback(check-number-dial-again,noanswer)
exten => i,n,Hangup(1) ; <- NOTE: causecode 1 for 404 Not found


Best regards,
Chris



More information about the asterisk-users mailing list