I have reading over the forum searching for DID and inbound problems.Most of them seems to fix their issue,but im not figuring out.
I have configured an In-Group with this settings:
Group ID: GrupiInbound
Group Name: Backoffice
Group Color: red
Active: Y
Next Agent Call: oldest_call_finish
Fronter Display: Y
Script: NONE
Get Call Launch: NONE
Then i configured a DID :
DID Extension: 0662280497
DID Description: 0662280497
Active: Y
DID Route: IN_GROUP
In-Group ID: GrupiInbound
In-Group Call Handle Method: CID
In-Group Agent Search Method: LB
In-Group Phone Code: 1
Then i configured a Carried with these settings:
Carrier ID: inboundcarrier
Carrier Name:inboundcarrier
Carrier Description:
Admin User Group:
Registration String:
register => 0662280497:XXXXXXXXX@servervoip:5060
Template ID:
Account Entry:
[inb]
host=servervoip
context=trunkinbound
type=friend
qualify=1000
dtmfmode=rfc2833
canreinvite=no
allow=ulaw
port=5060
nat=no
Protocol:
Globals String:
Dialplan Entry:
Server IP: 192.168.0.x
Active: Y
When i recieve a call i see on the asterisk CLI this message :
NOTICE[2442]: chan_sip.c:23712 handle_request_invite: Call from 'inb' (84.233.228.149:5060) to extension 's' rejected because extension not found in context 'trunkinbound'.
I have read on the forum that i have to change a line one extensions.conf
- Code: Select all
[trunkinbound]
; DID call routing process
; exten => _XXXXXXXXXX,1,AGI(agi-DID_route.agi) ; use this one instead of the one below if you are having delay issues, and match to number of
received digits
;exten => _X.,1,AGI(agi-DID_route.agi)
exten => _s,1,AGI(agi-DID_route.agi) ;( i have added this one)
exten => _s.,n,Hangup()
-- Executing [s@trunkinbound:1] AGI("SIP/inb-0000048d", "agi-DID_route.agi") in new stack
[Feb 11 10:28:31] -- Launched AGI Script /usr/share/asterisk/agi-bin/agi-DID_route.agi
[Feb 11 10:28:31] -- <SIP/inb-0000048d>AGI Script agi-DID_route.agi completed, returning 0
[Feb 11 10:28:31] -- Auto fallthrough, channel 'SIP/inb-0000048d' status is 'UNKNOWN'
[Feb 11 10:28:31] -- Executing [h@trunkinbound:1] AGI("SIP/inb-0000048d", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
[Feb 11 10:28:31] -- <SIP/inb-0000048d>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
[Feb 11 10:28:31] -- <Local/10545282254@default-0000053a;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
[Feb 11 10:28:32] -- Got SIP response 486 "Busy Here" back from 151.80.19.63:5060
Im not finding where the problem might be.This number recieves calls when i register it on a softphone directly.
Any suggestion ?