Thanks, i will add priority and see the results.
On 29 November 2012 17:00, Danny Nicholas <da...@debsinc.com> wrote: > Priority is a required parameter. In your call file you are telling > Asterisk to **** > > > Channel: DAHDI/g0/0312xxxxxxx > > MaxRetries: 0 > > RetryTime: 60 > > Context: asteriskgw_fax > > Extension: s > Go to context asteriskgw_fax, extension s. Priority tells Asterisk where > to start in asteriskgw_fax. Since C would assume 0 and contexts start with > 1, priority: 1 tells it to go to line 1. Another use for this would be to > tell Asterisk to start further down to skip a wait or something.**** > > Sample:**** > > [asteriskgw_fax]**** > > Exten => s,1,answer()**** > > Exten => s,n,wait(5)**** > > Exten => s,n,playback(sending-fax)**** > > ** ** > > You could use priority 1 for DAHDI to compensate for PSTN delays and > priority 3 for SIP calls.**** > > ** ** > > *From:* asterisk-users-boun...@lists.digium.com [mailto: > asterisk-users-boun...@lists.digium.com] *On Behalf Of *Necati Demir > *Sent:* Thursday, November 29, 2012 8:50 AM > *To:* Asterisk Users Mailing List - Non-Commercial Discussion > *Subject:* Re: [asterisk-users] Disappearing Call Files / Two threads > dealing with my call files**** > > ** ** > > ** ** > > Should I use priority in call files? How the lack of priority causes this > problem?**** > > ** ** > > On 29 November 2012 12:48, Matt Riddell (lists) <li...@venturevoip.com> > wrote:**** > > There's no priority in your call file. > > Sent from my iPhone**** > > > On 29/11/2012, at 11:12 PM, Necati Demir <nde...@demir.web.tr> wrote: > > > Hello, > > > > I noticed that when i move a call file to outgoing directory, two > asterisk threads are dealing with it. > > > > ]# grep FAX_44731.call /var/log/asterisk/full.2 > > > > [Nov 27 09:23:10] WARNING[26842] pbx_spool.c: Unable to set utime on > /var/spool/asterisk/outgoing/FAX_44731.call: Operation not permitted > > [Nov 27 09:23:25] VERBOSE[18852] pbx.c: -- Executing > [s@asteriskgw_fax:1] System("DAHDI/i1/0312xxxxxxx-b08", "echo "Set: > UNIQUEID=1354000990.39861" >> /var/spool/asterisk/outgoing/FAX_44731.call") > in new stack > > [Nov 27 09:25:33] VERBOSE[18852] pbx.c: -- Executing > [s@asteriskgw_fax:3] System("DAHDI/i1/0312xxxxxxx-b08", "echo "Set: > FAXSTATUS=SUCCESS" >> /var/spool/asterisk/outgoing/FAX_44731.call") in new > stack > > [Nov 27 09:25:33] WARNING[26842] pbx_spool.c: At least one of app or > extension must be specified, along with tech and dest in file > /var/spool/asterisk/outgoing/FAX_44731.call > > [Nov 27 09:25:33] WARNING[26842] pbx_spool.c: Invalid file contents in > /var/spool/asterisk/outgoing/FAX_44731.call, deleting > > > > As you see there are two thread dealing with my call file. Now let's > inspect the thread 18852. > > > > ]# grep "\[18852\]" /var/log/asterisk/full.2 > > [Nov 27 09:23:10] VERBOSE[18852] pbx_spool.c: -- Attempting call on > DAHDI/g0/0312xxxxxxx for s@asteriskgw_fax:1 (Retry 1) > > [Nov 27 09:23:10] DEBUG[18852] sig_pri.c: sig_pri_request 5 > > [Nov 27 09:23:10] DEBUG[18852] sig_pri.c: CALLER NAME: NUM: 90312xxxxxxx > > [Nov 27 09:23:10] VERBOSE[18852] sig_pri.c: -- Requested transfer > capability: 0x00 - SPEECH > > [Nov 27 09:23:25] VERBOSE[18852] pbx.c: -- Executing > [s@asteriskgw_fax:1] System("DAHDI/i1/0312xxxxxxx-b08", "echo "Set: > UNIQUEID=1354000990.39861" >> /var/spool/asterisk/outgoing/FAX_44731.call") > in new stack > > [Nov 27 09:23:25] VERBOSE[18852] pbx.c: -- Executing > [s@asteriskgw_fax:2] SendFAX("DAHDI/i1/0312xxxxxxx-b08", > "/tmp/Qg90Ox5YGF5kYkJu.tif,zdfs") in new stack > > [Nov 27 09:23:25] VERBOSE[18852] res_fax.c: -- Channel > 'DAHDI/i1/0312xxxxxxx-b08' sending FAX: > > [Nov 27 09:23:25] VERBOSE[18852] res_fax.c: -- > /tmp/Qg90Ox5YGF5kYkJu.tif > > [Nov 27 09:25:33] VERBOSE[18852] pbx.c: -- Executing > [s@asteriskgw_fax:3] System("DAHDI/i1/0312xxxxxxx-b08", "echo "Set: > FAXSTATUS=SUCCESS" >> /var/spool/asterisk/outgoing/FAX_44731.call") in new > stack > > [Nov 27 09:25:33] VERBOSE[18852] pbx.c: -- Auto fallthrough, channel > 'DAHDI/i1/0312xxxxxxx-b08' status is 'UNKNOWN' > > [Nov 27 09:25:33] VERBOSE[18852] chan_dahdi.c: -- Hungup > 'DAHDI/i1/0312xxxxxxx-b08' > > [Nov 27 09:25:33] NOTICE[18852] pbx_spool.c: Call completed to > DAHDI/g0/0312xxxxxxx > > > > It seems that the thread 18852 executes it normally but the thread 26842 > deletes my call file. And when I inspected the asterisk log file, i saw > that the thread 26842 is deleting all my call files. > > > > Here is my custom_extensions.conf file: > > > > [asteriskgw_fax] > > exten => s,1,System(echo "Set: UNIQUEID=${CDR(uniqueid)}" >> > /var/spool/asterisk/outgoing/FAX_${ID}.call) > > exten => s,2,SendFAX(${FAXFILE},zdfs) > > exten => s,3,System(echo "Set: FAXSTATUS=${FAXSTATUS}" >> > /var/spool/asterisk/outgoing/FAX_${ID}.call) > > > > And here is a sample of call file: > > > > Channel: DAHDI/g0/0312xxxxxxx > > MaxRetries: 0 > > RetryTime: 60 > > Context: asteriskgw_fax > > Extension: s > > Set: FAXFILE=/tmp/8Mg3yihXahZVejDf.tif > > Set: ID=44884 > > Callerid: 90312xxxxxxx > > Archive: Yes > > > > > > > > -- > > Necati DEMİR > > --------------------**** > > > -- > > _____________________________________________________________________ > > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > New to Asterisk? Join us for a live introductory webinar every Thurs: > > http://www.asterisk.org/hello > > > > asterisk-users mailing list > > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users**** > > > > **** > > ** ** > > -- > Necati DEMİR > --------------------**** > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > -- Necati DEMİR --------------------
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users