AGI SendFAX: Errors when sending multiple documents

Community-based Support for users of Free Fax For Asterisk

AGI SendFAX: Errors when sending multiple documents

Postby enera » Wed Aug 20, 2014 7:57 am

I got a problem with sending multiple fax pages (tiff files) when calling SendFAX from Asterisk Gateway Interface (AGI). Single page fax works without any problems.

According to 3.1.2 in "Fax For Asterisk Administrator Manual" (http://www.digium.com/sites/digium/file ... manual.pdf) there should be possible to send multiple fax files:
SendFAX(<filename[&filename2&filename3&...]>,[,ad])
<filename> : Full path to the TIFF image to transmit. If sending multiple fax files, append each additional full path using the ampersand (&).


This is what a get in Asterisk CLI:

Code: Select all
Connected to Asterisk 1.6.2.8 currently running on enera-voip-appliance (pid = 782)
Verbosity is at least 3I>
  == Using SIP RTP CoS mark 5
    -- Executing [s@outgoing:1] Set("SIP/f_digium-00000002", "GROUP()=voipchannels") in new stack
    -- Executing [s@outgoing:2] Set("SIP/f_digium-00000002", "LOCAL_SSRC=1032223629") in new stack
    -- Executing [s@outgoing:3] BackGround("SIP/f_digium-00000002", "silence/25ms") in new stack
    -- <SIP/f_digium-00000002> Playing 'silence/25ms.slin' (language 'en')
    -- Executing [s@outgoing:4] GotoIf("SIP/f_digium-00000002", "1?beginagi") in new stack
    -- Goto (outgoing,s,6)
    -- Executing [s@outgoing:6] AGI("SIP/f_digium-00000002", "agi:async") in new stack
    -- AGI Script Executing Application: (SendFax) Options: (/var/asterisk/linehandler/faxcache/d/enera/rapidreach/rrs/subscribers/836/1161/messages/bre/faxpage4.tif&/var/asterisk/linehandler/faxcache/d/enera/rapidreach/rrs/subscribers/836/1161/messages/bre/faxpage5.tif)
[Aug 20 11:18:02] ERROR[5322]: res_fax.c:1290 sendfax_exec: access failure.  Verify '/var/asterisk/linehandler/faxcache/d/enera/rapidreach/rrs/subscribers/836/1161/messages/bre/faxpage4.tif&/var/asterisk/linehandler/faxcache/d/enera/rapidreach/rrs/subscribers/836/1161/messages/bre/faxpage5.tif' exists and check permissions.
  == Spawn extension (outgoing, s, 6) exited non-zero on 'SIP/f_digium-00000002'
enera-voip-appliance*CLI>


The problem seems to be that the filename is interpreted as one filename instead of multiple filname with & as the delimiter.

Any ideas?
enera
Newsterisk
 
Posts: 1
Joined: Wed Aug 20, 2014 5:49 am

Return to Fax For Asterisk

Who is online

Users browsing this forum: No registered users and 3 guests

cron