Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Dial command and its g option


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
voipcrazy at gmail.com
Guest





PostPosted: Thu Jun 12, 2008 5:25 am    Post subject: [asterisk-users] Dial command and its g option Reply with quote

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
Back to top
rizwanhasham at gmail.com
Guest





PostPosted: Thu Jun 12, 2008 7:41 am    Post subject: [asterisk-users] Dial command and its g option Reply with quote

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:

Quote:
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
Back to top
didier.cuffaut at neuf.fr
Guest





PostPosted: Thu Jun 12, 2008 7:48 am    Post subject: [asterisk-users] Dial command and its g option Reply with quote

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


Quote:
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.
Quote:

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
Back to top
sherwood.mcgowan at gm...
Guest





PostPosted: Thu Jun 12, 2008 1:16 pm    Post subject: [asterisk-users] Dial command and its g option Reply with quote

<snip>
Quote:
BUT if the two legs hangup, you have to use DEADAGI on the h extension......

Quick note, he doesn't necessarily have to use DeadAGI unless it's an
AGI being called. He just has to make sure he defines the h extension in
that context and set up the same executions as the post-dial executions
(if AGI is used, yes you need DeadAGI).

Just thought I'd clear it up

--
Sherwood McGowan
VoIP / Telecom Solutions
sherwood.mcgowan at gmail.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services