Difference between revisions of "Fax is not received"

From Kolmisoft Wiki
Jump to navigationJump to search
Line 18: Line 18:
----
----


__ast_pbx_run: Channel 'Local/999@mor_local-1217,2' sent into invalid extension 'fax' in context 'mor_fax2email', but no invalid handler
== __ast_pbx_run: Channel 'Local/999@mor_local-1217,2' sent into invalid extension 'fax' in context 'mor_fax2email', but no invalid handler ==


Make sure /etc/asterisk/extensions_mor.conf has such line:
Make sure /etc/asterisk/extensions_mor.conf has such line:

Revision as of 10:30, 24 January 2009

After trying to use Fax2Email functionality in Asterisk CLI you see:

  • Check permissions on /var/spool/asterisk/faxes






mor_fax2email: MOR Fax2Email v0.1.3 AGI script started.
mor_fax2email: Failed to connect database server. Check debug for more info.
mor_fax2email: ERROR! Not connected to database.

Solution:

In /var/lib/asterisk/agi-bin/mor.conf correct DB connection settings.



__ast_pbx_run: Channel 'Local/999@mor_local-1217,2' sent into invalid extension 'fax' in context 'mor_fax2email', but no invalid handler

Make sure /etc/asterisk/extensions_mor.conf has such line:

[mor_fax2email]
exten => _X.,1,Answer
exten => _X.,2,StopPlaytones
exten => _X.,3,Playback(beep)
exten => _X.,4,Set(FAXFILE=${CDR(UNIQUEID)})
exten => _X.,5,RxFax(/var/spool/asterisk/faxes/${FAXFILE}.tif)
exten => fax,1,Goto(mor_fax2email,111,1)
exten => h,1,DeadAGI(mor_fax2email)
exten => h,2,Hangup

If not - add such line (marked in bold) and reload Asterisk.