Well, I can help you with the phpagi script, but if you are working with Zap
channels you can use something in your zapata.conf like this in order to try
to detect disconection/answer/pickup:

busydetect=yes
busycount=4
callprogress=yes
progzone=us ; if you are using another zone it maybe won't work, just try
hanguponpolarityswitch=yes


In order to record the conversation you can use something like this in your
extension.conf

exten => 888,1,MixMonitor(/path/to/some/dir/AsteriskMix.wav)
exten => 888,n,Dial(YourTechnologie/number)
exten => 888,n,StopMixMonitor()
exten => 888,n,Hangup()

On Sun, Jun 22, 2008 at 6:53 AM, Arun Kumar Chaudhary <
[EMAIL PROTECTED]> wrote:

>
>
> ---------- Forwarded message ----------
> From: Arun Kumar Chaudhary <[EMAIL PROTECTED]>
> Date: Sat, Jun 21, 2008 at 4:51 PM
> Subject: Detection of Answer, hangup,busy etc while using Dial command
> To: [EMAIL PROTECTED]
>
>
> Hi Guys,
> I am in kanpur, India.
> I am using Dial() command in my phpagi script. I am unable to detect
> whether it is connected to the dialed number, if the call is picked up, if
> the called person disconnects the call, or the line is busy. On the asterisk
> CLI it show native bridging started.
> I also need to record the discussion. That is someone call my server. I
> connect him to someone else... and now I wand to record this discussion.
> Dial command uses option "wW" to record but it doesn't work.
>
> If anybody have answer  of my question plz mail me. I will be really
> thnkful to you guys.
>
> Sincerely
> Arun Chaudhary
>
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>



-- 
Nacho
Linux Counter #156439
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to