Page 1 of 1

Inbound calls

PostPosted: Wed Jul 22, 2009 5:48 am
by oshonubi
Hi All,

I just installed a new vicidial system. I configured the system with the instruction in tutorial c of the administrator manual. However, I cannot receive a call in the agent interface. I have a 4 port FXO card running on vicidial 2.0.5. The FXO card is connected to my PBX extension using DID number 106.

These are my input in creating DID

DID Extension: 106
DID Description: New DID
Active: Y
DID Route: IN_GROUP
Extension:
Extension Context:
Voicemail Box:
Phone Extension:
Server IP:
User Agent:
User Unavailable Action:
User Route Settings In-Group:
In-Group ID: SALESLINE
In-Group Call Handle Method: CID
In-Group Agent Search Method: LB
In-Group List ID: 107 (I created this and its active)
In-Group Campaign ID: TEST_IN
In-Group Phone Code: 1 (default)

PostPosted: Wed Jul 22, 2009 7:47 am
by kimhoogenberg
What is your dial plan / carrier configuration?

PostPosted: Wed Jul 22, 2009 9:48 am
by oshonubi
This is my dial plan

exten => _91NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXXX,2,Dial(newsip:test@192.168.19.2:5060/${EXTEN:2},,tTor)
exten => _91NXXNXXXXXX,3,Hangup

While below is my carrier configuration

[testcarrier]
disallow=all
allow=ulaw
type=friend
username=testcarrier
secret=test
host=dynamic
dtmfmode=rfc2833
context=trunkinbound

Please let me know what could have gone wrong.

PostPosted: Wed Jul 22, 2009 9:49 am
by oshonubi
This is my dial plan

exten => _91NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXXX,2,Dial(newsip:test@192.168.19.2:5060/${EXTEN:2},,tTor)
exten => _91NXXNXXXXXX,3,Hangup

While below is my carrier configuration

[testcarrier]
disallow=all
allow=ulaw
type=friend
username=testcarrier
secret=test
host=dynamic
dtmfmode=rfc2833
context=trunkinbound

Please let me know what could have gone wrong.

PostPosted: Thu Jul 23, 2009 8:56 am
by oshonubi
Any luck?

PostPosted: Mon Aug 03, 2009 2:27 pm
by oshonubi
Hi All,

Any solution so far?

PostPosted: Tue Aug 04, 2009 9:37 am
by gardo
You need to post the messages on your Asterisk CLI when some dials in.

PostPosted: Tue Aug 04, 2009 7:44 pm
by williamconley
Please post your entire hardware/software setup with versions and any other software on the box.

Also: does this card cause activity in the CLI at all when it receives a call?

Have you tested this card with Asterisk to be sure it can make and receive calls (obviously a requirement to use it with Vicidial).

You may also look inside the Vicidial logs, as they can be quite helpful when determining where a call went and why.

PostPosted: Thu Aug 06, 2009 2:05 am
by oshonubi
Hi William and Gardo,

Thanks for the response. Please find attached my setup

1. Software : Vicidialnow Version 1.2

2. Server :HP ML 110 Dual Core 2GB RAM, 1.8GB Processor Speed

3. This is my CLI Output

Verbosity is at least 21
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
-- Starting simple switch on 'Zap/4-1'
Aug 5 06:29:20 NOTICE[18164]: callerid.c:373 callerid_feed: Unknown IE 48
== Starting Zap/4-1 at pstn_incoming1,s,1 failed so falling back to exten 's'
== Starting Zap/4-1 at pstn_incoming1,s,1 still failed so falling back to context 'default'
-- Executing AGI("Zap/4-1", "agi://127.0.0.1:4577/call_log") in new stack
-- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
-- Executing Playback("Zap/4-1", "85100011") in new stack
-- Playing '85100011' (language 'en')
-- Executing Answer("Zap/4-1", "") in new stack
-- Executing Dial("Zap/4-1", "SIP/201|10|to") in new stack
-- Called 201
-- SIP/201-0886ca50 is ringing
-- Nobody picked up in 10000 ms
-- Executing Dial("Zap/4-1", "SIP/203|10|to") in new stack
-- Called 203
-- SIP/203-08871f90 is ringing
-- Nobody picked up in 10000 ms
-- Executing Hangup("Zap/4-1", "") in new stack
== Spawn extension (default, s, 6) exited non-zero on 'Zap/4-1'
-- Executing DeadAGI("Zap/4-1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----NOANSWER----------") in new stack
-- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
-- Hungup 'Zap/4-1'
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
-- Hungup 'Zap/pseudo-2117683717'
== Spawn extension (default, 8600051, 1) exited non-zero on 'SIP/203-08842ef8'
-- Executing DeadAGI("SIP/203-08842ef8", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16---------------") in new stack
-- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
== Manager 'sendcron' logged off from 127.0.0.1
-- Hungup 'Zap/pseudo-639285336'
== Spawn extension (default, 8600053, 1) exited non-zero on 'SIP/201-0884b648'
-- Executing DeadAGI("SIP/201-0884b648", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16---------------") in new stack
-- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
-- Starting simple switch on 'Zap/4-1'
Aug 5 06:30:40 NOTICE[18713]: callerid.c:373 callerid_feed: Unknown IE 48
== Starting Zap/4-1 at pstn_incoming1,s,1 failed so falling back to exten 's'
== Starting Zap/4-1 at pstn_incoming1,s,1 still failed so falling back to context 'default'
-- Executing AGI("Zap/4-1", "agi://127.0.0.1:4577/call_log") in new stack
-- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
-- Executing Playback("Zap/4-1", "85100011") in new stack
-- Playing '85100011' (language 'en')
-- Executing Answer("Zap/4-1", "") in new stack
-- Executing Dial("Zap/4-1", "SIP/201|10|to") in new stack
-- Called 201
-- SIP/201-08842ef8 is ringing
-- SIP/201-08842ef8 answered Zap/4-1
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
== Refreshing DNS lookups.
== Manager 'sendcron' logged off from 127.0.0.1
== Spawn extension (default, s, 4) exited non-zero on 'Zap/4-1'
-- Executing DeadAGI("Zap/4-1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----37-----28") in new stack
-- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... -37-----28 completed, returning 0
-- Hungup 'Zap/4-1'
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
> Channel SIP/203-08842ef8 was answered.
-- Executing MeetMe("SIP/203-08842ef8", "8600051|F") in new stack
== Parsing '/etc/asterisk/meetme.conf': Found
-- Created MeetMe conference 1023 for conference '8600051'
-- Playing 'conf-onlyperson' (language 'en')
== Manager 'sendcron' logged off from 127.0.0.1
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1


4. This is my extensions-vicidial.conf

extensions.vicidial.conf/ dial plan entry



[vicidial-auto]
exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses ... ----------)

; Local Server: 192.168.19.21
exten => _192*168*019*021*.,1,Goto(default,${EXTEN:16},1)
; VICIDIAL Carrier: NEWSIP - ViciDial SIP carrier
exten => s,1,AGI(agi://127.0.0.1:4577/call_log)^M
exten => s,2,Playback(85100011)^M
exten => s,3,Answer()^M
exten => s,4,Dial(SIP/201,10,to)^M
exten => s,5,Dial(SIP/203,10,to)^M
exten => s,6,Hangup^M

5. However, I am using 4 FXO Card for the implementation.

6 The card is ATCOM AX-400P

7. I run ztcfg -vvvv to confirm the card is alright

8. This is my account entry in Admin---Carrier

Account Entry

[pstn_incoming]
disallow=all
allow=ulaw
type=friend
username=pstn_incoming
secret=test
host=dynamic
dtmfmode=rfc2833
context=trunkinbound

9.This is my extensions.conf

[general]
static=yes
writeprotectatatic=yes
writeprotect=no

[globals]
CONSOLE=Console/dsp ; Console interface for demo
;TRUNK=Zap/g1 ; Trunk interface
;TRUNKX=Zap/g2 ; 2nd trunk interface
;TRUNKIAX=IAX2/ASTtest1:test@10.10.10.16:4569 ; IAX trunk interface
;TRUNKIAX1=IAX2/ASTtest1:test@10.10.10.16:4569 ; IAX trunk interface
;TRUNKBINFONE=IAX2/1112223333:PASSWORD@iax.binfone.com ; IAX trunk interface
;SIPtrunk=SIP/1234:PASSWORD@sip.provider.net ; SIP trunk
SIPtrunk=SIP/201:test@192.168.19.21:5060
TRUNKloop = IAX2/ASTloop:test@127.0.0.1:40569 ; used for blind monitoring
TRUNKblind = IAX2/ASTblind:test@127.0.0.1:41569 ; used for testing

#include extensions-vicidial.conf

;[pstn_incoming]
exten => s,1,Answer()
exten => s,2,dial(SIP/204,20,tr)
exten => s,3,Hangup


[trunkinbound]
; agent dial-in:
exten => 2345,1,Answer ; Answer the line
exten => 2345,2,AGI(agi-AGENT_dial_in.agi)
exten => 2345,3,Hangup

; DID call routing process
exten => s,1,AGI(agi-DID_route.agi)

; FastAGI for VICIDIAL/astGUIclient call logging
exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses ... EBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME})



