This may just be my opinion, but EG logic works best in an established call, like this
[TRONCAL-SIP] exten = 225,1,answer exten=>225/91,2,Answer exten=>225/91,3,Echo exten=>225/92,2,Answer exten=>225/92,3,Playback(conf-invalid) exten=>225,hangup This way, 225 is answered and hungup regardless of caller, and 91/92 get their specific handling. _____ From: [email protected] [mailto:[email protected]] On Behalf Of equis software Sent: Wednesday, March 10, 2010 8:14 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Dialplan behaviour I understand the ex-girlfriend situation, in fact I want to do that, the problem is when I don´t put the last line and call from 92 or 91 this don´t work. I put the ex-girlfriend exception because without this, calls from 91 and 92 don´t match their extensions. On Mon, Mar 8, 2010 at 4:52 PM, Danny Nicholas <[email protected]> wrote: You made the troncal-sip context into a ex-girlfriend situation where only calls from extensions 91 and 92 would process. When you added the last line, that made it an open context with two egf exceptions. _____ From: [email protected] [mailto:[email protected]] On Behalf Of equis software Sent: Monday, March 08, 2010 1:46 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] Dialplan behaviour I have this [TRONCAL-SIP] exten=>225/91,1,Answer exten=>225/91,2,Echo exten=>225/91,3,Hangup exten=>225/92,1,Answer exten=>225/92,2,Playback(conf-invalid) exten=>225/92,3,Hangup When I make a call CLI> -- Recv IAM CIC=8 ANI=91 DNI=225 RNI= redirect=no/0 complete=1 Dont work If I add this rule exten=>225,1,Answer Works ok -- _____________________________________________________________________ -- 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
