sean darcy
2009-Sep-23 00:32 UTC
[asterisk-users] 1.6.0.5: I need a really simple analog SendFax dialplan
Using Digium fax I've tried a simple dialplan: '8447' => 1. Answer() [pbx_config] 2. Set(CALLERID(num)=xxxyyyzzzz) [pbx_config] 3. Dial(DAHDI/g0/1bbbcccdddd,,G(send)) [pbx_config] [send] 4. SendFax(/var/spool/asterisk/fax/20090922_1301.tif) [pbx_config] 5. HangUp() But I doesn't work. It executes hangup: "DAHDI/g0/1bbbcccdddd,,G(send)") in new stack -- Requested transfer capability: 0x00 - SPEECH -- Called g0/1bbbcccdddd -- DAHDI/1-1 is proceeding passing it to SIP/173-b55f7448 -- DAHDI/1-1 is ringing -- DAHDI/1-1 is making progress passing it to SIP/173-b55f7448 -- DAHDI/1-1 is making progress passing it to SIP/173-b55f7448 -- DAHDI/1-1 answered SIP/173-b55f7448 -- Executing [8447 at outbound-fax:4] SendFAX("SIP/173-b55f7448", "/var/spool/asterisk/fax/20090922_1301.tif") in new stack -- Channel 'SIP/173-b55f7448' sending fax '/var/spool/asterisk/fax/20090922_1301.tif' -- Channel 'SIP/173-b55f7448' fax session '16' started -- Executing [8447 at outbound-fax:5] Hangup("DAHDI/1-1", "") in new stack == Spawn extension (outbound-fax, 8447, 5) exited non-zero on 'DAHDI/1-1' -- Hungup 'DAHDI/1-1' -- Channel 'SIP/173-b55f7448' fax session '16', [ 000.003512 ], STAT_EVT_STRT_TX st: IDLE rt: IDLENSTX So why does it hangup before completing the fax? Does anyone have a SendFax dialplan that works for an analog channel? Thanks for any help. sean
Martin
2009-Sep-23 01:45 UTC
[asterisk-users] 1.6.0.5: I need a really simple analog SendFax dialplan
from RTFM G(context^exten^pri) - If the call is answered, transfer the calling party to the specified priority and the called party to the specified priority+1. Optionally, an extension, or extension and context may be specified. Otherwise, the current extension is used. You cannot use any additional action post answer options in conjunction with this option. your priority+1 is Hangup ... is that it ? Martin On Tue, Sep 22, 2009 at 7:32 PM, sean darcy <seandarcy2 at gmail.com> wrote:> Using Digium fax I've tried a simple dialplan: > > '8447' => 1. Answer() [pbx_config] > 2. Set(CALLERID(num)=xxxyyyzzzz) [pbx_config] > 3. Dial(DAHDI/g0/1bbbcccdddd,,G(send)) [pbx_config] > [send] 4. SendFax(/var/spool/asterisk/fax/20090922_1301.tif) [pbx_config] > 5. HangUp() > > But I doesn't work. It executes hangup: > > "DAHDI/g0/1bbbcccdddd,,G(send)") in new stack > -- Requested transfer capability: 0x00 - SPEECH > -- Called g0/1bbbcccdddd > -- DAHDI/1-1 is proceeding passing it to SIP/173-b55f7448 > -- DAHDI/1-1 is ringing > -- DAHDI/1-1 is making progress passing it to SIP/173-b55f7448 > -- DAHDI/1-1 is making progress passing it to SIP/173-b55f7448 > -- DAHDI/1-1 answered SIP/173-b55f7448 > -- Executing [8447 at outbound-fax:4] SendFAX("SIP/173-b55f7448", > "/var/spool/asterisk/fax/20090922_1301.tif") in new stack > -- Channel 'SIP/173-b55f7448' sending fax > '/var/spool/asterisk/fax/20090922_1301.tif' > -- Channel 'SIP/173-b55f7448' fax session '16' started > -- Executing [8447 at outbound-fax:5] Hangup("DAHDI/1-1", "") in new stack > == Spawn extension (outbound-fax, 8447, 5) exited non-zero on 'DAHDI/1-1' > -- Hungup 'DAHDI/1-1' > -- Channel 'SIP/173-b55f7448' fax session '16', [ 000.003512 ], > STAT_EVT_STRT_TX st: IDLE rt: IDLENSTX > > > > So why does it hangup before completing the fax? > > Does anyone have a SendFax dialplan that works for an analog channel? > > Thanks for any help. > > sean > > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > AstriCon 2009 - October 13 - 15 Phoenix, Arizona > Register Now: http://www.astricon.net > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >