Page 1 of 1

inbound calls not routed to PBX ,

PostPosted: Thu Aug 22, 2013 4:12 pm
by kashif javaid
Hello ,
I am a new bee and i am following the paid version of vicidial manager manual 2.4 .

I am trying to make an inbound group pointing to a DID . but when i make call i never see any logs in my asterisk -r logs and my calls never hit the pbx .

if i follow the manual even on 1st section B i cant log in to agent as there is a campaign required for that and manager manual does not tell about that ... William please help . you always say to follow the manual but manual for me is not working ..

Please tell me how to find what specs i am using .

ViciBox.i686-4.0.3.preload.iso

my trunk is registered fine and i can make outbound calls . its just with inbound i am not having any sort of luck . Please help me :idea:

Re: inbound calls not routed to PBX ,

PostPosted: Thu Aug 22, 2013 11:50 pm
by deficit
hello,

IS your DID provided by the same sip provider as your trunk?..
Does your DID provider require a registration in order for them to send the call to your server?
Or do you just have to tell them your IP and they send the call to the IP address you provide them?

Re: inbound calls not routed to PBX ,

PostPosted: Fri Aug 23, 2013 4:17 am
by kashif javaid
Hello we are sip service provider , but we are trying to setup a vicidial setup for a small inbound call center for a side buisness .
yes DID provided by same SIP provider , yes the trunk is registered and i can see on both asterisk and on the service provider end , the call is routed to the trunk and not to the IP address .

Re: inbound calls not routed to PBX ,

PostPosted: Fri Aug 23, 2013 5:04 am
by striker
post your sip setting used in vicidial.

go to asterisk cli "asteirsk -vvvr"

then make a test call, you can see some call flow, copy andpaste the result here

Re: inbound calls not routed to PBX ,

PostPosted: Fri Aug 23, 2013 5:32 am
by kashif javaid
thanks alot striker for a prompt reply .

when i Dial in i dont have any sip logs as i believe there is no translation found for DID to ingroup .. if you want i can paste dialout results here

Re: inbound calls not routed to PBX ,

PostPosted: Fri Aug 23, 2013 6:46 am
by kashif javaid
[Aug 23 07:37:25] -- Executing [07411973213@default:1] AGI("SIP/201-00000000 ", "agi://127.0.0.1:4577/call_log") in new stack
[Aug 23 07:37:25] -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Aug 23 07:37:25] -- Executing [07411973212@default:2] Dial("SIP/201-00000000", "SIP/NumIN/07411973212||tTor") in new stack
[Aug 23 07:37:25] -- Called NumIN/07411973213
[Aug 23 07:37:28] -- SIP/NumIN-00000001 is making progress passing it to SIP/201-00000000
[Aug 23 07:37:34] == Spawn extension (default, 07411973213, 2) exited non-zero on 'SIP/201-00000000'
[Aug 23 07:37:34] -- Executing [h@default:1] DeadAGI("SIP/201-00000000", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0-----CANCEL--------- -") in new stack
[Aug 23 07:37:34] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI -----NODEBUG-----0-----CANCEL---------- completed, returning 0




register => T-M*******:****@********/T-M****


[NumIN]
disallow=all
allow=ulaw
allow=alaw
type=peer
username=********
secret=********
host=*****
context=trunkinbound
insecure=port


also the time zone on my vicidial admin is of USA but i am in UK .. i had set up according to UK but dont know wht is it showing me this thing

Re: inbound calls not routed to PBX ,

PostPosted: Fri Aug 23, 2013 9:14 am
by kashif javaid
My service provider tell me this thing , my call is hitting the trunk and its not matching the dial plan .

his reply :
No, it's because it's not matching your dial plan.
You are responding with a 407 authentication request which in Asterisk-land usually means you haven't matched the invite to any dial plan entry.

Re: inbound calls not routed to PBX ,

PostPosted: Fri Aug 23, 2013 11:04 am
by striker
try insecure=invite in your sip settings
and then post full log of a call

Re: inbound calls not routed to PBX ,

PostPosted: Mon Aug 26, 2013 4:37 am
by kashif javaid
chan_sip.c:15804 handle_request_invite: Call from 'T-M******' to extension 's' rejected because extension not found.

Re: inbound calls not routed to PBX ,

PostPosted: Mon Aug 26, 2013 5:03 am
by kashif javaid
why is the call not hitting the .X_ and looking for s extension which is not in extensions.conf

Re: inbound calls not routed to PBX ,

PostPosted: Mon Aug 26, 2013 6:51 am
by kashif javaid
VERSION: 2.8-378c BUILD: 130822-0656

Re: inbound calls not routed to PBX ,

PostPosted: Mon Aug 26, 2013 11:37 am
by striker
your provider not sending the DID number

if so then add below dialplan under trunkinbound
[trunkinbound]
exten => s,1,AGI(agi-DID_route.agi)

Re: inbound calls not routed to PBX ,

PostPosted: Wed Aug 28, 2013 4:08 am
by kashif javaid
hi Striker ,

Although my SiP Provider is sending me DID , my did is not being extracted by the Vicidial , I am not sure why is that not happening , I can do it manually using the sip header to take the number out but that would be a dirty method , why is vicidial not doing by itself , as in simple astersik installation everything is working smoothly , Please can you clarify why is that happening

[Aug 28 05:06:18] -- Executing [s@trunkinbound:1] AGI("SIP/NumIN-00000088", "agi-DID_route.agi") in new stack
[Aug 28 05:06:18] -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-DID_route.agi
[Aug 28 05:06:18] -- AGI Script agi-DID_route.agi completed, returning 0
[Aug 28 05:06:18] -- Executing [9998811112@default:1] Wait("SIP/NumIN-00000088", "2") in new stack
[Aug 28 05:06:20] -- Executing [9998811112@default:2] Answer("SIP/NumIN-00000088", "") in new stack
[Aug 28 05:06:20] -- Executing [9998811112@default:3] Playback("SIP/NumIN-00000088", "ss-noservice") in new stack
[Aug 28 05:06:20] -- <SIP/NumIN-00000088> Playing 'ss-noservice' (language 'en')
[Aug 28 05:06:23] == Spawn extension (default, 9998811112, 3) exited non-zero on 'SIP/NumIN-00000088'
[Aug 28 05:06:23] -- Executing [h@default:1] DeadAGI("SIP/NumIN-00000088", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
[Aug 28 05:06:23] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0

Re: inbound calls not routed to PBX ,

PostPosted: Thu Aug 29, 2013 5:50 am
by striker
try this and let us know the result
register => T-M*******:****@********/DIDNO


[NumIN]
disallow=all
allow=ulaw
allow=alaw
type=peer
username=********
fromuser=username
secret=********
host=*****
context=trunkinbound
insecure=port

Re: inbound calls not routed to PBX ,

PostPosted: Mon Sep 16, 2013 11:22 am
by kashif javaid
hello Striker ,

Thanks for your help , It worked for me by taking the number from sip header in extensions.conf file .

a small help i am using as told before vicibox 4.0 preload .

I need to send email from vicidial , although mail going fine to gmail but treated as spam for other server which have a tight spf policy and treated as spam becuase i dont have fqdn .

I have seen one of your post regarding using gmail and postfix , my problem is i am not sure to install ssmtp and postfix in OpenSuse as this is the OS used for Vicibox preload

Could you please help me i shall be very thankful