Page 1 of 1

Inbound problem

PostPosted: Wed Oct 10, 2012 4:05 pm
by mumin37
Hey,

I've got a big problem to configure inbound.

I've read the Manager's Manual and i followed it step by step.

When I log to asterisk i can see the information:
Code: Select all
NOTICE[3136]: chan_sip.c:15566 handle_request_invite: Call from 'my_sip_login' to extension 'przychodzace1' rejected because extension not found.


so I think, that my carrier is correct (outbound calls also work).

I've logged as an agent to the campaign, chosen the group called 'przychodzace1' and nothing else happen when I make a test call. Asterisk notice as above.

Can anyone help ?


My configuration:
Vicibox 3.15 from .iso (64bit)| Vicidial VERSION: 2.6-375a BUILD: 120831-1523 | Asterisk 1.4.39.2-vici | Single Server | No Digium/Sangoma Hardware | No Extra Software After Installation

Re: Inbound problem

PostPosted: Thu Oct 11, 2012 2:40 am
by jmathew
put this under [default] in /etc/asterisk/extensions.conf

[default]
exten => przychodzace1,1,AGI(agi-DID_route.agi)

do a sip reload, or restart astersik and check for calls.

hope this helps.

Re: Inbound problem

PostPosted: Thu Oct 11, 2012 3:17 pm
by mumin37
I've added that code to extensions.conf and now there is no asterisk notice or active call. My call from mobile is disconnected immediately.

Re: Inbound problem

PostPosted: Fri Oct 12, 2012 12:20 am
by jmathew
post your /etc/asterisk/extensions.conf and /etc/asterisk/sip.conf

Re: Inbound problem

PostPosted: Tue Oct 23, 2012 6:32 am
by mumin37
Hi,

Thanks for helping, but the problem was in voip provider.

Re: Inbound problem

PostPosted: Wed Oct 24, 2012 5:09 am
by mumin37
Hi,

I've got other problem with inbound.

Configuration to extensions.conf - added

Campaign settings: Allow Inbound and blended : Y
Campaign settings: Allowed Inbound Groups: przychodzace
Campaign settings: Default Transfer Group: przychodzace
Campaign settings: Allowed Transfer Groups: przychodzace
Campaign settings: Dial Method: Inbound_man

Ingroup and DID configured like on my friend's server (where inbound is working)

When I log into campaign, I select ingroup and submit.

When I ring Asterisk says:
Code: Select all
[2012-10-24 12:04:19]     -- Executing [przychodzace@extravoip:1] Dial("SIP/extravoip-in1-0000157d", "SIP/100|45|Tt") in new stack
[2012-10-24 12:04:19] WARNING[3509]: app_dial.c:1310 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
[2012-10-24 12:04:19]   == Everyone is busy/congested at this time (1:0/0/1)
[2012-10-24 12:04:19]   == Auto fallthrough, channel 'SIP/extravoip-in1-0000157d' status is 'CHANUNAVAIL'
[2012-10-24 12:04:19]     -- Executing [h@extravoip:1] Hangup("SIP/extravoip-in1-0000157d", "") in new stack
[2012-10-24 12:04:19]   == Spawn extension (extravoip, h, 1) exited non-zero on 'SIP/extravoip-in1-0000157d'



Can anyone tell me what am I doing wrong ?

Re: Inbound problem

PostPosted: Thu Nov 08, 2012 11:16 am
by GaD
Dunno if you're still having this problem but, post your trunk (carrier) settings. Also, you do realize that you are calling an extension 'number': przychodzace, which is fine in asterisk but you will have some trouble dialing this from other systems external to this server. Additionally..., where are you calling this number from?

Re: Inbound problem

PostPosted: Thu Nov 08, 2012 1:04 pm
by mumin37
Hi, there is my all configuration now:

Carrier:
Code: Select all
Carrier name: inbound
registration string: register =>login:password@sip.extravoip.pl/inbound

Account Entry(from my voip provider):
[inbound]
type=peer
host=79.133.193.90
port=5060
canreinvite=no
dtmfmode=rfc2833
nat=no
disallow=all
allow=alaw
allow=ulaw
allow=g729
rtptimeout=60
dtmfmode=RFC2833
context=extravoip

Protocol: SIP

Globals String: inbound = SIP/inbound



my sip.conf from /etc/asterisk is default file from vicibox iso with added:

Code: Select all
[default]
exten => inbound,1,AGI(agi-DID_route.agi)


I've done the inbound configuration with manager's manual, and when I log to the campaign and choose inbound group, I ring from my mobile to asterisk and I can see that info:
Code: Select all
[2012-11-08 19:02:15] NOTICE[3327]: chan_sip.c:15566 handle_request_invite: Call from 'inbound' to extension 'inbound' rejected because extension not found.

Re: Inbound problem

PostPosted: Thu Nov 08, 2012 1:54 pm
by GaD
You are using the wrong contxt in the trunk. You've set "context=extravoip" as the landing point of the trunk, you are setting inbound as part of the default context. You have two options. land the trunk in the default context (which I STRONGLY discourage you to do as this is very, very dangerous from a security standpoint) or create a context [extravoip] where you set the extension as you just pointed it out in your last post. What I sould STRONGLY encourage you to do is to land the trunk in the trunkinbound context and use the Vici's web interface to create the inbound route of your liking.

Re: Inbound problem

PostPosted: Thu Nov 08, 2012 8:35 pm
by williamconley
never make direct changes to the ".conf" files.

use "context=trunkinbound" in all "account entry" fields of all carrier settings. "context=" is not used for outbound calling, only inbound. All inbound calls should be handled by Vicidial ... so all "account entry" settings should include "context=trunkinbound", regardless of what they are for, to avoid any inbound calls being routed anywhere other than your DID menu in the Vicidial GUI where you can control their handling.

Re: Inbound problem

PostPosted: Tue Nov 13, 2012 4:24 am
by mumin37
Thanks, I've solved a problem.