When calling in autodial-mode, the call is connected but is hung up after ca 3 seconds. Manual calls work fine. There is sound coming through when autodialing...
These are my carrier settings and dialplan:
[phonera]
disallow=all
allow=gsm
allow=ulaw
type=peer
dtmfmode=rfc2833
context=trunkoutbound
qualify=yes
insecure=very
nat=yes
host=HOST
username=USER
secret=PASSWORD
Dialplan
exten => _00X!,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _00X!,2,Dial(sip/${EXTEN}@SIPTRUNK,55,o)
exten => _00X!,3,Hangup
Asterisk -r output (replaced phonenr, ip etc):
[Jun 12 11:02:02] -- Executing [MYPHONENUMBER@default:1] AGI("Local/MYPHONENUMBER@default-58ad,2", "agi://127.0.0.1:4577/call_log") in new stack
[Jun 12 11:02:02] -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Jun 12 11:02:02] -- Executing [MYPHONENUMBER@default:2] Dial("Local/MYPHONENUMBER@default-58ad,2", "sip/MYPHONENUMBER@SIPTRUNK|55|o") in new stack
[Jun 12 11:02:02] -- Called MYPHONENUMBER@SIPTRUNK
[Jun 12 11:02:07] == Parsing '/etc/asterisk/manager.conf': [Jun 12 11:02:07] Found
[Jun 12 11:02:07] == Manager 'sendcron' logged on from 192.168.1.1
[Jun 12 11:02:07] == Manager 'sendcron' logged off from 192.168.1.1
[Jun 12 11:02:10] -- SIP/SIPTRUNK-00000004 is ringing
[Jun 12 11:02:19] -- SIP/SIPTRUNK-00000004 answered Local/MYPHONENUMBER@default-58ad,2
[Jun 12 11:02:19] > Channel Local/MYPHONENUMBER@default-58ad,1 was answered.
[Jun 12 11:02:19] -- Executing [8368@default:1] Playback("Local/MYPHONENUMBER@default-58ad,1", "sip-silence") in new stack
[Jun 12 11:02:19] -- <Local/MYPHONENUMBER@default-58ad,1> Playing 'sip-silence' (language 'en')
[Jun 12 11:02:19] WARNING[5588]: file.c:1297 waitstream_core: Unexpected control subclass '-1'
[Jun 12 11:02:19] -- Executing [8368@default:2] AGI("Local/MYPHONENUMBER@default-58ad,1", "agi://127.0.0.1:4577/call_log") in new stack
[Jun 12 11:02:19] -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Jun 12 11:02:19] -- Executing [8368@default:3] AGI("Local/MYPHONENUMBER@default-58ad,1", "agi-VDAD_ALL_outbound.agi|NORMAL-----LB") in new stack
[Jun 12 11:02:19] -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_outbound.agi
[Jun 12 11:02:20] -- AGI Script agi-VDAD_ALL_outbound.agi completed, returning 0
[Jun 12 11:02:20] -- Executing [8368@default:4] AGI("Local/MYPHONENUMBER@default-58ad,1", "agi-VDAD_ALL_outbound.agi|NORMAL-----LB") in new stack
[Jun 12 11:02:20] -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_outbound.agi
[Jun 12 11:02:21] == Manager 'sendcron' logged off from 192.168.1.1
[Jun 12 11:02:21] -- AGI Script agi-VDAD_ALL_outbound.agi completed, returning 0
[Jun 12 11:02:21] -- Executing [8368@default:5] Hangup("Local/MYPHONENUMBER@default-58ad,1", "") in new stack
[Jun 12 11:02:21] == Spawn extension (default, 8368, 5) exited non-zero on 'Local/MYPHONENUMBER@default-58ad,1'
[Jun 12 11:02:21] -- Executing [h@default:1] DeadAGI("Local/MYPHONENUMBER@default-58ad,1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16---------------") in new stack
[Jun 12 11:02:22] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
[Jun 12 11:02:22] -- Executing [h@default:1] DeadAGI("Local/MYPHONENUMBER@default-58ad,2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----20-----3") in new stack
[Jun 12 11:02:23] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... --20-----3 completed, returning 0
[Jun 12 11:02:23] == Spawn extension (default, MYPHONENUMBER, 2) exited non-zero on 'Local/MYPHONENUMBER@default-58ad,2'
Any ideas?
Regards
Petr