[asterisk-users] Forward error code beetwen legs
Daniel Tryba
daniel at tryba.nl
Thu Jun 1 14:16:13 CDT 2017
On Thu, Jun 01, 2017 at 09:06:25PM +0200, Loic Chabert wrote:
> [gotoexternal]
> exten => _X.,1,Dial(SIP/${EXTEN}@provider)
>
> When my SIP provider return to asterisk a 404 SIP error code, asterisk
> return to phone a 503 error code.
>
> Why 503 error code has been returned, and not the original error = 404
> error ?
>
> Asterisk's cli said: == Everyone is busy/congested at this time (1:0/0/1)
>
> How can i return the 404 error ? Forward this 404 error to the original leg
> ?
To lazy to look it up exactly, but add something like:
exten => _X.,n,Hangup(${HANGUPCAUSE})
More information about the asterisk-users
mailing list