[asterisk-users] Is channel local what I need?
sean darcy
seandarcy2 at gmail.com
Sun Sep 27 14:26:14 CDT 2009
On 1.6.0.16-rc1:
I'm using app_fax.so to send a fax, and then send a confirm.
'send' => 1.
Set(UniqueFile=/var/spool/asterisk/outgoing/call-${UNIQUEID}) [pbx_config]
2. System(env echo -e
"Channel:DAHDI/g0/........\\nContext:fax-tx\\nExtension: s\\nPriority:
1\\n" >${UniqueFile}) [pbx_config]
[ Context 'fax-tx' created by 'pbx_config' ]
's' => 1. SendFAX(${FaxFile}.tif)
[pbx_config]
'h' => 1. Set(RID=${REMOTESTATIONID})
[pbx_config]
..................
7. Set(GLOBAL(StatusFile)=${StatusFile})
[pbx_config]
8.
Set(UniqueFile=/var/spool/asterisk/outgoing/call-${UNIQUEID}0) [pbx_config]
9. System(env echo -e
"Channel:DAHDI/g0/...........\\nContext:fax-confirm-tx\\nExtension:
s\\nPriority: 1\\n" >${UniqueFile}) [pbx_config]
The first fax goes through, but the status fax dies:
-- Executing [h at fax-tx:9] System("DAHDI/1-1", "env echo -e
"Channel:DAHDI/g0/...........\\nContext:fax-confirm-tx\\nExtension:
s\\nPriority: 1\\n" >/var/spool/asterisk/outgoing/call-1254077933.390")
in new stack
-- Hungup 'DAHDI/1-1'
[Sep 27 14:59:24] NOTICE[8413]: pbx_spool.c:357 attempt_thread: Call
completed to DAHDI/g0/..............
-- Attempting call on DAHDI/g0/............. for s at fax-confirm-tx:1
(Retry 1)
-- Requested transfer capability: 0x00 - SPEECH
> Channel DAHDI/1-1 was answered.
-- Executing [s at fax-confirm-tx:1] SendFAX("DAHDI/1-1",
"/var/spool/asterisk/tmp/fax-tx-status-20090927_1459.tif") in new stack
[Sep 27 15:00:57] WARNING[8433]: app_fax.c:178 phase_e_handler: Error
transmitting fax. result=2: Timed out waiting for initial communication.
I'm also the receiving side. The first fax rings and is answered. The
status fax never rings.
Now I think the problem is that I'm in channel DAHDI/1-1, but that
channel has been hungup.
So...I tried:
9. Dial(local/s at transfer-to-confirm/n) [pbx_config]
[ Context 'transfer-to-confirm' created by 'pbx_config' ]
's' => 1. NoOp(YooHoo) [pbx_config]
2. Set(UniqueFile=/var/spool/asterisk/outgoing/call-${UNIQUEID})
[pbx_config]
3. NoOp(YooHoo2) [pbx_config]
4. System(env echo -e
"Channel:DAHDI/g0/.........\\nContext:fax-confirm-tx\\nExtension:
s\\nPriority: 1\\n" >${UniqueFile}) [pbx_config]
But that just dies:
-- Executing [h at fax-tx:9] Dial("DAHDI/1-1",
"local/s at transfer-to-confirm/n") in new stack
-- Called s at transfer-to-confirm/n
== Spawn extension (fax-tx, h, 9) exited non-zero on 'DAHDI/1-1'
-- Hungup 'DAHDI/1-1'
[Sep 27 15:17:41] NOTICE[8607]: pbx_spool.c:357 attempt_thread: Call
completed to DAHDI/g0/12036378447
-- Executing [s at transfer-to-confirm:1]
NoOp("Local/s at transfer-to-confirm-fdda;2", "YooHoo") in new stack
And that's it. It never executes priority 2, or anything else.
sean
More information about the asterisk-users
mailing list