[asterisk-users] Re: State of a public number

Tomislav Parčina tparcina at lama.hr
Thu Nov 16 00:52:46 MST 2006


In article <62A244761070314C8DC5860B0ED131FD060BBE at homer.tecnojest.it>, g.grandis at invidea.it says...
> Hi guys,
> i would check the state of a number on a Zap channel, i suppose that i cannot use ExtensionState that works only for SIP and IAX. 
> Anyone has any ides ? Could i check the state of a pubblic number before transfer it a internal call?
>  
> Thanks in advance

Hi Giordano!

If I have understand you correctly, you can use "ChanIsAvail(Zap/4&Zap/3)" - it will return Zap/4 or Zap/3, the first one that is available.

Hope this helps.


--
Tomislav Parčina
Lama Computers Split
Stinice 12, 21000 Split
Tel.: +385(21)270248
Mob.: +385(91)1212148
SIP: tomo at sip.lama.hr
e-mail: tparcina#lama.hr
http://www.lama.hr


More information about the asterisk-users mailing list