Page 1 of 1

Why LIVE CALL before picked up phone?

PostPosted: Wed Mar 30, 2016 8:55 am
by areon
Hello all!
Please tell me about LIVE CALL. Why, while i do manual dial, if call success was send to phone client, label "LIVE CALL" was enable, but i hearing beeps.
How to make the label LIVE CALL is displayed only when the client picked up the phone? While there are beeps, let it comes "Waiting for Ring...".

My config:
1) VERSION OF VICIDIAL
VERSION: 2.12-523a
2) LOADAVG
0-5%
3) SERVER SPECS
RAM-2GB/HDD 40G/1CPU – 1GHZ
4) CODECS USED
ULAW,ALAW,GSM
5) VOIP OR PSTN
Sip trunk
6) OS
CENTOS 6.6 -2.6.32-504.30.3.EL6.X86_64
ALL IN ONE SERVER.
Install Method = Manual by striker24x7.blogspot

Re: Why LIVE CALL before picked up phone?

PostPosted: Sun Apr 10, 2016 8:34 pm
by MJCoate
Hello,

It could be that your dialplan is answering the line via the loopback before sending out the call. What is the full dialplan you are using to place calls?

Re: Why LIVE CALL before picked up phone?

PostPosted: Mon Apr 11, 2016 9:18 am
by areon
My account entry:

[kyivstar]
host=89.162.254.10
fromdomain = 193.93.14.244
fromuser= 0532625556
port= 5060
type=friend
qualify=yes
context = default
dtmfmode = rfc2833
disallow =all
allow = ulaw,alaw
insecure= port,invite


My dialplan:
[default]

;Входящая группа
exten => 0532625556,1,AGI(agi-DID_route.agi,,tT)
exten => 0532625556,n,Hangup()

exten => 0532625550,1,AGI(agi-DID_route.agi,,tT)
exten => 0532625550,n,Hangup()

;exten => 0532625556,1,Dial(IAX2/ast1@ast0/3000,60,tT)
;exten => 0532625556,n,Hangup()

exten => 3000,1,Dial(IAX2/ast1@ast0/3000,60,tT)
exten => 3000,n,Hangup()

exten => _10XX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _10XX,n,Dial(SIP/${EXTEN},60,rtTo)
exten => _10XX,n,Hangup()

;Все операторы
exten => _XXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _XXXXXXXXXX,n,SET(CALLERID(all)=0532625556)
exten => _XXXXXXXXXX,n,Dial(SIP/kyivstar/${EXTEN},60,tTg)
exten => _XXXXXXXXXX,n,Dial(IAX2/ASTplay@ASTplay/9991234560,60,tT)
exten => _XXXXXXXXXX,n,Hangup()

;Все операторы с кодом 38
exten => _38XXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _38XXXXXXXXXX,n,SET(CALLERID(all)=0532625556)
exten => _38XXXXXXXXXX,n,Dial(SIP/kyivstar/${EXTEN:2},60,tTg)
exten => _38XXXXXXXXXX,n,Dial(IAX2/ASTplay@ASTplay/9991234560,60,tT)
exten => _38XXXXXXXXXX,n,Hangup()

;Звонки сам на себя - сообщение До свидания
exten=> _XXXXX.,1,AGI(agi://127.0.0.1:4577/call_log)
exten=> _XXXXX.,n,Dial(IAX2/ASTplay@ASTplay/9991234560,60,tT)
exten=> _XXXXX.,n,Hangup()


exten => 0672154200,1,AGI(agi://127.0.0.1:4577/call_log)
;same => n,SET(CALLERID(all)=0532625556)
;same => n,Dial(SIP/kyivstar/${EXTEN},60,tT)
;same => n,Dial(IAX2/ASTplay@ASTplay/9991234566,60,tT)
same => n,Dial(IAX2/ast1@ast0/${EXTEN},60,tTo)
same => n,Hangup()

Re: Why LIVE CALL before picked up phone?

PostPosted: Mon Apr 11, 2016 6:10 pm
by mflorell
It could also be the carrier sending an Answer signal while the call is still ringing. We have seen this happen to several clients, and switching to a different carrier fixed the issue.

Re: Why LIVE CALL before picked up phone?

PostPosted: Mon Apr 11, 2016 10:43 pm
by williamconley
Plus there's this:
Code: Select all
exten => _38XXXXXXXXXX,n,Dial(SIP/kyivstar/${EXTEN:2},60,tTg)
exten => _38XXXXXXXXXX,n,Dial(IAX2/ASTplay@ASTplay/9991234560,60,tT)

If the original call fails, this next dial command kicks in. It could be playing your beeps. And it could be answering the line.

You have an awful lot of customizations in your extensions.conf that would suggest you've been modifying things you probably shouldn't. LOL

Of course, Matt is very right, though. There have been a lot of carriers who "false answer" and invoice you for fake calls. A second (and THIRD!) carrier is always recommended even if they are expensive and used solely for troubleshooting call quality and technical issues such as this.