Re: [asterisk-users] php programming for working with asterisk

2013-01-14 Thread Muhammad
*thanks to replay Sammy! But excatly I don't know how can do it! connecting to DB via dialplan. ** * On Mon, Jan 14, 2013 at 11:08 AM, SamyGo govoi...@gmail.com wrote: Hi, If your caller is using softphone then you can create a simple dialplan which consults a DB and verifies that the

Re: [asterisk-users] php programming for working with asterisk

2013-01-14 Thread Johan Wilfer
2013-01-14 09:43, Muhammad skrev: /thanks to replay Sammy! But excatly I don't know how can do it! connecting to DB via dialplan. Here is a good example explaining this: http://astbook.asteriskdocs.org/en/2nd_Edition/asterisk-book-html-chunk/getting_funky.html It's written for asterisk 1.4,

Re: [asterisk-users] php programming for working with asterisk

2013-01-14 Thread SamyGo
Hi, Johan has referred you to a very good resource for doing that. Alternatively you can achieve this all by making an AGI in your preferred language. Thanks, Sammy On Mon, Jan 14, 2013 at 2:01 PM, Johan Wilfer li...@jttech.se wrote: It's written for asterisk 1.4, but I think that will get

[asterisk-users] block one number in incoming calls

2013-01-14 Thread Salaheddine Elharit
Hello list could you please help me about one question. i have asterisk 1.4 installed, i configure the inbound call in my asterisk like below. exten = 520xx,1,Dial(SIP/224, 30). when the customer call my number (520xx) the sip phone 224 works without issue my problem i

Re: [asterisk-users] block one number in incoming calls

2013-01-14 Thread Danny Nicholas
I would suggest this Exten = _0666XX,1,answer() Exten = _0666XX,n,playback(tt-monkeys) Exten = _0666XX,n,hangup() You could just hangup on them, but playing the screeching monkeys will get the message to them to leave you alone. From: asterisk-users-boun...@lists.digium.com

Re: [asterisk-users] block one number in incoming calls

2013-01-14 Thread Michelle Dupuis
Check out smartCID on www.generationd.comhttp://www.generationd.com This script allows lookup of incomming calls based on number and either Block (no ring), endless ring (ignore), or pass through to asterisk. It allows allows rewriting of CID name based on number. All numbers stored in a

Re: [asterisk-users] block one number in incoming calls

2013-01-14 Thread Kevin Larsen
I don't think that would work as you are blocking the 0666xx number as the incoming extension and in his case, it would be the caller id number, not the extension. I would do something like this: exten = _520xx,1,GoSub(sub_blocked_caller,${EXTEN},1) same = n,Dial(SIP/224, 30)

Re: [asterisk-users] block one number in incoming calls

2013-01-14 Thread Zohair Raza
exten =520xx,1,NoOp(Caller-ID: ${CALLERID(all)}) exten =520xx,2,GotoIf($[${CALLERID(num)} = 0666XX ]?3:4) exten = 520xx,3,Dial(SIP/224, 30) exten = 520xx,4,hangup Regards, Zohair Raza On Mon, Jan 14, 2013 at 7:43 PM, Michelle Dupuis mdup...@ocg.ca wrote: Check out

Re: [asterisk-users] block one number in incoming calls

2013-01-14 Thread Geoff Lane
On Monday, January 14, 2013, Salaheddine Elharit wrote: my problem i have a lot of calls coming from this number (0666xx) and i want to block it. You can either create an extension to handle it, or you can use 1.4's blacklist feature to block calls from all unwanted numbers. Danny's dealt

Re: [asterisk-users] block one number in incoming calls

2013-01-14 Thread Salaheddine Elharit
thanks danny i think i didn’t explain correctly may question i revive a lot of calls from this number _0666XX and i wants to block it to call my number 520xx . 2013/1/14 Danny Nicholas da...@debsinc.com Exten = _0666XX,1,answer() Exten =

Re: [asterisk-users] block one number in incoming calls

