Hi, I am trying to get a call to drop back to voice mail on timeout after I originate it to the pstn via voip.  I cannot use call_timeout since all outbound calls use early media, if I disable early media, then I get not ring back tone.  So I am thinking something like sched_hangup, then use an execute on answer to disable the hangup, unsched_api or sched_del.  I do not know if this is the best way to do this.  I am having trouble getting the task_id from the sched_hangup so I can later delete it.  Any suggestions would be most welcome.  For now, I would like to accomplish this in the dial plan. 
 
<action application="sched_hangup" data="+30 alloted_timeout"/>
 
 
Darcy Primrose