Re: [asterisk-users] PLAYIN MUSIC WHILE SEARCHING MYSQL
Dear Leif Madsen, Please explain more On Wed, Sep 26, 2012 at 11:31 PM, Leif Madsen wrote: > On 26/09/12 05:35 AM, Mehdi Rahimi wrote: >> >> I want to play music in my AGI while i am searching for a field in DB. >> Actually during some processes in AGI i need to play music . > > > Probably Local channels to the rescue here. > > -- > Leif Madsen > http://www.oreilly.com/catalog/asterisk > > > -- > _ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] PLAYIN MUSIC WHILE SEARCHING MYSQL
Dear All, I want to play music in my AGI while i am searching for a field in DB. Actually during some processes in AGI i need to play music . Thanks in advanced. Regards, Mehdi -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] AGI HANGUP PROBLEM
Hi Tony, Thank you for your attention , and appreciate your contribution . You are right we can not do anything till the caller hangup BUT how can we prevent to hearing DTMF when someone else is trying on another extension ? to clearance : someone calls (from landlines os mobile , no difference) and our AGI has executed and after some processes finish and hangup , but the caller has not hungup yet and till then if i pickup my extension and try to call , that caller who has not hungup the call yet can hear DTMF and that's a problem and some conflict. Regards, Mehdi On Tue, Sep 18, 2012 at 5:35 PM, Tony Mountifield wrote: > In article > , > SamyGo wrote: >> >> So basically the FXO cards configurations need to be tweaked i.e >> hanguponpolarityinverse=yes etc. >> Since this is a Hangup request initiated by the SIP client, Asterisk then >> atleast it should close all the media streams and channel should get >> deleted. >> Keeping an eye on BYE : *CLI> "sip set debug on" Then make this call and >> see if a SIP BYE method is triggered properly and appears on screen. >> More likely you need to look into you dahdi configs. >> >> Thanks, >> Sammy > > I think you are misunderstanding the OP's issue. > > Hangup on polarity reversal would only apply if Asterisk were making the > call to a phone and wanted to me informed if the phone (called party) > hung up. > > The OP's situation is different. The extension below is invoked by an > INCOMING call to Asterisk, and he is then trying to hang up that call > from the Asterisk (called) end. > > If the caller is a SIP phone, that is fine, as either end can hang up. > > Hi problem is that when the incoming call is via his FXO port, the PSTN > does not drop the call when the Asterisk end hangs up the FXO line. In > this scenario there is on SIP involved. The problem is that the PSTN > will not drop the call when the called party on an analogue line hangs > up, until after a long timeout. There is usually no solution to this. > > Cheers > Tony > >> On Tue, Sep 18, 2012 at 2:03 PM, Tony Mountifield wrote: >> >> > In article < >> > caehsoweantztyoebdobjchoeszhfk_z9sigaujsij15xx-u...@mail.gmail.com>, >> > Mehdi Rahimi wrote: >> > > Hi all, >> > > >> > > I need to handle a problem from AGI please guide me >> > > >> > > in extensions_custom.conf : >> > > >> > > exten => s,1,Answer >> > > exten => s,n,AGI(hang.php) >> > > exten => s,n,Hangup >> > > >> > > in hang.php : >> > > >> > > #!/usr/bin/php -q >> > > > > > set_time_limit(30); >> > > require('phpagi.php'); >> > > error_reporting(E_ALL); >> > > $agi = new AGI(); >> > > $agi->answer(); >> > > $agi->say_number('1'); >> > > $agi->hangup(); >> > > ?> >> > > >> > > >> > > calling from an extension has no problem but whenever i use landline >> > > or mobile it can not hangup the call and the caller has to hangup the >> > > call. >> > >> > In the UK phone network, and I suspect in many other countries too, for >> > analogue lines it is the caller who holds the call open. For example in >> > a call between two normal analogue phones, the called party can hangup >> > their phone, and then within a short while pick it up again (or another >> > phone on the same line) and the caller is still there. Hanging up the >> > called phone does not clear down the call until after quite a long >> > timeout (a couple of minutes perhaps). >> > >> > In your above example with Asterisk connected to an analogue line with an >> > FXO card, Asterisk is the called party, and is therefore unable to clear >> > down the line forcibly. This is not an Asterisk or AGI problem but a PSTN >> > one. >> > >> > Cheers >> > Tony >> > -- >> > Tony Mountifield >> > Work: t...@softins.co.uk - http://www.softins.co.uk >> > Play: t...@mountifield.org - http://tony.mountifield.org >> > >> > -- >> > _ >> > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >> > New to Asterisk? Join us for a live introductory webinar every Thurs: >> >http://www.asterisk.org/hello >> > >> > asterisk-users mailing list >> > To UNSUBSC
Re: [asterisk-users] AGI HANGUP PROBLEM
ِDear Sammy, Thank you for your following , 1- Land line i mean telco company which is calling to my server , i use FXO VOIP CARD (ATCOM 4 port) and test on a gateway too. 2-please explain me more about "Enable SIP traces and keep an eye on the originating BYE request" Regards, Mehdi On Tue, Sep 18, 2012 at 12:01 PM, SamyGo wrote: > Hi, > > Just following this thread for few days, I've some basic troubleshooting > questions for you. > 1- What do you mean by calling from landline? How is your Landline /mobile > reaching your asterisk box ? is there a Hardware card ! or a VoIP provider. > 2- Enable SIP traces and keep an eye on the originating BYE request when the > agi->hangup() is called. See if that BYE reaches to the caller ! > > I suspect its a Hardware card that is not dropping the channel and > maintaining the call with server. > > Regards, > Sammy > > > On Tue, Sep 18, 2012 at 12:49 PM, Hoggins! wrote: >> >> Hello, >> >> I experience the same problem, and I would really appreciate if someone >> could give us a hint on that. >> >> Hoggins! >> >> Le 17/09/2012 19:22, Mehdi Rahimi a écrit : >> > Hi all, >> > >> > I need to handle a problem from AGI please guide me >> > >> > in extensions_custom.conf : >> > >> > exten => s,1,Answer >> > exten => s,n,AGI(hang.php) >> > exten => s,n,Hangup >> > >> > in hang.php : >> > >> > #!/usr/bin/php -q >> > > > set_time_limit(30); >> > require('phpagi.php'); >> > error_reporting(E_ALL); >> > $agi = new AGI(); >> > $agi->answer(); >> > $agi->say_number('1'); >> > $agi->hangup(); >> > ?> >> > >> > >> > calling from an extension has no problem but whenever i use landline >> > or mobile it can not hangup the call and the caller has to hangup the >> > call. >> > if the caller does not hangup the call it becomes kind of SPY (the >> > caller can listen DTMF if someone call from an extension) >> > >> > I am using elastix 2.3.0 which has asterisk 1.8.10.0 . >> > >> > I really appreciate your sharing. >> > >> > Regards, >> > Mehdi >> > >> > -- >> > _ >> > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >> > New to Asterisk? Join us for a live introductory webinar every Thurs: >> >http://www.asterisk.org/hello >> > >> > asterisk-users mailing list >> > To UNSUBSCRIBE or update options visit: >> >http://lists.digium.com/mailman/listinfo/asterisk-users >> >> >> -- >> _ >> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >> New to Asterisk? Join us for a live introductory webinar every Thurs: >>http://www.asterisk.org/hello >> >> asterisk-users mailing list >> To UNSUBSCRIBE or update options visit: >>http://lists.digium.com/mailman/listinfo/asterisk-users > > > > -- > _ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: >http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Hangup not detected
Hi AJS, Thank you for your reply , I am using this in IRAN so please guide me what to do and and explain me more. Look forward to hearing from your side. Regards, Mehdi On Tue, Sep 18, 2012 at 11:28 AM, A J Stiles wrote: > On Tuesday 18 September 2012, Satria Anamarta wrote: >> Hi, >> I just realize in these few days there are many calls that already hangup >> but not detected by Asterisk. >> Those calls occupy PSTN lines and need to be manually terminated through >> Flash Operation Panel or phycally disconnect the PSTN lines. >> This never happen before but as long as I can remember, there are no change >> in configuration. >> >> Any ideas how to solve this? > > If you are using analogue phone lines in some country that uses a British- > style telephone system (line wires called "A" and "B", not "tip" and "ring"; > polarity reversal before ringing; double ring on incoming call), then by > design only the calling party can terminate a call once established. If > someone rings you and you hang up but they stay on the line, you will still be > connected to them if you later pick up the phone -- the call is only > disconnected once the calling party hangs up. > > Asterisk is aware of this, and takes steps to mitigate it. The fix is simply > to make sure you specify the correct country in your DAHDI configuration. > > -- > AJS > > Answers come *after* questions. > > -- > _ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: >http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] AGI HANGUP PROBLEM
Hi all, I need to handle a problem from AGI please guide me in extensions_custom.conf : exten => s,1,Answer exten => s,n,AGI(hang.php) exten => s,n,Hangup in hang.php : #!/usr/bin/php -q answer(); $agi->say_number('1'); $agi->hangup(); ?> calling from an extension has no problem but whenever i use landline or mobile it can not hangup the call and the caller has to hangup the call. if the caller does not hangup the call it becomes kind of SPY (the caller can listen DTMF if someone call from an extension) I am using elastix 2.3.0 which has asterisk 1.8.10.0 . I really appreciate your sharing. Regards, Mehdi -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] AGI problem
Hello All, I need to use agi to handle some issue , after finishing agi i want to hang up the channel , if i call from an extension there is no problem but i want to be the same for PSTN (outside) caller , if someone call asterisk show the hang up channel but the caller is not disconnected and if meanwhile someone inside try to call from an extension the outide caller can listen to DTMF and everything . . . . I would be really grateful if you share your close experience . Regards, Mehdi -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] $agi->hangup() Does not hang up the channel
This is happen whenever caller calls from mobile phone and if the caller calls from analog line i can handle with : ;exten => s,n,Playtones(congestion) ; send the audio sequence that humans understand means "congestion" ;exten => s,n,Congestion(5) ; signal the other end of congestion. Wait for hangup. and call hangs up from the telco , but it does not for mobile calls Regards, Mehdi On Mon, Sep 17, 2012 at 8:57 AM, Raj Mathur (राज माथुर) wrote: > On Monday 17 Sep 2012, Mehdi Rahimi wrote: >> I need to use agi to handle some issue , after finishing agi i want >> to hang up the channel , if i call from an extension there is no >> problem but i want to be the same for PSTN (outside) caller , if >> someone call asterisk show the hang up channel but the caller is not >> disconnected and if meanwhile someone inside try to call from an >> extension the outide caller can listen to DTMF and everything . . . >> . >> I would be really grateful if you share your close experience . > > If this is on Analog (FXO) lines then you may be out of luck. In India, > at least, the called party cannot hang up an incoming call on an analog > line -- the caller has to do it. > > In any case, what happens if you execute HangUp() in your dialplan > instead of in AGI? > > Regards, > > -- Raj > -- > Raj Mathur || r...@kandalaya.org || GPG: > http://otheronepercent.blogspot.com || http://kandalaya.org || CC68 > It is the mind that moves || http://schizoid.in || D17F > > -- > _ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: >http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] $agi->hangup() Does not hang up the channel
Thank you for your reply i did it in both ways (AGI and DIALPLAN) but not working. so you mean it is because of telco ? what about digital lines such as E1 ? Regards, Mehdi On Mon, Sep 17, 2012 at 8:57 AM, Raj Mathur (राज माथुर) wrote: > On Monday 17 Sep 2012, Mehdi Rahimi wrote: >> I need to use agi to handle some issue , after finishing agi i want >> to hang up the channel , if i call from an extension there is no >> problem but i want to be the same for PSTN (outside) caller , if >> someone call asterisk show the hang up channel but the caller is not >> disconnected and if meanwhile someone inside try to call from an >> extension the outide caller can listen to DTMF and everything . . . >> . >> I would be really grateful if you share your close experience . > > If this is on Analog (FXO) lines then you may be out of luck. In India, > at least, the called party cannot hang up an incoming call on an analog > line -- the caller has to do it. > > In any case, what happens if you execute HangUp() in your dialplan > instead of in AGI? > > Regards, > > -- Raj > -- > Raj Mathur || r...@kandalaya.org || GPG: > http://otheronepercent.blogspot.com || http://kandalaya.org || CC68 > It is the mind that moves || http://schizoid.in || D17F > > -- > _ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: >http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] $agi->hangup() Does not hang up the channel
Hello All, I need to use agi to handle some issue , after finishing agi i want to hang up the channel , if i call from an extension there is no problem but i want to be the same for PSTN (outside) caller , if someone call asterisk show the hang up channel but the caller is not disconnected and if meanwhile someone inside try to call from an extension the outide caller can listen to DTMF and everything . . . . I would be really grateful if you share your close experience . Regards, Mehdi -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users