Vicidial -Inbound call error

General and Support topics relating to ViciDialNow and GoAutoDial ISO installers

Moderators: enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, s0lid

Vicidial -Inbound call error

Postby rayz01 » Tue Sep 02, 2014 7:37 am

Hey guys,

I can make outbound calls through my SIP phone but failing to receive incoming calls

The error shown on asterisk cli is

"Extension 'XXXXXXXXXX(PRI pilot no) in context 'from-pstn' from 9xxxxxxxxx(mobile no. from which I am dialing in my pilot no.)' does
not exist. Rejecting call on channel 0/1, span 1"

How do I resolve it?

Can anyone help me here on this?
rayz01
 
Posts: 12
Joined: Tue Sep 02, 2014 7:31 am

Re: Vicidial -Inbound call error

Postby geoff3dmg » Tue Sep 02, 2014 8:41 am

The context for your trunk is wrong. It needs to be 'trunkinbound' not 'from-pstn'.
Vicibox 5.03 from .iso | VERSION: 2.10-451a BUILD: 140902-0816 | Asterisk 1.8.28.2-vici | Multi-Server | Amfeltec H/W Timing Cards | No Extra Software After Installation | Dell PowerEdge 1850 | Pentium 4 'Prescott' Xenon Quad @ 3.40GHz
geoff3dmg
 
Posts: 403
Joined: Tue Jan 29, 2013 4:35 am
Location: Lancashire, UK

Re: Vicidial -Inbound call error

Postby rayz01 » Tue Sep 02, 2014 9:41 am

Even if I am using PRI, I have to set it 'trunkinbound' instead of 'from-pstn' ??

and how I am able to make outbound calls with these same settings?
rayz01
 
Posts: 12
Joined: Tue Sep 02, 2014 7:31 am

Re: Vicidial -Inbound call error

Postby geoff3dmg » Tue Sep 02, 2014 10:20 am

yes. the calls need to land in the trunkinbound context for ViciDIALs agi-DID_route.agi AGI script to catch them and route them.

Code: Select all
vicidial-1:~ # asterisk -rx'dialplan show trunkinbound'
[ Context 'trunkinbound' created by 'pbx_config' ]
  'h' =>            1. AGI(agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME}) [pbx_config]
  '_X.' =>          1. AGI(agi-DID_route.agi)                     [pbx_config]
                    2. Hangup()                                   [pbx_config]

-= 2 extensions (3 priorities) in 1 context. =-


Outbound calls originate from the default context so have full access to the asterisk/ViciDIAL dialplan, something you wouldn't want untrusted inbound calls to have.
Vicibox 5.03 from .iso | VERSION: 2.10-451a BUILD: 140902-0816 | Asterisk 1.8.28.2-vici | Multi-Server | Amfeltec H/W Timing Cards | No Extra Software After Installation | Dell PowerEdge 1850 | Pentium 4 'Prescott' Xenon Quad @ 3.40GHz
geoff3dmg
 
Posts: 403
Joined: Tue Jan 29, 2013 4:35 am
Location: Lancashire, UK

Re: Vicidial -Inbound call error

Postby rayz01 » Wed Sep 03, 2014 3:31 am

Thanks!!

As I am a newbie, would you please write me how to configure this?
rayz01
 
Posts: 12
Joined: Tue Sep 02, 2014 7:31 am

Re: Vicidial -Inbound call error

Postby geoff3dmg » Wed Sep 03, 2014 4:20 am

Trunk definitions are a 'standard' asterisk thing. There's plenty of info on the internet regarding this. For example here's the GoAutoDial page on the subject.

http://goautodial.org/projects/goautodi ... figuration
Vicibox 5.03 from .iso | VERSION: 2.10-451a BUILD: 140902-0816 | Asterisk 1.8.28.2-vici | Multi-Server | Amfeltec H/W Timing Cards | No Extra Software After Installation | Dell PowerEdge 1850 | Pentium 4 'Prescott' Xenon Quad @ 3.40GHz
geoff3dmg
 
Posts: 403
Joined: Tue Jan 29, 2013 4:35 am
Location: Lancashire, UK

Re: Vicidial -Inbound call error

Postby williamconley » Wed Sep 03, 2014 10:08 am

rayz01 wrote:Even if I am using PRI, I have to set it 'trunkinbound' instead of 'from-pstn' ??

and how I am able to make outbound calls with these same settings?

1) Outbound calls are generated by Vicidial in the 'default' context of 'extensions.conf' because that's how Vicidial works. Inbound calls arrive at the context of 'extensions.conf' that they authenticate to, which depends on the configuration of the carrier. In this case, your carrier is not SIP, so it will not be authenticating at all (and not defined in sip.conf). Ordinarily, however, a sip account entry will have "context=trunkinbound" to direct calls for each carrier (in the Account Entry field).

