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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100308/7877694d/attachment.htm
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: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100308/f7fcfde7/attachment.htm
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 <danny at debsinc.com> 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:* asterisk-users-bounces at lists.digium.com [mailto: > asterisk-users-bounces at lists.digium.com] *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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100310/b260595b/attachment.htm
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: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] 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 <danny at debsinc.com>
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: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20100310/ebdcfdcc/attachment.htm
Yes, this work, thanks! On Wed, Mar 10, 2010 at 11:33 AM, Danny Nicholas <danny at debsinc.com> wrote:> 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:* asterisk-users-bounces at lists.digium.com [mailto: > asterisk-users-bounces at lists.digium.com] *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 <danny at debsinc.com> 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:* asterisk-users-bounces at lists.digium.com [mailto: > asterisk-users-bounces at lists.digium.com] *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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100310/600faad5/attachment.htm
At 4:45 PM on 08 Mar 2010, equis software wrote:> 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 >[...]> Dont work > > If I add this rule > exten=>225,1,Answer > > Works okI suspect it's because when the call first comes in, asterisk doesn't have the callerid info yet (it comes after the first ring). So asterisk tries to route the call to a callerid-nonspecific dialplan entry, and simply fails when it doesn't find any. -- C. Chad Wallace, B.Sc. The Lodging Company http://www.lodgingcompany.com/ OpenPGP Public Key ID: 0x262208A0 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20100310/c5d55d08/attachment.pgp