Re: [asterisk-users] 1.6.0.5: I need a really simple analog SendFax dialplan
sean darcy wrote: > Martin wrote: >> if you're trying to send the same fax to both parties, then do >> >> exten => s,1,System() >> exten => s,2,Sendfax() >> >> step1 will spool the call to dial a number and send a fax >> step2 will transmit the fax to the incoming call >> >> Martin >> >> On Wed, Sep 23, 2009 at 7:45 PM, sean darcy wrote: >>> Martin wrote: well maybe it doesn't work as it should ... anyways like the other poster said that's not the way you use it ... either call the sendfax app directly or use "Originate" / call file spooling... BTW there should be an Originate app executable from dialplan ... But since there's none you can do exten => _X.,n,System(echo -e "Channel: SIP/num...@gateway\\ncontext: send\\nExtension: s\\nPriority: 1\\n" > /var/spool/asterisk/outgoing/call-${UNIQUEID}) and at send,s,1 call sendfax Martin On Wed, Sep 23, 2009 at 1:44 AM, sean darcy wrote: > Martin wrote: >> 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 wrote: >>> Using Digium fax I've tried a simple dialplan: >>> >>> '8447' => 1. Answer() [pbx_config] >>> 2. Set(CALLERID(num)=xxxyyy) [pbx_config] >>> 3. Dial(DAHDI/g0/1bbbccc,,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/1bbbccc,,G(send)") in new stack >>>-- Requested transfer capability: 0x00 - SPEECH >>>-- Called g0/1bbbccc >>>-- 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 [8...@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 [8...@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 >>> >>> > Well, I had RTFM :) And I've tried this, without success: > > '8447' => 1. Answer() [pbx_config] >2. Set(CALLERID(num)=xxxyyy) [pbx_config] >3. Dial(DAHDI/g0/1bbbccc,,G(send))[pbx_config] > [send]4. SendFax(/var/spool/asterisk/fax/20090922_1301.tif) > [pbx_config] >5. Wait() [pbx_config] >6. HangUp()[pbx_config] > > The dialplan didn't wait. Also tried without the HangUp(), but the > dialplan just fell through. What should priority 5 (priority + 1) be? > > Does anyone use SendFax for analog faxing? > > sean > >>> OK, I set up context [send-test] >>> dialplan show send-test >>> [ Context 'send-test' created by 'pbx_config' ] >>> 's' =>1. >>> SendFax(/var/spool/asterisk/fax/20090922_1301.tif) [pbx_config] >>> newharborpbx*CLI> >>> -= 1 extension (1 priority) in 1 context. =- >>> >>> Then I tried: >>> >>>3. Dial(DAHDI/g0/abbbccc,,G(send)) [pbx_config] >>> [send] 4. GoTo(really-send) [pbx_config] >>> [wait] 5. Wait(999) [pbx_config] >>>6. HangUp() [pbx_config] >>> [really-send] 7. System(env echo -e >>> "Channel:${CHANNEL}\\nContext:send-test\\nExtension: s\\nPriority: 1\\n" >>> >/var/spool/asterisk/outgoing/call-${UNIQUEI
Re: [asterisk-users] 1.6.0.5: I need a really simple analog SendFax dialplan
Martin wrote: > if you're trying to send the same fax to both parties, then do > > exten => s,1,System() > exten => s,2,Sendfax() > > step1 will spool the call to dial a number and send a fax > step2 will transmit the fax to the incoming call > > Martin > > On Wed, Sep 23, 2009 at 7:45 PM, sean darcy wrote: >> Martin wrote: >>> well maybe it doesn't work as it should ... anyways like the other >>> poster said that's not the way you use it ... >>> >>> either call the sendfax app directly or use "Originate" / call file >>> spooling... >>> >>> BTW there should be an Originate app executable from dialplan ... >>> But since there's none you can do >>> >>> exten => _X.,n,System(echo -e "Channel: SIP/num...@gateway\\ncontext: >>> send\\nExtension: s\\nPriority: 1\\n" > >>> /var/spool/asterisk/outgoing/call-${UNIQUEID}) >>> >>> and at send,s,1 call sendfax >>> >>> Martin >>> >>> On Wed, Sep 23, 2009 at 1:44 AM, sean darcy wrote: Martin wrote: > 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 wrote: >> Using Digium fax I've tried a simple dialplan: >> >> '8447' => 1. Answer() [pbx_config] >> 2. Set(CALLERID(num)=xxxyyy) [pbx_config] >> 3. Dial(DAHDI/g0/1bbbccc,,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/1bbbccc,,G(send)") in new stack >>-- Requested transfer capability: 0x00 - SPEECH >>-- Called g0/1bbbccc >>-- 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 [8...@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 [8...@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 >> >> Well, I had RTFM :) And I've tried this, without success: '8447' => 1. Answer() [pbx_config] 2. Set(CALLERID(num)=xxxyyy) [pbx_config] 3. Dial(DAHDI/g0/1bbbccc,,G(send))[pbx_config] [send]4. SendFax(/var/spool/asterisk/fax/20090922_1301.tif) [pbx_config] 5. Wait() [pbx_config] 6. HangUp()[pbx_config] The dialplan didn't wait. Also tried without the HangUp(), but the dialplan just fell through. What should priority 5 (priority + 1) be? Does anyone use SendFax for analog faxing? sean >> OK, I set up context [send-test] >> dialplan show send-test >> [ Context 'send-test' created by 'pbx_config' ] >> 's' =>1. >> SendFax(/var/spool/asterisk/fax/20090922_1301.tif) [pbx_config] >> newharborpbx*CLI> >> -= 1 extension (1 priority) in 1 context. =- >> >> Then I tried: >> >>3. Dial(DAHDI/g0/abbbccc,,G(send)) [pbx_config] >> [send] 4. GoTo(really-send) [pbx_config] >> [wait] 5. Wait(999) [pbx_config] >>6. HangUp() [pbx_config] >> [really-send] 7. System(env echo -e >> "Channel:${CHANNEL}\\nContext:send-test\\nExtension: s\\nPriority: 1\\n" >> >/var/spool/asterisk/outgoing/call-${UNIQUEID}) [pbx_config] >>8. Wait(99) [pbx_config] >> >> >> >> -- Executing [8...@outbound-fax:3] Dial
Re: [asterisk-users] 1.6.0.5: I need a really simple analog SendFax dialplan
if you're trying to send the same fax to both parties, then do exten => s,1,System() exten => s,2,Sendfax() step1 will spool the call to dial a number and send a fax step2 will transmit the fax to the incoming call Martin On Wed, Sep 23, 2009 at 7:45 PM, sean darcy wrote: > Martin wrote: >> well maybe it doesn't work as it should ... anyways like the other >> poster said that's not the way you use it ... >> >> either call the sendfax app directly or use "Originate" / call file >> spooling... >> >> BTW there should be an Originate app executable from dialplan ... >> But since there's none you can do >> >> exten => _X.,n,System(echo -e "Channel: SIP/num...@gateway\\ncontext: >> send\\nExtension: s\\nPriority: 1\\n" > >> /var/spool/asterisk/outgoing/call-${UNIQUEID}) >> >> and at send,s,1 call sendfax >> >> Martin >> >> On Wed, Sep 23, 2009 at 1:44 AM, sean darcy wrote: >>> Martin wrote: 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 wrote: > Using Digium fax I've tried a simple dialplan: > > '8447' => 1. Answer() [pbx_config] > 2. Set(CALLERID(num)=xxxyyy) [pbx_config] > 3. Dial(DAHDI/g0/1bbbccc,,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/1bbbccc,,G(send)") in new stack > -- Requested transfer capability: 0x00 - SPEECH > -- Called g0/1bbbccc > -- 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 [8...@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 [8...@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 > > >>> Well, I had RTFM :) And I've tried this, without success: >>> >>> '8447' => 1. Answer() [pbx_config] >>> 2. Set(CALLERID(num)=xxxyyy) [pbx_config] >>> 3. Dial(DAHDI/g0/1bbbccc,,G(send)) [pbx_config] >>> [send] 4. SendFax(/var/spool/asterisk/fax/20090922_1301.tif) >>> [pbx_config] >>> 5. Wait() [pbx_config] >>> 6. HangUp() [pbx_config] >>> >>> The dialplan didn't wait. Also tried without the HangUp(), but the >>> dialplan just fell through. What should priority 5 (priority + 1) be? >>> >>> Does anyone use SendFax for analog faxing? >>> >>> sean >>> > > OK, I set up context [send-test] > dialplan show send-test > [ Context 'send-test' created by 'pbx_config' ] > 's' => 1. > SendFax(/var/spool/asterisk/fax/20090922_1301.tif) [pbx_config] > newharborpbx*CLI> > -= 1 extension (1 priority) in 1 context. =- > > Then I tried: > > 3. Dial(DAHDI/g0/abbbccc,,G(send)) [pbx_config] > [send] 4. GoTo(really-send) [pbx_config] > [wait] 5. Wait(999) [pbx_config] > 6. HangUp() [pbx_config] > [really-send] 7. System(env echo -e > "Channel:${CHANNEL}\\nContext:send-test\\nExtension: s\\nPriority: 1\\n" > >/var/spool/asterisk/outgoing/call-${UNIQUEID}) [pbx_config] > 8. Wait(99) [pbx_config] > > > > -- Executing [8...@outbound-fax:3] Dial("Console/dsp", > "DAHDI/g0/abbbccc,,G(send)") in new stack > -- Requested transfer capability: 0x00 - SPEECH > -- Called g0/abbbccc > -- DAHDI/1-1 is
Re: [asterisk-users] 1.6.0.5: I need a really simple analog SendFax dialplan
just forget about the dial(a,G()) approach ... you already posted that it doesn't work ... either call sendfax on the 1st step to send fax to the channel that called in to asterisk or use that call to trigger sending a fax with originate/system Martin On Wed, Sep 23, 2009 at 7:45 PM, sean darcy wrote: > Martin wrote: >> well maybe it doesn't work as it should ... anyways like the other >> poster said that's not the way you use it ... >> >> either call the sendfax app directly or use "Originate" / call file >> spooling... >> >> BTW there should be an Originate app executable from dialplan ... >> But since there's none you can do >> >> exten => _X.,n,System(echo -e "Channel: SIP/num...@gateway\\ncontext: >> send\\nExtension: s\\nPriority: 1\\n" > >> /var/spool/asterisk/outgoing/call-${UNIQUEID}) >> >> and at send,s,1 call sendfax >> >> Martin >> >> On Wed, Sep 23, 2009 at 1:44 AM, sean darcy wrote: >>> Martin wrote: 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 wrote: > Using Digium fax I've tried a simple dialplan: > > '8447' => 1. Answer() [pbx_config] > 2. Set(CALLERID(num)=xxxyyy) [pbx_config] > 3. Dial(DAHDI/g0/1bbbccc,,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/1bbbccc,,G(send)") in new stack > -- Requested transfer capability: 0x00 - SPEECH > -- Called g0/1bbbccc > -- 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 [8...@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 [8...@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 > > >>> Well, I had RTFM :) And I've tried this, without success: >>> >>> '8447' => 1. Answer() [pbx_config] >>> 2. Set(CALLERID(num)=xxxyyy) [pbx_config] >>> 3. Dial(DAHDI/g0/1bbbccc,,G(send)) [pbx_config] >>> [send] 4. SendFax(/var/spool/asterisk/fax/20090922_1301.tif) >>> [pbx_config] >>> 5. Wait() [pbx_config] >>> 6. HangUp() [pbx_config] >>> >>> The dialplan didn't wait. Also tried without the HangUp(), but the >>> dialplan just fell through. What should priority 5 (priority + 1) be? >>> >>> Does anyone use SendFax for analog faxing? >>> >>> sean >>> > > OK, I set up context [send-test] > dialplan show send-test > [ Context 'send-test' created by 'pbx_config' ] > 's' => 1. > SendFax(/var/spool/asterisk/fax/20090922_1301.tif) [pbx_config] > newharborpbx*CLI> > -= 1 extension (1 priority) in 1 context. =- > > Then I tried: > > 3. Dial(DAHDI/g0/abbbccc,,G(send)) [pbx_config] > [send] 4. GoTo(really-send) [pbx_config] > [wait] 5. Wait(999) [pbx_config] > 6. HangUp() [pbx_config] > [really-send] 7. System(env echo -e > "Channel:${CHANNEL}\\nContext:send-test\\nExtension: s\\nPriority: 1\\n" > >/var/spool/asterisk/outgoing/call-${UNIQUEID}) [pbx_config] > 8. Wait(99) [pbx_config] > > > > -- Executing [8...@outbound-fax:3] Dial("Console/dsp", > "DAHDI/g0/abbbccc,,G(send)") in new stack > -- Requested transfer capability: 0x00 - SPEECH > -- Called g0/abbb
Re: [asterisk-users] 1.6.0.5: I need a really simple analog SendFax dialplan
Martin wrote: > well maybe it doesn't work as it should ... anyways like the other > poster said that's not the way you use it ... > > either call the sendfax app directly or use "Originate" / call file > spooling... > > BTW there should be an Originate app executable from dialplan ... > But since there's none you can do > > exten => _X.,n,System(echo -e "Channel: SIP/num...@gateway\\ncontext: > send\\nExtension: s\\nPriority: 1\\n" > > /var/spool/asterisk/outgoing/call-${UNIQUEID}) > > and at send,s,1 call sendfax > > Martin > > On Wed, Sep 23, 2009 at 1:44 AM, sean darcy wrote: >> Martin wrote: >>> 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 wrote: Using Digium fax I've tried a simple dialplan: '8447' => 1. Answer() [pbx_config] 2. Set(CALLERID(num)=xxxyyy) [pbx_config] 3. Dial(DAHDI/g0/1bbbccc,,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/1bbbccc,,G(send)") in new stack -- Requested transfer capability: 0x00 - SPEECH -- Called g0/1bbbccc -- 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 [8...@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 [8...@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 >> Well, I had RTFM :) And I've tried this, without success: >> >> '8447' => 1. Answer() [pbx_config] >>2. Set(CALLERID(num)=xxxyyy) [pbx_config] >>3. Dial(DAHDI/g0/1bbbccc,,G(send))[pbx_config] >> [send]4. SendFax(/var/spool/asterisk/fax/20090922_1301.tif) >> [pbx_config] >>5. Wait() [pbx_config] >>6. HangUp()[pbx_config] >> >> The dialplan didn't wait. Also tried without the HangUp(), but the >> dialplan just fell through. What should priority 5 (priority + 1) be? >> >> Does anyone use SendFax for analog faxing? >> >> sean >> OK, I set up context [send-test] dialplan show send-test [ Context 'send-test' created by 'pbx_config' ] 's' =>1. SendFax(/var/spool/asterisk/fax/20090922_1301.tif) [pbx_config] newharborpbx*CLI> -= 1 extension (1 priority) in 1 context. =- Then I tried: 3. Dial(DAHDI/g0/abbbccc,,G(send)) [pbx_config] [send] 4. GoTo(really-send) [pbx_config] [wait] 5. Wait(999) [pbx_config] 6. HangUp() [pbx_config] [really-send] 7. System(env echo -e "Channel:${CHANNEL}\\nContext:send-test\\nExtension: s\\nPriority: 1\\n" >/var/spool/asterisk/outgoing/call-${UNIQUEID}) [pbx_config] 8. Wait(99) [pbx_config] -- Executing [8...@outbound-fax:3] Dial("Console/dsp", "DAHDI/g0/abbbccc,,G(send)") in new stack -- Requested transfer capability: 0x00 - SPEECH -- Called g0/abbbccc -- DAHDI/1-1 is proceeding passing it to Console/dsp -- DAHDI/1-1 is ringing -- DAHDI/1-1 is making progress passing it to Console/dsp -- DAHDI/1-1 is making progress passing it to Console/dsp -- DAHDI/1-1 answered Console/dsp -- Executing [8...@outbound-fax:4] Goto("Console/dsp", "really-send") in new stack -- Goto (outbound-fax,8447,7) -- Executing [8...@outbound-fax:7] System("Con
Re: [asterisk-users] 1.6.0.5: I need a really simple analog SendFax dialplan
Well 1.6.2 is not yet released - it's rc2 now of course the app is somewhere ... since it's very easy to code ... actually it should have been added at the time when originate was added to CLI ... it's a pity someone who added cli originate did not think about writing a few more lines for originate app Martin On Wed, Sep 23, 2009 at 11:00 AM, Jared Smith wrote: > On Wed, 2009-09-23 at 10:17 -0500, Martin wrote: >> BTW there should be an Originate app executable from dialplan ... >> But since there's none you can do > > There is an Originate application, but it's only available in newer > versions of Asterisk. (I know I have it on the 1.6.2 branch, but I > don't remember if it's available on the 1.6.1 branch. I know it's not > available on the 1.6.0 branch.) > > > -- > Jared Smith > Training Manager > Digium, Inc. > > > ___ > -- 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 > ___ -- 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
Re: [asterisk-users] 1.6.0.5: I need a really simple analog SendFax dialplan
On Wed, 2009-09-23 at 10:17 -0500, Martin wrote: > BTW there should be an Originate app executable from dialplan ... > But since there's none you can do There is an Originate application, but it's only available in newer versions of Asterisk. (I know I have it on the 1.6.2 branch, but I don't remember if it's available on the 1.6.1 branch. I know it's not available on the 1.6.0 branch.) -- Jared Smith Training Manager Digium, Inc. ___ -- 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
Re: [asterisk-users] 1.6.0.5: I need a really simple analog SendFax dialplan
well maybe it doesn't work as it should ... anyways like the other poster said that's not the way you use it ... either call the sendfax app directly or use "Originate" / call file spooling... BTW there should be an Originate app executable from dialplan ... But since there's none you can do exten => _X.,n,System(echo -e "Channel: SIP/num...@gateway\\ncontext: send\\nExtension: s\\nPriority: 1\\n" > /var/spool/asterisk/outgoing/call-${UNIQUEID}) and at send,s,1 call sendfax Martin On Wed, Sep 23, 2009 at 1:44 AM, sean darcy wrote: > Martin wrote: >> 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 wrote: >>> Using Digium fax I've tried a simple dialplan: >>> >>> '8447' => 1. Answer() [pbx_config] >>> 2. Set(CALLERID(num)=xxxyyy) [pbx_config] >>> 3. Dial(DAHDI/g0/1bbbccc,,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/1bbbccc,,G(send)") in new stack >>> -- Requested transfer capability: 0x00 - SPEECH >>> -- Called g0/1bbbccc >>> -- 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 [8...@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 [8...@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 >>> >>> > > Well, I had RTFM :) And I've tried this, without success: > > '8447' => 1. Answer() [pbx_config] > 2. Set(CALLERID(num)=xxxyyy) [pbx_config] > 3. Dial(DAHDI/g0/1bbbccc,,G(send)) [pbx_config] > [send] 4. SendFax(/var/spool/asterisk/fax/20090922_1301.tif) > [pbx_config] > 5. Wait() [pbx_config] > 6. HangUp() [pbx_config] > > The dialplan didn't wait. Also tried without the HangUp(), but the > dialplan just fell through. What should priority 5 (priority + 1) be? > > Does anyone use SendFax for analog faxing? > > 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 > ___ -- 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
Re: [asterisk-users] 1.6.0.5: I need a really simple analog SendFax dialplan
On Wednesday 23 September 2009 01:44:31 sean darcy wrote: > Does anyone use SendFax for analog faxing? > Yes. I have two contexts as follows: [outbound] exten => _X.,1,Dial(DAHDI/G2/${EXTEN}) [sendfax] exten => s,1,SendFAX(${FAXFILE}) exten => h,n,Hangup() When I want to send a fax, I initiate a call from a call file or the AMI using a local channel. Channel: Local/s...@sendfax Exten: Context: outbound Priority: 1 -- Anthony - http://messinet.com - http://messinet.com/~amessina/gallery 8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E signature.asc Description: This is a digitally signed message part. ___ -- 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
Re: [asterisk-users] 1.6.0.5: I need a really simple analog SendFax dialplan
Martin wrote: > 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 wrote: >> Using Digium fax I've tried a simple dialplan: >> >> '8447' => 1. Answer() [pbx_config] >> 2. Set(CALLERID(num)=xxxyyy) [pbx_config] >> 3. Dial(DAHDI/g0/1bbbccc,,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/1bbbccc,,G(send)") in new stack >>-- Requested transfer capability: 0x00 - SPEECH >>-- Called g0/1bbbccc >>-- 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 [8...@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 [8...@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 >> >> Well, I had RTFM :) And I've tried this, without success: '8447' => 1. Answer() [pbx_config] 2. Set(CALLERID(num)=xxxyyy) [pbx_config] 3. Dial(DAHDI/g0/1bbbccc,,G(send))[pbx_config] [send]4. SendFax(/var/spool/asterisk/fax/20090922_1301.tif) [pbx_config] 5. Wait() [pbx_config] 6. HangUp()[pbx_config] The dialplan didn't wait. Also tried without the HangUp(), but the dialplan just fell through. What should priority 5 (priority + 1) be? Does anyone use SendFax for analog faxing? 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
Re: [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 wrote: > Using Digium fax I've tried a simple dialplan: > > '8447' => 1. Answer() [pbx_config] > 2. Set(CALLERID(num)=xxxyyy) [pbx_config] > 3. Dial(DAHDI/g0/1bbbccc,,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/1bbbccc,,G(send)") in new stack >-- Requested transfer capability: 0x00 - SPEECH >-- Called g0/1bbbccc >-- 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 [8...@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 [8...@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 > ___ -- 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