search for: extname

Displaying 20 results from an estimated 27 matches for "extname".

2009 Nov 11
1
Unable to execute
...permissions to the mailfax script but Asterisk still can?t execute the script. The macro is the following: [macro-faxreceive] exten => s,1,Set(FAXFILE=/var/spool/asterisk/fax/${CALLEDFAX}/${UNIQUEID}) exten => s,2,Set(EXTEMAIL=${MACRO_EXTEN}/xEmail) exten => s,3,NoOP() exten => s,4,Set(EXTNAME=${MACRO_EXTEN}/xName) exten => s,5,NoOP() exten => s,6,Set(EXTCOMPANY=${MACRO_EXTEN}/xCompany) exten => s,7,nvfaxdetect(${FAXFILE}.tif) exten => s,103,Set(EXTMAIL=hsalvarezza at bit2net.com) exten => s,104,Goto(7) exten => s,105,Set(EXTNAME=Hernan) exten => s,106,Goto(7) exten...
2006 Jan 04
1
RxFax : Change FAX Resolution
...tried changing the image resolution by doing below in my dial plan but still i get the same resolution as above. [macro-faxreceive] exten => s,1,SetVar(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}) exten => s,2,DBGet(EXTEMAIL=${MACRO_EXTEN}/Email) exten => s,3,NoOP() exten => s,4,DBGet(EXTNAME=${MACRO_EXTEN}/Name) exten => s,5,NoOP() exten => s,6,DBGet(EXTCOMPANY=${MACRO_EXTEN}/Company) exten => s,7,SetVar(FAXRESOLUTION=6000 x 3000) exten => s,8,rxfax(${FAXFILE}.tif|debug) exten => s,103,SetVar(EXTEMAIL=faxbox@directi.com) exten => s,104,Goto(7) exten => s,105,SetVar...
2008 Jan 27
1
rxfax does not work (anymore)
...gt; local [fax2emailstart] exten => 3000,1,SetVar(CALLEDFAX=${EXTEN}) ; tm.ronald at gmail.com exten => 3000,2,Answer exten => 3000,3,Macro(fax2emailservice) exten => h,1,System(/var/lib/asterisk/scripts/fax2emailservice "${CALLERIDNUM}" "${CALLEDFAX}" "${EXTNAME}" "${EXTEMAIL}" "${FAXFILE}" "${EXTCOMPANY}") [macro-fax2emailservice] exten => s,1,SetVar(FAXFILE=/var/spool/asterisk-fax/${CALLEDFAX}/${UNIQUEID}) exten => s,2,Set(EXTEMAIL=${DB(${MACRO_EXTEN}/xEmail)}) exten => s,3,NoOP() exten => s,4,Set(EXTNA...
2017 Jun 14
2
Using LLD to create a .lib from a .def
...LLD code into my codebase like this: // workaround for LLD not exposing ability to convert .def to .lib #include <set> namespace lld { namespace coff { class SymbolBody; class StringChunk; struct Symbol; struct Export { StringRef Name; // N in /export:N or /export:E=N StringRef ExtName; // E in /export:E=N SymbolBody *Sym = nullptr; uint16_t Ordinal = 0; bool Noname = false; bool Data = false; bool Private = false; // If an export is a form of /export:foo=dllname.bar, that means // that foo should be exported as an alias to bar in the DLL. // ForwardTo is set...
2008 Sep 23
3
calling save in after_create hook
Scenario: I''m creating an image file upload service for my web site. As well as saving the actual file I also need to create a database record for the file. I would like to name the file after the record id, but I also need to save some attributes of the image (width/height/mime_type etc) which I can''t discover until after the file is created. The Problem: 1) The id is not
2008 Jan 14
0
Help needed for Fax2Email with Welltech FXO 3804
...wer exten => 3000,3,Macro(fax2emailservice) exten => 3001,1,SetVar(CALLEDFAX=${EXTEN}) ; dave exten => 3001,2,Answer exten => 3001,3,Macro(fax2emailservice) exten => h,1,System(/var/lib/asterisk/scripts/fax2emailservice "${CALLERIDNUM}" "${CALLEDFAX}" "${EXTNAME}" "${EXTEMAIL}" "${FAXFILE}" "${EXTCOMPANY}") [macro-fax2emailservice] exten => s,1,SetVar(FAXFILE=/var/spool/asterisk/fax/${CALLEDFAX}/${UNIQUEID}) ; exten => s,2,DBGet(EXTEMAIL=${MACRO_EXTEN}/xEmail) exten => s,2,Set(EXTEMAIL=${DB(MACRO_EXTEN/xEmail)...
2017 Jun 15
2
Using LLD to create a .lib from a .def
...>> #include <set> >> >> namespace lld { >> namespace coff { >> >> class SymbolBody; >> class StringChunk; >> struct Symbol; >> >> struct Export { >> StringRef Name; // N in /export:N or /export:E=N >> StringRef ExtName; // E in /export:E=N >> SymbolBody *Sym = nullptr; >> uint16_t Ordinal = 0; >> bool Noname = false; >> bool Data = false; >> bool Private = false; >> >> // If an export is a form of /export:foo=dllname.bar, that means >> // that foo s...
2017 Jun 16
2
Using LLD to create a .lib from a .def
...;>> namespace coff { >>>> >>>> class SymbolBody; >>>> class StringChunk; >>>> struct Symbol; >>>> >>>> struct Export { >>>> StringRef Name; // N in /export:N or /export:E=N >>>> StringRef ExtName; // E in /export:E=N >>>> SymbolBody *Sym = nullptr; >>>> uint16_t Ordinal = 0; >>>> bool Noname = false; >>>> bool Data = false; >>>> bool Private = false; >>>> >>>> // If an export is a form of /exp...
2005 Mar 11
0
Receiving faxes via SIP
...Sipmedia2' extensions.conf [from-Sipmedia2] ;second line in or Fax line exten => s,1,Answer exten => fax,2,Goto(fax,2901,1) [fax] exten => 2901,1,Macro(faxreceive) exten => h,1,System(/var/lib/asterisk/scripts/mailfax "${CALLERIDNUM}" "${CALLEDFAX}" "${EXTNAME}" "${EXTEMAIL}" "${FAXFILE}" "${EXT COMPANY}") [macro-faxreceive] exten => s,1,SetVar(FAXFILE=/var/spool/asterisk/fax/${CALLEDFAX}/${UNIQUEID}) exten => s,2,SetVar(EXTMAIL=chris@address) exten => s,3,NoOP() exten => s,4,SetVar(EXTNAME=Unknown) e...
2005 Jun 05
0
RXFax and Hangup context Question.
...it "goto's" the fax context, as described by the CLI output, but when the hangup occurs, it never executes the system command? [macro-faxreceive] exten => s,1,SetVar(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}) exten => s,2,SetVar(EXTEMAIL=${FAXTOEMAIL}) exten => s,3,SetVar(EXTNAME=YourName) exten => s,4,SetVar(EXTCOMPANY=YourCompany) exten => s,5,RxFax(${FAXFILE}.tif) exten => h,1,System(/usr/local/bin/faxmail "${CALLERIDNUM}" "${CALLEDFAX}" "${EXTNAME}" "${EXTEMAIL}" "${FAXFILE}" "${EXTCOMPANY}") This is...
2005 Mar 24
2
rxfax trouble on bristuffed capi
...rds. In the following config snipped I obfuscated this number for this reason. The number is dedicated for faxes. extensions.conf: [macro-faxreceive] exten => s,1,SetVar(FAXFILE=/var/spool/asterisk/fax/${CALLERIDNUM}) exten => s,2,SetVar(EXTEMAIL=michiel@vanbaak.info) exten => s,3,SetVar(EXTNAME=Michiel) exten => s,4,SetVar(EXTCOMPANY=vanbaak) exten => s,5,Answer() exten => s,6,rxfax(${FAXFILE}.tif) ; This is our fax line [fax] exten => 3424XXXXX,1,Macro(faxreceive) exten => h,1,System(/var/lib/asterisk/scripts/faxmail "${CALLERIDNUM}" "${CALLEDFAX}" &qu...
2002 May 13
0
Samba with split personality
...4 192.168.2.0/24 bind interfaces only = Yes encrypt passwords = Yes invalid users = root security = SHARE workgroup = WorkGroup1 server string = ServerString1 netbios name = EXTNAME log file = /var/log/samba/log.%I os level = 0 keepalive = 30 dns proxy = No local master = No domain master = No preferred master = No wins support...
2006 Aug 15
8
AGAIN: file object treated as string
...;].rewind File.open("pictures/upload/#{@image.id}.#{@image.extention}", "wb") { |f| f.write(uploaded_file[''picture''].read) } end end MODEL: class Image < ActiveRecord::Base def picture=(image_field) extname_dot = File.extname(image_field) self.extention = extname_dot.slice(1, extname_dot.length) self.submitDate = Time.now end end I tried implementing this with Agile web development rails book, and also tried using other examples on the web, it alwa...
2010 Oct 01
20
Paperclip not executing FFMPEG properly
Im using a customs processor to run ffmpeg on a video to create a thumbnail. So far so good. Except when I do: cmd = "-i #{@file.path} -f flv -s 320x240 ~/Downloads/foobar/q.flv" success = Paperclip.run(''ffmpeg'', cmd) Console is reporting: ffmpeg ''-i /var/folders/uL/uL0bYOOZEZaJH5E+BmDJVE+++TI/-Tmp-/stream, 16824,1.mpeg -f flv -s 320x240
2008 Dec 10
12
image_tag cannot show picture
Dear all I am new to rails. In view, I place the following code, but cannot show the picture in the webpage <%= image_tag("green.JPG") %> However, I can access the picture in this url http://localhost:3000/images/green.JPG The HTML source code generated <img alt="Green" src="/images/green.JPG.?1228211220" /> I cannot identify the problem. Please help
2006 Aug 15
0
file object treated as a string
...("pictures/upload/#{@image.id}.#{@image.extention}", "wb") { |f| f.write(uploaded_file[''picture''].read) } end end My image model looks like this: class Image < ActiveRecord::Base def picture=(image_field) extname_dot = File.extname(image_field) self.extention = extname_dot.slice(1, extname_dot.length) self.submitDate = Time.now end end When I click the submit button on the form, it saves the image entry in the database OK, but errors while trying to write the file...
2007 Sep 16
0
MIME case-sensitivity
ive got code in my app which adds mimes for .JPG, .PNG, that id like to remove what do people think about forcing a toLower() on the extname in Mongrel::DirHandler?
2005 Aug 12
0
three questions
...onfig files for using asterisk as a gateway between SIP/internal extensions and PSTN ? 3) I've set up fax receiving and sending it to email [fax] exten => 1,1,Macro(faxreceive) exten => h,1,System(/var/lib/asterisk/mailfax "${CALLERIDNUM}" "${CALLEDFAX}" "${EXTNAME}" "${EXTMAIL}" "${FAXFILE}" "${EXTCOMPANY}") but CALLERIDNUM always empty any suggestions ? P.S. I'm not expecting answers with full sescriptions if my questoins are already answered - just give me the link to this page.
2010 Mar 17
2
Asterisk as a skinny/sccp "client"?
I wonder if Asterisk's skinny/sccp channel driver could be used as a "client" to register with a Cisco PBX. That is, along with a SIP client, say, have Asterisk and said SIP client stand in for a Cisco phone, or an IP Communicator. Anyone done this? Cheers, b. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type:
2011 Jul 11
0
stuck with permissions in using FileUtils
...@clip_file = clip.data.path # => ( ".. rails/myapp/public/ system/clips/data/65/original/NickFaldo.avi" ) @clip_dir = File.dirname(@clip_file) # => (".. /ls/myapp/ public/system/clips/data/65/original" ) basename = File.basename(@clip_file, File.extname(@clip_file)) # => NickFaldo the ffmpeg transcoding process, is writing an output file into the tmp dir , without any problem @tmp_dir = FileUtils.mkdir_p(Rails.root.join("tmp", "converted", "#{clip[:id]}")) # => ( "../clips/tmp/65i" )...