Re: [Asterisk-java-users] dynamically adding new conference rooms
Brought to you by:
srt
From: Stefan R. <sr...@re...> - 2006-03-10 01:40:23
|
no just put the exten =3D> s,n,MeetMe(${CONF}|dTMps) (or similar) into extensions.conf and use setContext/Extension/Priority in your AGI that way it just quits after verifying the pin. Example: extensions.conf: [conf] exten =3D> _X.,1,MeetMe(${EXTEN}|dTMps) and: public class AgiCommand extends BaseAGIScript { public void service(AGIRequest request, AGIChannel channel) throws AGIException { ... if (verifyPin()) { setContext("conf"); setExtension(confNumber); setPriority(1); } else { streamFile("invalid-pin"); hangup(); } } } =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 K=F6ln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |