<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">Thanks Rafeal. This is what I needed. </div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">
<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">But first line i.e. </div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">
<span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif">exten => _+2XX!,n,Dial(SIP/sip.XX/+${</span><span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif">DESTINO},20,rgM(acceptcall^${</span><span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif">SESSIONID})S(${MAXCALLTIME}))</span></div>
<div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)"><span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif"><br></span></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">
is very complicated.</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">I have very simple plan which is as below.</div>
<div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">[context-demo]</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">
exten=>1111,1,AGI ( pythonscript.py )</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">exten=>1111,1,Dial(SIP/1111)</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">
<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">that all.</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">
<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">Now can you please explain me in simpler form. </div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">
<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">I am sorry. I am a newbie.</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)"><br></div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 26, 2014 at 11:12 PM, Rafael Visser <span dir="ltr"><<a href="mailto:visser.rafael@gmail.com" target="_blank">visser.rafael@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi Anurag.<br></div>I didn't undertand much you question. But you have a dial option to a macro when b answers<br>
example...<br><br><br>exten => _+2XX!,n,Dial(SIP/sip.XX/+${DESTINO},20,rgM(acceptcall^${SESSIONID})S(${MAXCALLTIME}))<br>
<br><br><br>[macro-acceptcall]<br></div><div>; this macro is executed when b answers, requesting b if is interested to pay the bill<br></div><div>exten => s,1,AGI(<a href="http://your-agi-program.pl" target="_blank">your-agi-program.pl</a>)<br>
exten => s,2,others...<br><br></div><br></div><div>Regards..<br>rv<br></div><div><br></div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-06-26 11:19 GMT-04:00 Anurag Rana <span dir="ltr"><<a href="mailto:anuragrana31189@gmail.com" target="_blank">anuragrana31189@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;color:#000000">Hi All,</div>
<div class="gmail_default" style="font-family:verdana,sans-serif;color:#000000">
<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:#000000">
There is an option of starting the recording of call after the call is bridged. [ b option].</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:#000000">Is there any way of running an AGI script only if call is bridged otherwise not.</div>
<div class="gmail_default" style="font-family:verdana,sans-serif;color:#000000"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:#000000">Thanks</div><span><font color="#888888"><div>
<br></div>-- <br><div dir="ltr"><span style="background-color:rgb(255,255,255)"><font style="font-family:georgia,serif" face="garamond,serif"><font size="4"><font size="4"><font face="verdana,sans-serif"><font>Anurag Rana <br>
<font size="1"><span style="color:rgb(56,118,29)"><a href="http://newbie42.blogspot.in/" target="_blank">http://newbie42.blogspot.in/</a></span><br><span style="color:rgb(106,168,79)">On the trampoline of life's experiences, Striving towards a saintly life in the midst of these materialistic turbulences.</span></font><br>
</font><br></font></font></font></font></span><div><span style="background-color:rgb(255,255,255)"><font style="font-family:georgia,serif" face="garamond,serif"><br></font></span></div></div>
</font></span></div>
<br></div></div><span class="HOEnZb"><font color="#888888">--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></font></span></blockquote></div><br></div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">
<span style="background-color:rgb(255,255,255)"><font style="font-family:georgia,serif" face="garamond,serif"><font size="4"><font size="4"><font face="verdana,sans-serif"><font>Anurag Rana <br><font size="1"><span style="color:rgb(56,118,29)"><a href="http://newbie42.blogspot.in/" target="_blank">http://newbie42.blogspot.in/</a></span><br>
<span style="color:rgb(106,168,79)">On the trampoline of life's experiences, Striving towards a saintly life in the midst of these materialistic turbulences.</span></font><br></font><br></font></font></font></font></span><div>
<span style="background-color:rgb(255,255,255)"><font style="font-family:georgia,serif" face="garamond,serif"><br></font></span></div></div>
</div>