I have res_fax setup and working for the most part. However, I'm seeing some fax machines drop the connection on me - Apr 9 17:33:11] NOTICE[30809]: res_fax.c:906 generic_fax_exec: Channel 'DAHDI/1-1' did not return a frame; probably hung up. -- Channel 0/1, span 1 got hangup, cause 102 -- Channel 'DAHDI/1-1' FAX session '20' is complete, result: 'SUCCESS' (FAX_SUCCESS), error: 'NO_ERROR', pages: 1, resolution: '204x98', transfer rate: '14400', remoteSID: '<numberredacted>' == Spawn extension (macro-fax_rcv, s, 3) exited non-zero on 'DAHDI/1-1' in macro 'fax_rcv' It appears to be dropping out of my macro fax_rcv at that point and not executing the next step in the dialplan, which is a System call to a script that converts the tif to a pdf and emails it to the extension owner. My question is how do I ensure that my script is called when the far end hangs up before the call progresses that far in the dialplan? My first thought is to add something like this- exten => h, 1, System(callmyscript.sh,arg1,arg2,arg3,arg4,argimapirate) to the macro, but I'm not sure if that would do it or not. Anyone have any thoughts? Thanks- Joe
I am having serious problems connecting my client software to asterisk, i tried x-lite would not connect, and i tried with twinkle too, it wouldnt, i cannot get to call myself, i am not on a network, just trying all this out locally, can i not get to connect without been on a network? _________________________________________________________________ Windows Live Hotmail: Your friends can get your Facebook updates, right from Hotmail?. http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_4:092009 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100409/161a2183/attachment.htm
On Fri, Apr 9, 2010 at 5:40 PM, Joe Freeman <joe at ngn-networks.com> wrote:> I have res_fax setup and working for the most part. However, I'm seeing > some fax machines drop the connection on me - > > Apr ?9 17:33:11] NOTICE[30809]: res_fax.c:906 generic_fax_exec: Channel > 'DAHDI/1-1' did not return a frame; probably hung up. > ? ? -- Channel 0/1, span 1 got hangup, cause 102 > ? ? -- Channel 'DAHDI/1-1' FAX session '20' is complete, result: > 'SUCCESS' (FAX_SUCCESS), error: 'NO_ERROR', pages: 1, resolution: > '204x98', transfer rate: '14400', remoteSID: '<numberredacted>' > ? == Spawn extension (macro-fax_rcv, s, 3) exited non-zero on > 'DAHDI/1-1' in macro 'fax_rcv' > > It appears to be dropping out of my macro fax_rcv at that point and not > executing the next step in the dialplan, which is a System call to a > script that converts the tif to a pdf and emails it to the extension owner. > > My question is how do I ensure that my script is called when the far end > hangs up before the call progresses that far in the dialplan? > > My first thought is to add something like this- > > exten => h, 1, System(callmyscript.sh,arg1,arg2,arg3,arg4,argimapirate) > > to the macro, but I'm not sure if that would do it or not. > > Anyone have any thoughts?Yes. Do the conversion in the hangup side of the context. That's the only way I've ever been able to do it. My understanding is that at the conclusion of ReceiveFax(), the line is hungup, and that is correct, normal behavior.
Seemingly Similar Threads
- Fax for Asterisk, capable of receiving from website but not from fax machine !!
- dialplan execution stops after ReceiveFax
- error receiving a fax ... but with a fax that was received without problems
- Still on spandsp/app_fax and T.38
- Dialplan execution stops on app call even with TryExec (Am I missing something simple?)