Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] rxfax issue


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
rschall at callone.net
Guest





PostPosted: Fri Apr 04, 2008 1:24 pm    Post subject: [asterisk-users] rxfax issue Reply with quote

Hi all,

Here's our setup:
Asterisk 1.4.18
Agx-ast-addons 1.4.5

Problem:

When accepting a fax, the fax itself comes through just fine, and it
does successfully create a tiff file. However, the dialplan should be
executing a system command right after that completes, but isn't due to
hanging up early. I'm getting a cause 16 hangup, which I believe is a
"Normal Hangup", but could be wrong. Any thoughts as to what could cause
this?

-- Accepting call from '3126290600' to '3125727758' on channel 0/1,
span 2
-- Executing [3125727758 at from-pstn:1] Macro("Zap/25-1",
"faxreceive|7758|rschall at callone.net") in new stack
-- Executing [s at macro-faxreceive:1] Answer("Zap/25-1", "") in new stack
-- Executing [s at macro-faxreceive:2] Set("Zap/25-1",
"FAXFILE=/var/spool/asterisk/fax/7758_3126290600_1207329420.10.tif") in
new stack
-- Executing [s at macro-faxreceive:3] RxFAX("Zap/25-1",
"/var/spool/asterisk/fax/7758_3126290600_1207329420.10.tif") in new stack
-- Channel 0/1, span 2 got hangup request, cause 16
-- Hungup 'Zap/25-1'

Extensions.conf File:

[macro-faxreceive]
exten => s,1,Answer()
exten =>
s,n,Set(FAXFILE=/var/spool/asterisk/fax/${ARG1}_${CALLERID(num)}_${UNIQUEID}.tif)
exten => s,n,rxfax(${FAXFILE})
exten => s,n,NoOp(/usr/bin/mailfax "${ARG1}" "${CALLERID(num)}"
"${CALLERID(name)}" "${FAXFILE}" "${ARG2}")
exten => s,n,System(/usr/bin/mailfax "${ARG1}" "${CALLERID(num)}"
"${CALLERID(name)}" "${FAXFILE}" "${ARG2}")
exten => s,n,Hangup()
Back to top
support at drdos.info
Guest





PostPosted: Fri Apr 04, 2008 1:39 pm    Post subject: [asterisk-users] rxfax issue Reply with quote

Rob Schall wrote:
Quote:
Hi all,

Here's our setup:
Asterisk 1.4.18
Agx-ast-addons 1.4.5

Problem:

When accepting a fax, the fax itself comes through just fine, and it
does successfully create a tiff file. However, the dialplan should be
executing a system command right after that completes, but isn't due to
hanging up early. I'm getting a cause 16 hangup, which I believe is a


Use the h extension (hangup) to process the fax.

Doug
--

Ben Franklin quote:

"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
Back to top
rschall at callone.net
Guest





PostPosted: Fri Apr 04, 2008 1:58 pm    Post subject: [asterisk-users] rxfax issue Reply with quote

Still no luck..

I still get this:
-- Accepting call from '3126290600' to '3125727758' on channel 0/1,
span 2
-- Executing [3125727758 at from-pstn:1] Macro("Zap/25-1",
"faxreceive|7758|rschall at callone.net") in new stack
-- Executing [s at macro-faxreceive:1] Answer("Zap/25-1", "") in new stack
-- Executing [s at macro-faxreceive:2] Set("Zap/25-1",
"FAXFILE=/var/spool/asterisk/fax/7758_3126290600_1207335375.54.tif") in
new stack
-- Executing [s at macro-faxreceive:3] RxFAX("Zap/25-1",
"/var/spool/asterisk/fax/7758_3126290600_1207335375.54.tif") in new stack
-- Channel 0/1, span 2 got hangup request, cause 16
-- Hungup 'Zap/25-1'

Here's my updated function:
[macro-faxreceive]
exten => s,1,Answer()
exten =>
s,n,Set(FAXFILE=/var/spool/asterisk/fax/${ARG1}_${CALLERID(num)}_${UNIQUEID}.tif)
exten => s,n,rxfax(${FAXFILE})
exten => s,n,System(/usr/bin/mailfax "${ARG1}" "${CALLERID(num)}"
"${CALLERID(name)}" "${FAXFILE}" "${ARG2}")
exten => s,n,Hangup()
exten => h,1,System(/usr/bin/mailfax "${ARG1}" "${CALLERID(num)}"
"${CALLERID(name)}" "${FAXFILE}" "${ARG2}")
exten => h,n,Hangup()

Doug Lytle wrote:
Quote:
Rob Schall wrote:

Quote:
Hi all,

Here's our setup:
Asterisk 1.4.18
Agx-ast-addons 1.4.5

Problem:

When accepting a fax, the fax itself comes through just fine, and it
does successfully create a tiff file. However, the dialplan should be
executing a system command right after that completes, but isn't due to
hanging up early. I'm getting a cause 16 hangup, which I believe is a



Use the h extension (hangup) to process the fax.

Doug




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080404/2c749e50/attachment.htm
Back to top
support at drdos.info
Guest





PostPosted: Fri Apr 04, 2008 2:23 pm    Post subject: [asterisk-users] rxfax issue Reply with quote

Rob Schall wrote:
Quote:
exten => s,n,Hangup()
exten => h,1,System(/usr/bin/mailfax "${ARG1}" "${CALLERID(num)}"
"${CALLERID(name)}" "${FAXFILE}"

Can you and a NoOP and send the output:

exten => h,n,NoOP(/usr/bin/mailfax "${ARG1}" "${CALLERID(num)}"
"${CALLERID(name)}" "${FAXFILE}")

Doug

--

Ben Franklin quote:

"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
Back to top
support at drdos.info
Guest





PostPosted: Fri Apr 04, 2008 3:07 pm    Post subject: [asterisk-users] rxfax issue Reply with quote

Rob Schall wrote:
Quote:

exten => h,1,System(/usr/bin/mailfax "${ARG1}" "${CALLERID(num)}"
"${CALLERID(name)}" "${FAXFILE}"


Take the h extension out of the macro.

Doug

--

Ben Franklin quote:

"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
Back to top
rschall at callone.net
Guest





PostPosted: Fri Apr 04, 2008 3:42 pm    Post subject: [asterisk-users] rxfax issue Reply with quote

Nevermind. I'm a dummy. That method does work, but I didn't have a
${email}.... blah. Long week...

Thanks again for the help,
Rob
Rob Schall wrote:
Quote:
Doug Lytle wrote:
Quote:
Rob Schall wrote:

Quote:
exten => h,1,System(/usr/bin/mailfax "${ARG1}" "${CALLERID(num)}"
"${CALLERID(name)}" "${FAXFILE}"



Take the h extension out of the macro.

Doug


The problem is that I need the macro so I can make it mobile. I reuse
the macro about 20 times, and it accepts parameters such as an email
address. If I try to set a variable then do like a Goto, the variable
doesn't get passed to the new context. Is it possible to pass those
parameters to a context somehow?

For example...
[macro-faxreceieve]
exten => s,1,Set(somevar=${ARG1})
exten => Goto(faxing,s,1)

[faxing]
exten => s,1,rxfax(.....)
exten => h,1,System(.....${somevar})
exten => h,2,Hangup

Rob
------------------------------------------------------------------------

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080404/423cce8a/attachment.htm
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services