2) Since you are using a PRI, you'll need to modify the configuration file of whatever hardware you are using (such as chan_dahdi.conf) to be context=trunkinbound instead of context=from-pstn.

3) Alternately, because it would be fun, you COULD modify extensions.conf and duplicate the [trunkinbound] context and name the new one [from-pstn]. But this would be overwritten during any upgrade. You could do it in a custom dialplan entry to survive upgrade.

Happy Hunting newbie! 8-)

looking for trunkinbound discussions: google "vicidial with pri context trunkinbound"
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20253
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Vicidial -Inbound call error

Postby striker » Wed Sep 03, 2014 11:20 am

change context=from-pstn to context=trunkinbound in vi /etc/asterisk/chan_dahdi.so
(if digium card configured with dahdi_genconf command then it will be vi /etc/asterisk/dahdi-channels.conf)


then use the below dialpaln in vi /etc/asterisk/extensions.conf under default context as show below. to make outgoing calls.

[default]

exten => _9X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9X.,2,Dial(DAHDI/g0/${EXTEN:1},,tTo)
exten => _9X.,3,Hangup
www.striker24x7.com www.youtube.com/c/striker24x7 Telegram/skype id : striker24x7
striker
 
Posts: 962
Joined: Sun Jun 06, 2010 10:25 am

Re: Vicidial -Inbound call error

Postby rayz01 » Thu Sep 04, 2014 8:26 am

Thanks for your support guys but Iam listening the same error message again.

Maybe you can give me your mailID so that I may send you error screenshots and discuss more about it
rayz01
 
Posts: 12
Joined: Tue Sep 02, 2014 7:31 am

Re: Vicidial -Inbound call error

Postby rayz01 » Mon Sep 22, 2014 10:11 am

I am failing to receive incoming calls

Here is what it is shown on CLI

[Sep 22 20:34:48] -- Accepting call from '9200080808' to '07886660666' on channel 0/1, span 1
[Sep 22 20:34:48] -- Executing [07886660666@trunkinbound:1] AGI("DAHDI/1-1", "agi-DID_route.agi") in new stack
[Sep 22 20:34:48] -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-DID_route.agi
[Sep 22 20:34:48] -- AGI Script agi-DID_route.agi completed, returning 0
[Sep 22 20:34:48] -- Executing [99909*9***DID@default:1] Answer("DAHDI/1-1", "") in new stack
[Sep 22 20:34:48] -- Executing [99909*9***DID@default:2] AGI("DAHDI/1-1", "agi-VDAD_ALL_inbound.agi") in new stack
[Sep 22 20:34:48] -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_inbound.agi
[Sep 22 20:34:48] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Sep 22 20:34:48] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Sep 22 20:34:50] WARNING[23078]: res_musiconhold.c:692 get_mohbyname: Music on Hold class 'default' not found
[Sep 22 20:34:50] WARNING[23078]: res_musiconhold.c:692 get_mohbyname: Music on Hold class 'default' not found
[Sep 22 20:34:53] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Sep 22 20:34:53] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Sep 22 20:34:53] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Sep 22 20:34:53] -- Playing 'generic_hold' (escape_digits=) (sample_offset 0)
[Sep 22 20:34:59] WARNING[23078]: res_musiconhold.c:692 get_mohbyname: Music on Hold class 'default' not found
[Sep 22 20:34:59] WARNING[23078]: res_musiconhold.c:692 get_mohbyname: Music on Hold class 'default' not found
[Sep 22 20:35:02] == Parsing '/etc/asterisk/manager.conf': [Sep 22 20:35:02] Found
[Sep 22 20:35:02] == Manager 'sendcron' logged on from 127.0.0.1
[Sep 22 20:35:02] == Parsing '/etc/asterisk/manager.conf': [Sep 22 20:35:02] Found
[Sep 22 20:35:02] == Manager 'sendcron' logged on from 127.0.0.1
[Sep 22 20:35:02] == Manager 'sendcron' logged off from 127.0.0.1
[Sep 22 20:35:03] == Manager 'sendcron' logged off from 127.0.0.1
[Sep 22 20:35:07] == Parsing '/etc/asterisk/manager.conf': [Sep 22 20:35:07] Found
[Sep 22 20:35:07] == Manager 'sendcron' logged on from 127.0.0.1
[Sep 22 20:35:07] == Manager 'sendcron' logged off from 127.0.0.1
[Sep 22 20:35:08] -- Channel 0/1, span 1 got hangup request, cause 16
[Sep 22 20:35:08] == Spawn extension (default, 99909*9***DID, 2) exited non-zero on 'DAHDI/1-1'
[Sep 22 20:35:08] -- Executing [h@default:1] DeadAGI("DAHDI/1-1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16---------------") in new stack
[Sep 22 20:35:08] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
rayz01
 
Posts: 12
Joined: Tue Sep 02, 2014 7:31 am

Re: Vicidial -Inbound call error

