For a remote asterisk system, I have a situation where I need to take a FXO port off-hook, so that the telco will route incoming calls to other lines in the hunt group. I do not have the option to quickly remove the cable, so am looking for a method to keep it off-hook, then manually place it on hook at a later time.
In my case I have 4 FXO ports: DAHDI 32-34, and (as an example for DAHDI/32) I have used the command:
asterisk -rx "channel originate DAHDI/32 extension 6001@from-internal"
Where in <extensions.conf> 6001 is set as a queue to park the call
include => Queues
exten => 6001,1,Queue(holdqueue)
exten => 6001,2,Hangup()
From /etc/asterisk/queues.conf I added the holdqueue
member => SIP/0001
What I am seeing is that the does park in the holdqueue and the FXO line is confirmed off-hook, but then after 20 sec I see ABANDON in queue_log and it returns on-hook. From the /var/log/asterisk/full output I see this:
VERBOSE pbx.c: -- Executing [6001@from-internal:1] Queue("DAHDI/32-1", "holdqueue") in new stack
VERBOSE res_musiconhold.c: -- Started music on hold, class 'default', on DAHDI/32-1
VERBOSE res_musiconhold.c: -- Stopped music on hold on DAHDI/32-1
VERBOSE pbx.c: == Spawn extension (from-internal, 6001, 1) exited non-zero on 'DAHDI/32-1'
VERBOSE sig_analog.c: -- Hanging up on 'DAHDI/32-1'
VERBOSE chan_dahdi.c: -- Hungup 'DAHDI/32-1'
Is the "Spawn extension...." indicating a normal hangup event? If so what could be initiating the hang-up?
As described above, the goal is to make sure the telco cannot send calls to a specific trunk, which will force it to other members in the hunt. Any ideas on how to keep the FXO port off-hook? or are there other methods to accomplish the same result, such a attempting to dialout, but then pausing forever.... or any other suggestions or ideas would be appreciated.
Thanks for your review of problem