Thanks Rafeal. This is what I needed.

But first line i.e.

exten => _+2XX!,n,Dial(SIP/sip.XX/+${DESTINO},20,rgM(acceptcall^${
SESSIONID})S(${MAXCALLTIME}))

is very complicated.

I have very simple plan which is as below.

[context-demo]
exten=>1111,1,AGI ( pythonscript.py )
exten=>1111,1,Dial(SIP/1111)


that all.

Now can you please explain me in simpler form.

I am sorry. I am a newbie.



On Thu, Jun 26, 2014 at 11:12 PM, Rafael Visser <visser.raf...@gmail.com>
wrote:

> Hi Anurag.
> I didn't undertand much you question. But you have a dial option to a
> macro  when b answers
> example...
>
>
> exten =>
> _+2XX!,n,Dial(SIP/sip.XX/+${DESTINO},20,rgM(acceptcall^${SESSIONID})S(${MAXCALLTIME}))
>
>
>
> [macro-acceptcall]
> ; this macro is executed when b answers, requesting b  if is interested to
> pay the bill
> exten => s,1,AGI(your-agi-program.pl)
> exten => s,2,others...
>
>
> Regards..
> rv
>
>
>
>
> 2014-06-26 11:19 GMT-04:00 Anurag Rana <anuragrana31...@gmail.com>:
>
>> Hi All,
>>
>> There is an option of starting the recording of call after the call is
>> bridged. [ b option].
>> Is there any way of running an AGI script only if call is bridged
>> otherwise not.
>>
>> Thanks
>>
>> --
>> Anurag Rana
>> http://newbie42.blogspot.in/
>> On the trampoline of life's experiences, Striving towards a saintly life
>> in the midst of these materialistic turbulences.
>>
>>
>>
>> --
>> _____________________________________________________________________
>> -- 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
>



-- 
Anurag Rana
http://newbie42.blogspot.in/
On the trampoline of life's experiences, Striving towards a saintly life in
the midst of these materialistic turbulences.
-- 
_____________________________________________________________________
-- 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

Reply via email to