[asterisk-bugs] [JIRA] (ASTERISK-29812) GotoIF Loop prevention

Asterisk Team (JIRA) noreply at issues.asterisk.org
Tue Dec 21 02:09:44 CST 2021


     [ https://issues.asterisk.org/jira/browse/ASTERISK-29812?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Asterisk Team closed ASTERISK-29812.
------------------------------------

    Resolution: Not A Bug

> GotoIF Loop prevention
> ----------------------
>
>                 Key: ASTERISK-29812
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29812
>             Project: Asterisk
>          Issue Type: Information Request
>      Security Level: None
>          Components: . I did not set the category correctly.
>    Affects Versions: 13.13.1
>            Reporter: Huseyn Taragachov
>            Severity: Trivial
>
> Hello Guys. I need an advice. I want my AGI script run 10 times and after if call fails to hangup. in present dialplan AGI script loops for ever) so what i need to include?
> Thanks
> exten => _0XX,n,GotoIf($[${DEVICE_STATE(pjsip/${EXTEN})}=UNAVAILABLE]?absent:makecall)
> ;absent
> exten => _0XX,n(absent),Verbose(2, The agent is not registered)
> exten => _0XX,n,Verbose(2, ${EXTEN})
> exten => _0XX,n,AGI(run.sh,${EXTEN},${CALLERID(num)})
> exten => _0XX,n,GotoIf($[${DEVICE_STATE(pjsip/${EXTEN})}=UNAVAILABLE]?absent:makecall)
> exten => _0XX,n,Hangup()
> ;make call
> exten => _0XX,n(makecall),Verbose(2, Call to extension)
> exten => _0XX,n,Answer()
> exten => _0XX,n,Dial(PJSIP/${EXTEN},120,TtkKhH)
> exten => _0XX,n,Hangup()



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list