[asterisk-users] Question on Asterisk memory management

2012-10-06 Thread Richard Kenner
I'm trying to add a Talking:  field to the AMI ConfbridgeList event so
that my conference room monitoring will work with Confbridge instead of
having to stay with MeetMe and there's something I don't understand.

When app_confbridge.c calls ast_bridge_features_set_talk_detector, it
passes a *copy* of args.conf_name.  Why make the copy?  Isn't
args.conf_name in valid memory throughout the existance of that bridge?  I
ask because the easiest way to do what I want is to change that parameter
to be conference_bridge_user and add a talking field to it (yes, I know
I then have to have the callback called unconditionally and test
TALKER_DTETECT there).  But that can't work if there's a scoping issue
with memory and the copy suggests there is, though I don't see it.


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] SendFAX - multi-page TIFF

2012-10-06 Thread Gabriel Ortiz Lour
I am using this command to generate the TIFF from a PDF:

/usr/bin/gs -q -sDEVICE=tiffg3 -sPAPERSIZE=a4 -r204x196 -dNOPAUSE
-sOutputFile=$tiffFile -- $pdfFile

And tiffinfo for a 2 page generate file gives:

# tiffinfo teste.tiff
TIFF Directory at offset 0x8 (8)
  Subfile Type: multi-page document (2 = 0x2)
  Image Width: 1728 Image Length: 2292
  Resolution: 204, 196 pixels/inch
  Bits/Sample: 1
  Compression Scheme: CCITT Group 4
  Photometric Interpretation: min-is-white
  FillOrder: msb-to-lsb
  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 1
  Rows/Strip: 4969
  Planar Configuration: single image plane
  Page Number: 0-0
  Software: GPL Ghostscript 8.71
  DateTime: 2012:10:04 22:16:14
  Group 4 Options: (0 = 0x0)
TIFF Directory at offset 0x394 (916)
  Subfile Type: multi-page document (2 = 0x2)
  Image Width: 1728 Image Length: 2292
  Resolution: 204, 196 pixels/inch
  Bits/Sample: 1
  Compression Scheme: CCITT Group 4
  Photometric Interpretation: min-is-white
  FillOrder: msb-to-lsb
  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 1
  Rows/Strip: 4969
  Planar Configuration: single image plane
  Page Number: 1-0
  Software: GPL Ghostscript 8.71
  DateTime: 2012:10:04 22:16:14
  Group 4 Options: (0 = 0x0)

I think this is correct, since it came from asterisk FAXing Howtos. Is that
correct?
I'll try doing some more tests with debug info ON and post back the results.

Thanks,
Gabriel


2012/10/5 Steve Underwood ste...@coppice.org

 On 10/06/2012 02:53 AM, Gabriel Ortiz Lour wrote:

 Hi,

   Does anyone had the problem of asterisk SendFax + spandsp sending only
 the first page of a multi-page TIFF file?

   Seams to be related to spandsp ECM config.

   Any thoughts about it?

 Thanks,
 Gabriel

 Check the file with tiffinfo. Perhaps the format of the second page is
 different from the first, and incompatible with faxing. Spandsp will
 renegotiate and continue sending if the second page is of a different but
 valid format, but sending will end if the second page is, say, colour or
 the wrong width.

 Steve


 --
 __**__**_
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   
 http://lists.digium.com/**mailman/listinfo/asterisk-**usershttp://lists.digium.com/mailman/listinfo/asterisk-users

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users