Hi Jason. It seems your doing things "right" whatever that means. I
think the problem is more hardware related. Sure you have line in the
FXO?? have you tried dialing directly from some IP Phone?? I have
several applications that relay on automatic call generation with
Asterisk Manager and a PHP classes i have. But, as i said, i think the
problem is related to the configuration of the card. what does ztcfg
-vv says? what does zttool says??<br>
<br>
best regards<br><br><div><span class="gmail_quote">On 12/25/05, <b class="gmail_sendername">Jason D. Wolfe</b> <<a href="mailto:jason_d_wolfe@comcast.net">jason_d_wolfe@comcast.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br><br>Somehow I've missed something here, so hopefully I'll be able to provide<br>enough of my setup to get some help. I feel I'm very close to getting<br>it, but missing something none the less...<br><br>1. I have a digium TDM400 with (2) FXO modules on channel 3 and 4 hooked
<br>to two POTS lines.<br>2. I have the following entry in zapata.conf file:<br><br>usecallerid=yes<br>hidecallerid=no<br>callwaiting=no<br>threewaycalling=yes<br>transfer=yes<br>echocancel=yes<br>echotraining=yes<br>callprogress=no
<br>context=incoming<br>signalling=fxs_ks<br>channel=>4<br><br>3. I have the following entry in extensions.conf<br><br>[callAgent]<br>exten=>outbound,1,Dial(Zap/4/phonenumber) ;where phonenumber is a 10<br>digit number
<br>exten=>outbound,n,Playback(access-code) ; just for the sake of doing<br>something!<br><br>4. I am using Asterisk Java Manager AGI OriginateAction with the<br>following code in a jsp page running on a tomcat server:
<br><br>//manageAGI<br>ManagerConnection managerConnection;<br>ManagerConnectionFactory factory;<br>OriginateAction originateAction;<br>ManagerResponse originateResponse;<br><br>factory = new ManagerConnectionFactory();<br>
managerConnection = factory.getManagerConnection("<a href="http://192.168.1.4">192.168.1.4</a>","jason",<br>"nosaj111");<br><br> // connect to Asterisk and log in<br> managerConnection.login
();<br><br> originateAction = new OriginateAction();<br> originateAction.setAsync(true);<br> originateAction.setChannel("Zap/4");<br> originateAction.setContext("callAgent");
<br> originateAction.setExten("outbound");<br> originateAction.setPriority(new Integer(1));<br> originateAction.setTimeout(3000);<br><br> originateResponse =<br>managerConnection.sendAction
(originateAction, 30000);<br><br><br>6. when I execute the jsp page, I watch the console started with<br>/usr/sbin/asterisk -cvvvvvvvvvv<br>and I get the following message (I substituted phonenumber in for the 10<br>digit number again)
<br><br>*CLI> == Parsing '/etc/asterisk/manager.conf': Found<br> == Manager 'jason' logged on from <a href="http://192.168.1.3">192.168.1.3</a><br> > Channel Zap/4-1 was answered.<br> -- Executing Dial("Zap/4-1", "Zap/4/phonenumber") in new stack
<br>Dec 25 10:55:40 NOTICE[3989]: app_dial.c:1010 dial_exec_full: Unable to<br>create channel of type 'Zap' (cause 0 - Unknown)<br> == Everyone is busy/congested at this time (1:0/0/1)<br> -- Executing Playback("Zap/4-1", "access-code") in new stack
<br> -- Playing 'access-code' (language 'en')<br> == Manager 'jason' logged off from <a href="http://192.168.1.3">192.168.1.3</a><br> == Auto fallthrough, channel 'Zap/4-1' status is 'CHANUNAVAIL'<br> -- Hungup 'Zap/4-1'
<br>exten => outbound,1,Hangup()<br><br>What I eventually want to accomplish is the following:<br><br>I want a web user (using a JSP page I think) to be able to click a<br>button and cause asterisk to dial outbound on both FXO ports, wait for
<br>an answer, play some files, accept some input, and bridge the two calls<br>together.<br><br>am I on the wrong track? is there anything that is standing out that I<br>am just not understanding here? ANY comments will be much appreciated.
<br><br>Thank you,<br>Jason<br><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br><br>Asterisk-Users mailing list<br>To UNSUBSCRIBE or update options visit:
<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>"Su nombre es GNU/Linux, no solamente Linux, mas info en
<a href="http://www.gnu.org">http://www.gnu.org</a>"