Hello all,
i have set up a trixbox 2.2 system. The only thing i did not get running yet is asterfax used in conjuntion with sip-trunk lines (because i have no zap channels --> isdn cards on my ip asterisk pbx). I use these sip trunk channels configured to a media gateway this can dial out via sip or isdn.
I running into the issue that i send send faxes or better i can ring all numbers (my mobile phone, desk phone etc) when i am calling the number via SIP or Fax-to-External. Shell-Scripts. Both are running fine.
Contents of both are:
Channel:SIP/ASTERISK-LINE2/002xxx95xxxx
MaxRetries: 0
WaitTime: 20
Priority: 1
Application:txfax
Data:/usr/lib/asterfax/test/attachments/testpage.tif|caller
Context: from-internal
Channel: SIP/ASTERISK-LINE1/002xxx95xxxx
MaxRetries: 3
RetryTime: 40
WaitTime: 25
Context: from-internal
Extension: 51
Priority: 1
Also send the fax to via test-sh script is working like a charm, but i still do not see asterisk dialing in this case or when i try to send fax to with email client (outlook) configured correctly.
I still get this in asterisk fulllog when the thing is not working:
May 20 15:40:12 DEBUG[2796] chan_sip.c: Stopping retransmission on '7b0b37fc19d01b5f059479cc1ce5daeb@192.168.1.5' of Request 102: Match Found
When the fax call is initiated manually by shell-scripts (sip-to-external / fax-to-external) i get this on my asterisk log. which shows me that everything is correctly setup on asterisk.
May 20 15:38:57 DEBUG[4850] chan_sip.c: Setting NAT on RTP to 0
May 20 15:38:57 DEBUG[4850] chan_sip.c: Outgoing Call for 00XXX953XXX
May 20 15:38:57 DEBUG[2796] chan_sip.c: (Provisional) Stopping retransmission (but retaining packet) on '0c0699d01396fb79355a0bb45122fd9f@192.168.1.5' Request 102: Found
May 20 15:38:59 DEBUG[2796] chan_sip.c: (Provisional) Stopping retransmission (but retaining packet) on '0c0699d01396fb79355a0bb45122fd9f@192.168.1.5' Request 102: Found
May 20 15:38:59 DEBUG[2796] chan_sip.c: Oooh, we need to change our formats since our peer supports only 0x8 (alaw) and not 0x4 (ulaw)
May 20 15:38:59 DEBUG[2796] chan_sip.c: (Provisional) Stopping retransmission (but retaining packet) on '0c0699d01396fb79355a0bb45122fd9f@192.168.1.5' Request 102: Found
May 20 15:38:59 DEBUG[2796] chan_sip.c: Acked pending invite 102
May 20 15:38:59 DEBUG[2796] chan_sip.c: Stopping retransmission on '0c0699d01396fb79355a0bb45122fd9f@192.168.1.5' of Request 102: Match Found
May 20 15:38:59 DEBUG[2796] chan_sip.c: build_route: Contact hop: <sip:ASTERISK-LINE2@192.168.1.253:47194>
May 20 15:38:59 DEBUG[4850] app_txfax.c: channel=SIP/ASTERISK-LINE2-09fb2618
May 20 15:38:59 DEBUG[4850] app_txfax.c: data=/usr/lib/asterfax/test/attachments/testpage.tif|caller
May 20 15:38:59 DEBUG[4850] app_txfax.c: option=(/usr/lib/asterfax/test/attachments/testpage.tif)
May 20 15:38:59 DEBUG[4850] app_txfax.c: option=(caller)
May 20 15:38:59 DEBUG[4850] app_txfax.c: source file=/usr/lib/asterfax/test/attachments/testpage.tif
May 20 15:39:00 DEBUG[2796] chan_sip.c: Stopping retransmission on '448d2bce6f43c0ad0bc45a8862d63e5a@192.168.1.5' of Request 102: Match Not Found
May 20 15:39:12 DEBUG[2796] chan_sip.c: Stopping retransmission on '72d30c8076c3a60d4d1314c0082a31f1@192.168.1.5' of Request 102: Match Found
May 20 15:39:22 DEBUG[2796] chan_sip.c: Auto destroying call 'ASTERISK-LINE1-192.168.1.5-c3923bc5@00a0570fb96d'
May 20 15:39:22 DEBUG[2796] chan_sip.c: Auto destroying call 'ASTERISK-LINE2-192.168.1.5-bb7d0df1@00a0570fb96d'
May 20 15:39:39 DEBUG[4850] app_txfax.c: Got hangup
May 20 15:39:39 DEBUG[4850] app_txfax.c: ==============================================================================
May 20 15:39:39 DEBUG[4850] app_txfax.c: Fax send not successful - result (61) The call dropped prematurely.
May 20 15:39:39 DEBUG[4850] app_txfax.c: ==============================================================================
May 20 15:39:39 DEBUG[4850] app_txfax.c: Sending UserEventFaxTransmittedMay 20 15:39:39 DEBUG[4850] app_txfax.c: execResult=0
TransmissionResult=61
May 20 15:39:39 DEBUG[4850] cdr_addon_mysql.c: cdr_mysql: inserting a CDR record.
May 20 15:39:39 DEBUG[4850] cdr_addon_mysql.c: cdr_mysql: SQL command as follows: INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid) VALUES ('2007-05-20 15:38:59','','','','from-trunk', 'SIP/ASTERISK-LINE2-09fb2618','','TxFAX','/usr/lib/asterfax/test/attachments/testpage.tif|caller',40,0,'ANSWERED',3,'','1179668337.17')
May 20 15:39:39 DEBUG[4850] chan_sip.c: update_call_counter(00XXX953XXX) - decrement call limit counter
May 20 15:39:39 NOTICE[4850] pbx_spool.c: Call completed to SIP/ASTERISK-LINE2/00XXX953XXX
So i would everythings let me think that asterfax version 1.0 or 1.1 (both tested) is causing the problem when used in automatic mode.
So do you have any ideas on this? What can cause the issue?
Best regards,
Andreas