[asterisk-users] 1.6.0.5: I need a really simple analog SendFax dialplan
Martin
asterisklist at callthem.info
Wed Sep 23 10:17:47 CDT 2009
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/number at 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 <seandarcy2 at gmail.com> 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 <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
>
>
> _______________________________________________
> -- 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
>
More information about the asterisk-users
mailing list