[asterisk-users] 1.6.0.5: I need a really simple analog SendFax dialplan
sean darcy
seandarcy2 at gmail.com
Wed Sep 23 01:44:31 CDT 2009
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 <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
>>
>>
Well, I had RTFM :) And I've tried this, without success:
'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. Wait(999999999999) [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
More information about the asterisk-users
mailing list