[asterisk-users] situation with ivr and four-channel gateway

ricky gutierrez xserverlinux at gmail.com
Thu Feb 26 09:54:11 CST 2015


2015-02-25 18:23 GMT-06:00 John Kiniston <johnkiniston at gmail.com>:
> I'd recommend using DEVICE_STATE
>
> On your extension 101, Check the DEVICE_STATE of peer SIP/101, If it's not
> 'NOT_INUSE' then dial it, Otherwise dial SIP/102
>
> exten =>
> 101,1,ExecIf($["${DEVICE_STATE(SIP/101)}"="NOT_INUSE"]?Dial(SIP/101,40))
>  same =>       n,Dial(SIP/102,40,t)
>  same =>       n,Hangup()
>


Hi john and Steve , I do tests with advice

-- 
rickygm

http://gnuforever.homelinux.com



More information about the asterisk-users mailing list