Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Sat Apr 27, 2024 7:21 pm
Predictive Dialer


All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: How to simulate ring
PostPosted: Tue Aug 28, 2007 3:29 am 
Offline

Joined: Tue Aug 28, 2007 3:21 am
Posts: 16
Hi everyone and thanks in advance for looking at this post.
Basically what i need is to simulate a ring when the AGI is processing the call.
After a call has been place there is a long pause before the call actually gets connected to the destination network.
Is there a way to work around this?
Regards,
David


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 28, 2007 11:33 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Include an 'r' in your dial string to generate false alerting as soon as the outbound leg is attempted.

If you really need the ringing tone whilst the AGI is processing then add a 'Ringing()' to your extensions.conf before the 'DeadAGI()', but you'll only notice the difference if you are not answering the call in a2billing.conf.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 29, 2007 12:56 pm 
Offline

Joined: Tue Aug 28, 2007 3:21 am
Posts: 16
Thanks for you reply.
i have the 'r' option under Asterisk Dial Options set as you suggested.
I have set answer_call = no and added the ringing command before the DeadAGI() statement and i still have no luck on getting the ringing tone while the AGI processes the call.

Executing Wait("SIP/0319475766-09dbc8b8", "1") in new stack
-- Executing BackGround("SIP/0319475766-09dbc8b8", "pls-wait-connect-call") in new stack
-- Playing 'pls-wait-connect-call' (language 'en')
-- Executing Ringing("SIP/0319475766-09dbc8b8", "") in new stack
-- Executing DeadAGI("SIP/0319475766-09dbc8b8", "a2billing.php|1") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
a2billing.php|1: A2Billing AGI internal configuration:
a2billing.php|1: Array

Any other ideas on how to get the ringing tone while the AGI is processing the call?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 29, 2007 2:48 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
I think your Asterisk is answering the call so it can play "pls-wait-while-connect-call". It makes no sense to indicate Alerting after having already answered the call.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 30, 2007 12:33 pm 
Offline

Joined: Tue Aug 28, 2007 3:21 am
Posts: 16
i added that in order to let the client know that something was happening after the call has been dialed.
The aim is to get rid of that recording and add the ringing instead.
The time between the client finishes dialing the number and the AGI to process the dialing script is about 6 to 7 seconds. Sometimes clients think nothing is happening and they hangup and try again.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 30, 2007 1:01 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
So did you try it without the voice prompt? As I said it can't signal alerting if the call has already been answered, and to stream audio you must answer the call (early media on ISDN excepted).

It shouldn't take A2B anywhere near 6-7 seconds to process the call. Are you sure this PDD is not caused by your carrier?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 01, 2007 2:16 am 
Offline

Joined: Tue Aug 28, 2007 3:21 am
Posts: 16
i took the (pls-wait-connect-call) and i added the ringing() before the AGI command and still no luck.
basically when i please an outbound call and while logged into my asterisk server, i can see the call being processed by the AGI and while this is happening the only thing i can hear on the handest is silence for around 6-7 seconds.
I also tried making the same call through one of my freePBX extensions and the silence time reduces to only 2 seconds.
Thanks again stavros for all your help.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 01, 2007 3:01 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
I think you need to investigate why the AGI is running so slowly then. For me the AGI takes less than 1 second.

You can easily gain 1 second back by removing that Wait(1) you have in the dialplan.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 
Auto Dialer Software


All times are UTC


Who is online

Users browsing this forum: No registered users and 32 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group