Re: [asterisk-users] Forward error code beetwen legs

2017-06-01 Thread Loic Chabert
Exact Daniel, it'works with this line.

Thanks for your help.

Regards.

2017-06-01 21:16 GMT+02:00 Daniel Tryba :

> 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})
>
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at: https://community.asterisk.
> org/
>
> New to Asterisk? Start here:
>   https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
>



-- 

*Loïc CHABERT - Responsable technique*

*Voxity - Libérez vos Télécoms*

85 Rue des Alliés 38100 Grenoble
Tel : 0975181257 - Fax : 04.816.801.14
Email : loic.chab...@voxity.fr 
Restons connectés : Site Web  - Twitter
 - Facebook  - L
inkedIn 
*Nouveau !* Découvrez Voxity en vidéo : Youtube

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Forward error code beetwen legs

2017-06-01 Thread Daniel Tryba
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})


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users