I need to execute an action after a call is hangup. I just see the command Dial has an option for that, the "g" option. I configure the dial command as exten => s,n,Dial(SIP/100,100,Ttg) How should I add the line which the command will be executed after the dial command in this example? I don`t how its works, someone could put a example about the way to use it. Thanks you in advance. VoipCrazy
just add as many extensions as you want under the Dial command extension keeping the extension number same: exten => s,n,Dial(SIP/100,100,Ttg) exten => s,n,Application here On Thu, Jun 12, 2008 at 3:25 PM, voip crazy <voipcrazy at gmail.com> wrote:> I need to execute an action after a call is hangup. I just see the > command Dial has an option for that, the "g" option. > I configure the dial command as > > exten => s,n,Dial(SIP/100,100,Ttg) > > How should I add the line which the command will be executed after the > dial command in this example? > > I don`t how its works, someone could put a example about the way to use it. > > Thanks you in advance. > > VoipCrazy > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- Best Regards Rizwan Hisham -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080612/7aab5137/attachment.htm
Hi, With the g option, you just have to continue in the CALLER Dialplan, you have nothing to do, just continue your Dialplan i.e: exten=> s,n,Dial(what you want) <= and when the Called hangup you're goto the next line exten=> s,n,Goto(where you want) or exten=> s,n, 'DO WHAT YOU WANT: playback, background and so' After the CALLED party hangup (of course, not the caller), the CALLER continue in his dialplan...... Hope i'm not misunderstanding your question...... BUT if the two legs hangup, you have to use DEADAGI on the h extension...... ----- Original Message ----- From: "voip crazy" <voipcrazy at gmail.com> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com> Sent: Thursday, June 12, 2008 12:25 PM Subject: [asterisk-users] Dial command and its g option> I need to execute an action after a call is hangup. I just see the > command Dial has an option for that, the "g" option. > I configure the dial command as > > exten => s,n,Dial(SIP/100,100,Ttg) > > How should I add the line which the command will be executed after the > dial command in this example? > > I don`t how its works, someone could put a example about the way to useit.> > Thanks you in advance. > > VoipCrazy > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users