[default]
include => vicidial-auto
;include => pstn_incoming
;include => pstn_incoming1
;[pstn_incoming]
;exten => s,1,Answer()
;exten => s,2,dial(SIP/204,20,tr)
;exten => s,3,Hangup
;[pstn_incoming1]
;exten => s,1,Answer()
;exten => s,2,dial(SIP/204,20,tr)
;exten => s,3,Hangup


; Local agent alert extensions
exten => _8600XXX*.,1,AGI(agi-VDADfixCXFER.agi)
exten => _78600XXX*.,1,AGI(agi-VDADfixCXFER.agi)
; Local blind monitoring
exten => _08600XXX,1,Dial(${TRUNKblind}/6${EXTEN:1},55,To)

10. This is my DID Configuration


DID Extension: 2798125
DID Description: New DID
Active: Y
DID Route: IN_GROUP
Extension:
Extension Context:
Voicemail Box:
Phone Extension:
Server IP:
User Agent:
User Unavailable Action:
User Route Settings In-Group:
In-Group ID: SALESLINE
In-Group Call Handle Method: CID
In-Group Agent Search Method: LB
In-Group List ID: 107 (I created this and its active)
In-Group Campaign ID: TEST_IN
In-Group Phone Code: 1 (default)

Further information include:

A. I am using Zaptel Channel, do I still need SIP configuration in carrier configuration.

B. Is my configuration correct in the carrier considering the fact that I am not using SIP

[pstn_incoming]
disallow=all ********************
allow=ulaw ********************
type=friend ********************
username=pstn_incoming *********
secret=test ********************
host=dynamic ******************
dtmfmode=rfc2833 *************
context=trunkinbound ***********

C. Does the carrier configuration presently support Zap?

D. Can we configure the Zap manually and if yes where

E. Must the DID extension be up to 8 digits?

F. Must the In-group phone code be 1 or can be 234 as that is my country code

I believe these questions may also help in further configuration

Thank you very much


[/img]

PostPosted: Thu Aug 06, 2009 2:09 am
by oshonubi
Please note,

The softphone receives the call but the agent web interface does not show "LIVE CALL" This could mean the card is working well. However, there is a configuration challenge that is not allowing the agent interface to respond to the in coming call by showing "LIVE CALL"

At the same time, we cannot dial out on the same system.

Your support is very appreciate