Hey,
I run an AGI script and I want to be able to return a 404 error code or other SIP error code.
The only thing I have managed is if the call is not answered, iut returns 603 error.
How can I control the error code?
Thanks,
David
Hey,
I run an AGI script and I want to be able to return a 404 error code or other SIP error code.
The only thing I have managed is if the call is not answered, iut returns 603 error.
How can I control the error code?
Thanks,
David
Hangup(Q.931 cause code)
Note that most SIP codes can only be returned when Asterisk has not yet answered. That’s a limitation of SIP.
Yea, I kinda figured I could not answer first.
[quote=“david55”]Hangup(Q.931 cause code)
Note that most SIP codes can only be returned when Asterisk has not yet answered. That’s a limitation of SIP.
http://www.aa-asterisk.org.uk/index.php/Cause_Codes[/quote]
Thanks this worked!
Watch out, AGI hangup is NOT the same as asterisk command hangup.
So you’ll want to send this AGI command : EXEC HANGUP 1 to send a 404.
David