Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Wed Apr 24, 2024 2:25 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Why answer, wait, in deadagi
PostPosted: Mon Apr 13, 2009 12:42 am 
Offline

Joined: Sat Mar 28, 2009 11:31 am
Posts: 101
Hi;

What it does to write the Wait, 2? What the 2 mean?
And why to use (Wait,2) in the first and then using it again after the DeadAGI?

Last issue: the hangup will be done before caller hangup?? So why to use it?

[a2billing]
; CallingCard application
exten => _X.,1,Answer
exten => _X.,2,Wait,2
exten => _X.,3,DeadAGI,a2billing.php
exten => _X.,4,Wait,2
exten => _X.,5,Hangup

Regards
Bilal


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 13, 2009 10:05 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
It's a sample dialplan, modify it to suit your own requirements.

Your particular example says,

    Answer the call,
    wait for two seconds
    send the call into A2Billing into the default AGI-Conf (Usually 1)
    At the end of the call, wait 2 seconds.
    Then hangup, just to make sure.




Joe


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 18, 2009 11:14 pm 
Offline

Joined: Mon Oct 01, 2007 10:44 pm
Posts: 230
Location: Bovey, Devon, UK
It's all about not loading the application. Don't want too many simultaneous calls at the exact instant. Be kind to your CPU


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 19, 2009 6:42 am 
Offline

Joined: Thu Oct 19, 2006 9:56 am
Posts: 300
Location: Athens, Greece
(allow me, Nik, to correct you)

Wait() is needed on most telephone networks[1]. In ISDN, SS7[2], SIP and H323, the signaling channel is different (asynchronous) to the audio one. It is much slower in data rate, also. Sometimes[3] the media (audio) path will not respond immediately to the signalling commands. So, when a call is answered, eg., we must allow 1 second (typically) for the audio path to be setup, before we send any sound in it. If we don't, the first msecs of our sound file may never be heard by the caller.


[1] we must care for /all/ the protocols used in our call path, not only the one attached to our asterisk box.
[2] SS7, AFAIK, is the only of them that has strict limits on the responsiveness of signaling. Eg. it would never allow us 3sec to "decide" on the call routing.
[3] In fact, almost always: when a call is being setup, the first ~300msec are used for echo training, where the handsets hear nothing, but the audio path is being used.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 
Voice Broadcast System


All times are UTC


Who is online

Users browsing this forum: No registered users and 14 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group