2013-01-14 Thread Salaheddine Elharit
hi Zohair Raza thanks for your replay but this script will allow just this 0666XX to call my number 520xx what i want is block this number to call 520xx not allow it thank you exten = 520xx,1,NoOp(Caller-ID: ${CALLERID(all)}) exten = 520xx,2,GotoIf($[${CALLERID(num)} =

Re: [asterisk-users] block one number in incoming calls

2013-01-14 Thread Danny Nicholas
Reverse the 3:4 and you will have the desired effect. From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Salaheddine Elharit Sent: Monday, January 14, 2013 10:51 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re:

Re: [asterisk-users] block one number in incoming calls

2013-01-14 Thread Kevin Larsen
I think he does have one mistake in the below section. exten = 520xx,2,GotoIf($[${CALLERID(num)} = 0666XX ]?3:4) should be exten = 520xx,2,GotoIf($[${CALLERID(num)} = 0666XX ]?4:3) If the callerid is a match, then we go straight to hangup, otherwise we allow it. Using

Re: [asterisk-users] block one number in incoming calls

2013-01-14 Thread Salaheddine Elharit
thanks a lot danny it works perfectly :) thanks a lot all have a nice day 2013/1/14 Danny Nicholas da...@debsinc.com Reverse the 3:4 and you will have the desired effect. ** ** *From:* asterisk-users-boun...@lists.digium.com [mailto: asterisk-users-boun...@lists.digium.com] *On

Re: [asterisk-users] block one number in incoming calls

2013-01-14 Thread isrlgb
Can't we. Do this? exten =  520xx/0666XX,1,hangup -Original Message- From: Salaheddine Elharit salah.elharit...@gmail.com Sender: asterisk-users-boun...@lists.digium.com Date: Mon, 14 Jan 2013 16:51:11 To: Asterisk Users Mailing List - Non-Commercial

Re: [asterisk-users] block one number in incoming calls

2013-01-14 Thread Eric Wieling
No. However you can do this: exten = _520xx/_0666XX,1,hangup -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of isr...@gmail.com Sent: Monday, January 14, 2013 11:57 AM To: Asterisk Users Mailing List -

Re: [asterisk-users] block one number in incoming calls

2013-01-14 Thread Danny Nicholas
Yes. This is referred to in the documentation as ex-girlfriend logic. -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of isr...@gmail.com Sent: Monday, January 14, 2013 10:57 AM To: Asterisk Users Mailing List -

Re: [asterisk-users] block one number in incoming calls

2013-01-14 Thread A J Stiles
On Monday 14 January 2013, Salaheddine Elharit wrote: i think i didn’t explain correctly may question i revive a lot of calls from this number _0666XX and i wants to block it to call my number 520xx . Use something like Exten = _520X./0666XX,1,Answer() Exten =

Re: [asterisk-users] block one number in incoming calls

2013-01-14 Thread isrlgb
--Original Message-- From: Eric Wieling To: ישראל גוטליב To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [asterisk-users] block one number in incoming calls Sent: Jan 14, 2013 6:58 PM No.  However you can do this: exten =  _520xx/_0666XX,1,hangup

Re: [asterisk-users] block one number in incoming calls

2013-01-14 Thread Carlos Alvarez
So I'm not the only one who uses the monkeys as our place to send bad calls to. -- Sent from my iPhone On Jan 14, 2013, at 10:02 AM, A J Stiles asterisk_l...@earthshod.co.uk wrote: On Monday 14 January 2013, Salaheddine Elharit wrote: i think i didn’t explain correctly may question i

Re: [asterisk-users] block one number in incoming calls

2013-01-14 Thread Danny Nicholas
If you're worth the trouble to change my dialplan for, you should suffer some torture for calling me. -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Carlos Alvarez Sent: Monday, January 14, 2013 11:06 AM To:

Re: [asterisk-users] block one number in incoming calls

2013-01-14 Thread Salaheddine Elharit
thanks all for your support and help a really appreciate it 2013/1/14 Carlos Alvarez car...@televolve.com So I'm not the only one who uses the monkeys as our place to send bad calls to. -- Sent from my iPhone On Jan 14, 2013, at 10:02 AM, A J Stiles asterisk_l...@earthshod.co.uk wrote:

Re: [asterisk-users] block one number in incoming calls

2013-01-14 Thread A J Stiles
On Monday 14 January 2013, Carlos Alvarez wrote: So I'm not the only one who uses the monkeys as our place to send bad calls to. I actually thought of using a sample from a well-known song by Australian singer Kevin Bloody Wilson, but decided that might be a bit *too* offensive. Besides

Re: [asterisk-users] block one number in incoming calls

2013-01-14 Thread Carlos Alvarez
On Mon, Jan 14, 2013 at 10:48 AM, A J Stiles asterisk_l...@earthshod.co.ukwrote: On Monday 14 January 2013, Carlos Alvarez wrote: So I'm not the only one who uses the monkeys as our place to send bad calls to. I actually thought of using a sample from a well-known song by Australian

Re: [asterisk-users] Outoing Calls Motif Google Voice Calls Ring After Pick-up

2013-01-14 Thread Roy Abshire
What is the quickest way to apply this patch? Do I just overwrite the code in the res_xmpp.c with copy/replace and re-compile? Co-op Vacation Rentals www.coopvr.com 15218 Summit Ave Suite #300-354 Fontana, CA 92336 Phone/Fax (855) 760-COOP (2667) On 1/11/2013 3:34 PM, Kai-Uwe Jensen wrote:

Re: [asterisk-users] Outoing Calls Motif Google Voice Calls Ring After Pick-up

2013-01-14 Thread Joshua Colp
Roy Abshire wrote: What is the quickest way to apply this patch? The quickest way is to probably just grab res_xmpp.c from http://svn.digium.com/svn/asterisk/branches/11/res/res_xmpp.c - replace the existing res_xmpp.c in your code with it - recompile - and install. -- Joshua Colp Digium,

[asterisk-users] Asterisk 1.8.20.0 Now Available

2013-01-14 Thread Asterisk Development Team
The Asterisk Development Team has announced the release of Asterisk 1.8.20.0. This release is available for immediate download at http://downloads.asterisk.org/pub/telephony/asterisk The release of Asterisk 1.8.20.0 resolves several issues reported by the community and would have not been

[asterisk-users] Asterisk 10.12.0 Now Available

2013-01-14 Thread Asterisk Development Team
The Asterisk Development Team has announced the release of Asterisk 10.12.0. This release is available for immediate download at http://downloads.asterisk.org/pub/telephony/asterisk The release of Asterisk 10.12.0 resolves several issues reported by the community and would have not been possible

[asterisk-users] Asterisk 11.2.0 Now Available

2013-01-14 Thread Asterisk Development Team
The Asterisk Development Team has announced the release of Asterisk 11.2.0. This release is available for immediate download at http://downloads.asterisk.org/pub/telephony/asterisk The release of Asterisk 11.2.0 resolves several issues reported by the community and would have not been possible

[asterisk-users] Asterisk 10.12.0 - Final Maintenance Release of Asterisk 10

2013-01-14 Thread Asterisk Development Team
Hello everyone! As you may be aware, Asterisk 10 has now officially passed its supported bug fix maintenance window [1]. Asterisk 10.12.0 marks the final bug fix release of Asterisk 10. Support for security releases will continue another year, ending on 2013-12-15. Users of Asterisk 10 should

[asterisk-users] gtalk only working with ulaw???

2013-01-14 Thread Daniel Pocock
I've set up a peer to use G.722 only and tried to make it talk to an Asterisk box Asterisk always rejects the call with the following error: [Jan 14 22:20:16] WARNING[32653]: chan_gtalk.c:1343 gtalk_newcall: Capabilities don't match : us - 0x4 (ulaw), peer - 0x1000 (g722), combined - 0x0

Re: [asterisk-users] gtalk only working with ulaw???

2013-01-14 Thread Joshua Colp
Daniel Pocock wrote: I've set up a peer to use G.722 only and tried to make it talk to an Asterisk box Asterisk always rejects the call with the following error: chan_gtalk was written to only support a limited number of codecs, not the full set that Asterisk is capable of. chan_motif does

Re: [asterisk-users] gtalk only working with ulaw???

2013-01-14 Thread Daniel Pocock
On 14/01/13 23:31, Joshua Colp wrote: Daniel Pocock wrote: I've set up a peer to use G.722 only and tried to make it talk to an Asterisk box Asterisk always rejects the call with the following error: chan_gtalk was written to only support a limited number of codecs, not the full set that

Re: [asterisk-users] gtalk only working with ulaw???

2013-01-14 Thread Joshua Colp
Daniel Pocock wrote: On 14/01/13 23:31, Joshua Colp wrote: Daniel Pocock wrote: I've set up a peer to use G.722 only and tried to make it talk to an Asterisk box Asterisk always rejects the call with the following error: chan_gtalk was written to only support a limited number of codecs, not

[asterisk-users] Followme Killing Asterisk

2013-01-14 Thread A E G
Hi Guys, this has been a weekend destroyer for me. I've struggled this all day and most of today. I have a fairly simple Followme sequence in place to see how it works before I get into the complex scenarios. extensions.conf --- [Incoming] exten = MyDID,1, Answer() same = n,