----- Original Message -----
Sent: Monday, August 23, 2004 3:15
AM
Subject: [Asterisk-Users] using
ChanIsAvail
Hi
I am trying to use ChanIsAvail to decide if a particular
extension is available in the sip channel
I am using MySQL to hold my SIP friends.
and wy cvs version shows Asterisk CVS-08/02/04
my intention is, that if the extension is not available in Sip
channel, I will send the call somewhere else
my extensions file contains the following:
exten => _[123]XX,1,ChanIsAvail(sip/${EXTEN})
exten => _[123]XX,2,dial(sip/${EXTEN},30)
exten =>
_[123]XX,102,Dial(IAX2/sip01-xxxxxx:[EMAIL PROTECTED]/${EXTEN})
if I understand ChanIsAvail correctly this should give med
following:
if i dial extension 111, and that is a local extension, it
dials the sip channel
on the other hand, if extension
111 is not avaliable in the local sip channel, it dials on IAX2
But it does not work, if 111 is not a local extension the dial
in priority 2 returns with -1, in my opinion it should never have been
executed
when I have all SIP frinds in sip.conf it works, but it does
not when using MySQL
is this a bug, or is ChanIsAvail not intended to work when SIP
frinds are in MySQL ??
Kind regards
Poul Pedersen
_______________________________________________
Asterisk-Users
mailing
list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To
UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users