<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="generator" content="Osso Notes">
<title></title></head>
<body>
<p>Does the user Asterisk is running as have access to this device?
<br>
<br>Thanks!!
<br>
<br>
<br>
<br>----- Original message -----
<br>> I have a USB to serial converter attached to my box.  pl2303: Prolific
<br>> PL2303 USB to serial adaptor driver
<br>> if I login to the box and send/receive serial commands over this unit it
<br>> works without error EVERY time.
<br>>
<br>> however, if I run the same command set from with-in the extensions.conf
<br>> with System()
<br>> I get errors in dmesg like "pl2303 ttyUSB0: pl2303_open - failed
<br>> submitting read urb, error -22"
<br>> and then obviusly my command does not work.
<br>>
<br>> however, again - If I go back to the command line and my command it runs
<br>> just fine.
<br>>
<br>> Any ideas on what might be happening here?
<br>>
<br>> Jerry
<br>>
<br>> extensions.conf
<br>> exten => s,1,ChanIsAvail(Console/Dsp)
<br>> exten => s,n,GotoIf($["${AVAILCHAN}" = ""]?smvoice-busy,s,1)
<br>> exten => s,n,System(/home/silentm/bin/usbserial -start)
<br>> exten => s,n,Playback(beep)
<br>> exten => s,n,Dial(Console/dsp)
<br>> exten => s,n,Hangup
<br>> exten => h,1,System(/home/silentm/bin/usbserial -stop)
<br>>
<br>>
<br>>
<br>> --
<br>> _____________________________________________________________________
<br>> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --
<br>> New to Asterisk? Join us for a live introductory webinar every Thurs:
<br>>  <a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</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><br></p>
</body>
</html>