[asterisk-bugs] [JIRA] (ASTERISK-25266) if you originate() to a unavailable trunk you get an ${ORIGINATE_STATUS} = susccess
Allen Ford (JIRA)
noreply at issues.asterisk.org
Sun Jul 19 11:16:32 CDT 2015
[ https://issues.asterisk.org/jira/browse/ASTERISK-25266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Allen Ford updated ASTERISK-25266:
----------------------------------
Description:
In my example if "freeserver" is offline or not responding i still get a SUCCESS status, which is messing up my fail-over
exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = ""]?15:)
exten => h,15,Set(goto=$[${PRIORITY} + 15])
exten => h,n,Originate(SIP/FreeServer/1${callerid},exten,BMP-Authentication-1,1${callerid},1)
exten => h,n,Verbose(0, getting staus ${ORIGINATE_STATUS} );
exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "SUCCESS"]?hangup:)
exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "FAILED"]?${goto}:)
exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "BUSY"]?${goto}:)
exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "CONGESTION"]?${goto}:)
exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "RINGING"]?${goto}:)
exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "HANGUP"]?${goto}:)
exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "UNKNOWN"]?${goto}:)
exten => h,n,Hangup()
exten => h,30,Set(goto=$[${PRIORITY} + 20])
exten => h,n,Originate(SIP/geils/1${callerid},exten,BMP-Authentication-1,${callerid},1)
exten => h,n,Verbose(0, getting staus ${ORIGINATE_STATUS} );
exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "SUCCESS"]?hangup:)
exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "FAILED"]?${goto}:)
exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "BUSY"]?${goto}:)
exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "CONGESTION"]?${goto}:)
exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "HANGUP"]?${goto}:)
exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "UNKNOWN"]?${goto}:)
exten => h,n,Hangup()
was:
In my example if "freeserver" is off line or not responding i still get a success, which is messing up my fail-over
exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = ""]?15:)
exten => h,15,Set(goto=$[${PRIORITY} + 15])
exten => h,n,Originate(SIP/FreeServer/1${callerid},exten,BMP-Authentication-1,1${callerid},1)
exten => h,n,Verbose(0, getting staus ${ORIGINATE_STATUS} );
exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "SUCCESS"]?hangup:)
exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "FAILED"]?${goto}:)
exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "BUSY"]?${goto}:)
exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "CONGESTION"]?${goto}:)
exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "RINGING"]?${goto}:)
exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "HANGUP"]?${goto}:)
exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "UNKNOWN"]?${goto}:)
exten => h,n,Hangup()
exten => h,30,Set(goto=$[${PRIORITY} + 20])
exten => h,n,Originate(SIP/geils/1${callerid},exten,BMP-Authentication-1,${callerid},1)
exten => h,n,Verbose(0, getting staus ${ORIGINATE_STATUS} );
exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "SUCCESS"]?hangup:)
exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "FAILED"]?${goto}:)
exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "BUSY"]?${goto}:)
exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "CONGESTION"]?${goto}:)
exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "HANGUP"]?${goto}:)
exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "UNKNOWN"]?${goto}:)
exten => h,n,Hangup()
> if you originate() to a unavailable trunk you get an ${ORIGINATE_STATUS} = susccess
> ------------------------------------------------------------------------------------
>
> Key: ASTERISK-25266
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-25266
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Affects Versions: 11.16.0
> Environment: CentOS release 6.6 (Final)
> Reporter: Allen Ford
>
> In my example if "freeserver" is offline or not responding i still get a SUCCESS status, which is messing up my fail-over
> exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = ""]?15:)
> exten => h,15,Set(goto=$[${PRIORITY} + 15])
> exten => h,n,Originate(SIP/FreeServer/1${callerid},exten,BMP-Authentication-1,1${callerid},1)
> exten => h,n,Verbose(0, getting staus ${ORIGINATE_STATUS} );
> exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "SUCCESS"]?hangup:)
> exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "FAILED"]?${goto}:)
> exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "BUSY"]?${goto}:)
> exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "CONGESTION"]?${goto}:)
> exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "RINGING"]?${goto}:)
> exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "HANGUP"]?${goto}:)
> exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "UNKNOWN"]?${goto}:)
> exten => h,n,Hangup()
> exten => h,30,Set(goto=$[${PRIORITY} + 20])
> exten => h,n,Originate(SIP/geils/1${callerid},exten,BMP-Authentication-1,${callerid},1)
> exten => h,n,Verbose(0, getting staus ${ORIGINATE_STATUS} );
> exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "SUCCESS"]?hangup:)
> exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "FAILED"]?${goto}:)
> exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "BUSY"]?${goto}:)
> exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "CONGESTION"]?${goto}:)
> exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "HANGUP"]?${goto}:)
> exten => h,n,GotoIf($["${ORIGINATE_STATUS}" = "UNKNOWN"]?${goto}:)
> exten => h,n,Hangup()
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list