Page 1 of 1

trunkinbound issue

PostPosted: Thu Nov 27, 2014 11:05 am
by attila.szabo
Hi all,

I have installed the latest vicibox on one server as a test.
Added CARRIER and tested outgoing calls. Made some calls, oll ok
Added DID 441xxxxxx88 and directed it to a phone.

When the incoming call hits the server I have error message:
Code: Select all
NOTICE[3080]: chan_sip.c:23691 handle_request_invite: Call from '441xxxxxx88' (ip-address:5060) to extension 's' rejected because extension not found in context 'trunkinbound'.


It must be a simple misstake, but I cant figure it out what is wrong.


I have configured CARRIER as fallows:

Account Entry:
Code: Select all
[UK-Calling]
type=friend
username=441xxxxxx88
secret=xvssssss1
host=prox???????com
insecure=port,invite
fromuser=441xxxxxx88
context=trunkinbound


Dialplan:
Code: Select all
exten => _90044.,1,AGI(agi://127.0.0.1:4577/call_log)  remove spaces
exten => _90044.,2,Dial(${TRUNK}/0${EXTEN:5},,To)
exten => _90044.,3,Hangup

exten => _0044XX.,1,AGI(agi://127.0.0.1:4577/call_log)  remove spaces
exten => _0044XX.,2,Dial(${TRUNK}/0${EXTEN:4},,To)
exten => _0044XX.,3,Hangup

exten => _XXXXXX.,1,AGI(agi://127.0.0.1:4577/call_log)  remove spaces
exten => _XXXXXX.,2,Dial(${TRUNK}/${EXTEN},,To)
exten => _XXXXXX.,3,Hangup

exten => _999,1,AGI(agi://127.0.0.1:4577/call_log)  remove spaces
exten => _999,2,Dial(${TRUNK}/${EXTEN},,To)
exten => _999,3,Hangup

exten => _112,1,AGI(agi://127.0.0.1:4577/call_log)  remove spaces
exten => _112,2,Dial(${TRUNK}/${EXTEN},,To)
exten => _112,3,Hangup

Re: trunkinbound issue

PostPosted: Fri Nov 28, 2014 1:17 am
by striker
what you have set at Registring string in carrier?

Re: trunkinbound issue

PostPosted: Fri Nov 28, 2014 4:11 am
by attila.szabo
Registration string
Code: Select all
register => 44xxxxxx88:xvsssss1@prox????????????com

Global string:
Code: Select all
TRUNK = SIP/UK-Calling

Re: trunkinbound issue

PostPosted: Fri Nov 28, 2014 11:23 pm
by striker
try the registring string as below and make a test call

register => 44xxxxxx88:xvsssss1@prox????????????com:5060/441xxxxxx88

Re: trunkinbound issue

PostPosted: Mon Dec 01, 2014 4:15 am
by attila.szabo
You are a life saver. It works. Can you explain why, so I can understand.
Later I will have incoming numbers with different DID's will that be affected?
I will have 10 trunks with about 30 DIDs
Thnaks