Hello,
VERSION: 2.4-309a
BUILD: 110430-1642
Asterisk 1.4.39.1-vici
No hardware | multi-server setup | using goautodial.iso on three servers |
We created In-group called AGENTDIRECT and Inbound DID with DID Route: IN_GROUP
On the first run test CLI shows:
[Oct 31 11:23:09] NOTICE[30753]: chan_sip.c:15566 handle_request_invite: Call from 'voce' to extension '3034070001' rejected because extension not found.
Then I add 'context=trunkinbound' on the carrier settings
However when I did a second test CLI shows:
-- Executing [3034070001@trunkinbound:1] AGI("SIP/voce-00000103", "agi-DID_route.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-DID_route.agi
-- AGI Script Executing Application: (Monitor) Options: (wav|/var/spool/asterisk/monitor/MIX/20111031150312_3034070001_7012320000)
[Oct 31 15:03:12] ERROR[12341]: utils.c:967 ast_carefulwrite: write() returned error: Broken pipe
[Oct 31 15:03:12] ERROR[12341]: utils.c:967 ast_carefulwrite: write() returned error: Broken pipe
-- AGI Script agi-DID_route.agi completed, returning 0
-- Executing [99909*3***DID@default:1] Answer("SIP/voce-00000103", "") in new stack
-- Executing [99909*3***DID@default:2] AGI("SIP/voce-00000103", "agi-VDAD_ALL_inbound.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_inbound.agi
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- AGI Script agi-VDAD_ALL_inbound.agi completed, returning 0
-- Executing [99909*3***DID@default:3] Hangup("SIP/voce-00000103", "") in new stack
== Spawn extension (default, 99909*3***DID, 3) exited non-zero on 'SIP/voce-00000103'
-- Executing [h@default:1] DeadAGI("SIP/voce-00000103", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16---------------") in new stack
-- AGI Script
agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
How can I fix this? I followed the Manager Manual on Tutorial E
Carrier Settings:
[xxx]
type=friend
host=xx.xx.xxx.xx
canreinvite=no
disallow=all
allow=g729
allow=ulaw
allow=alaw
dtmfmode=rfc2833
qualify=yes
context=trunkinbound
Dialplan:
exten => _91NXXNXXXXXX,1,AGI(
agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXXX,2,Dial(${SIPxxx}/${EXTEN:1},,tTor)
exten => _91NXXNXXXXXX,3,Hangup
How can I successfully do inbound calls?