Postby geoff3dmg » Tue Sep 23, 2014 3:03 am

Have you set a DID up in the ViciDIAL admin that matches '07886660666'? If so where are you routing it?
Vicibox 5.03 from .iso | VERSION: 2.10-451a BUILD: 140902-0816 | Asterisk 1.8.28.2-vici | Multi-Server | Amfeltec H/W Timing Cards | No Extra Software After Installation | Dell PowerEdge 1850 | Pentium 4 'Prescott' Xenon Quad @ 3.40GHz
geoff3dmg
 
Posts: 403
Joined: Tue Jan 29, 2013 4:35 am
Location: Lancashire, UK

Re: Vicidial -Inbound call error

Postby rayz01 » Sat Oct 04, 2014 1:56 pm

Thank you, now I am able to view incoming calls on screen but failing to route it properly.

Yes I have set up DD that matches '07886660666' and routed it to In-Group wherein I have assigned agents, but even if agents are logged in, incoming call is not routed to any agent but caller hear recorded message saying - "Your call is very important to us, please wait while we transfer your call to next available agent".

I am on test to my PRI, no agents are assigned any task, they all are just logged in then why is this happening?
rayz01
 
Posts: 12
Joined: Tue Sep 02, 2014 7:31 am

Re: Vicidial -Inbound call error

Postby rayz01 » Sat Oct 04, 2014 1:57 pm

here is what it is seen in CLi

Code: Select all
[Oct  4 16:43:51]     -- Accepting call from '9981928992' to '07886660666' on ch                                                                             annel 0/1, span 1
[Oct  4 16:43:51]     -- Executing [07886660666@trunkinbound:1] AGI("DAHDI/1-1",                                                                              "agi-DID_route.agi") in new stack
[Oct  4 16:43:51]     -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-DID_r                                                                             oute.agi
[Oct  4 16:43:51]     -- AGI Script agi-DID_route.agi completed, returning 0
[Oct  4 16:43:51]     -- Executing [99909*9***DID@default:1] Answer("DAHDI/1-1",                                                                              "") in new stack
[Oct  4 16:43:51]     -- Executing [99909*9***DID@default:2] AGI("DAHDI/1-1", "a                                                                             gi-VDAD_ALL_inbound.agi") in new stack
[Oct  4 16:43:51]     -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_                                                                             ALL_inbound.agi
[Oct  4 16:43:51]     -- Playing 'sip-silence' (escape_digits=) (sample_offset 0                                                                             )
[Oct  4 16:43:51]     -- Playing 'sip-silence' (escape_digits=) (sample_offset 0                                                                             )
[Oct  4 16:43:53] WARNING[24366]: res_musiconhold.c:692 get_mohbyname: Music on                                                                              Hold class 'default' not found
[Oct  4 16:43:53] WARNING[24366]: res_musiconhold.c:692 get_mohbyname: Music on                                                                              Hold class 'default' not found
[Oct  4 16:43:56]     -- Playing 'sip-silence' (escape_digits=) (sample_offset 0                                                                             )
[Oct  4 16:43:56]     -- Playing 'sip-silence' (escape_digits=) (sample_offset 0                                                                             )
[Oct  4 16:43:56]     -- Playing 'sip-silence' (escape_digits=) (sample_offset 0                                                                             )
[Oct  4 16:43:56]     -- Playing 'generic_hold' (escape_digits=) (sample_offset                                                                              0)
[Oct  4 16:44:01]   == Parsing '/etc/asterisk/manager.conf': [Oct  4 16:44:01] F                                                                             ound
[Oct  4 16:44:01]   == Manager 'sendcron' logged on from 127.0.0.1
[Oct  4 16:44:01]   == Parsing '/etc/asterisk/manager.conf': [Oct  4 16:44:01] F                                                                             ound
[Oct  4 16:44:01]   == Manager 'sendcron' logged on from 127.0.0.1
[Oct  4 16:44:01]   == Manager 'sendcron' logged off from 127.0.0.1
[Oct  4 16:44:01]     -- Channel 0/1, span 1 got hangup request, cause 16
[Oct  4 16:44:02]   == Spawn extension (default, 99909*9***DID, 2) exited non-ze                                                                             ro on 'DAHDI/1-1'
[Oct  4 16:44:02]     -- Executing [h@default:1] DeadAGI("DAHDI/1-1", "agi://127                                                                             .0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16---------------") in new s                                                                             tack
[Oct  4 16:44:02]     -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI                                                                             -----NODEBUG-----16--------------- completed, returning 0
[Oct  4 16:44:02]     -- Hungup 'DAHDI/1-1'
[Oct  4 16:44:02]   == Manager 'sendcron' logged off from 127.0.0.1
rayz01
 
Posts: 12
Joined: Tue Sep 02, 2014 7:31 am


Return to ViciDialNow - GoAutoDial

Who is online

Users browsing this forum: No registered users and 97 guests

cron