The h exten is triggered when the channel is hangup, so you cannot send any
voice data on it.

Leandro

2013/2/21 Enrico Pasqualotto <e.pasqualo...@netspin.it>

> Yes, correct now it works for Dial.
> I think is the same with "c" option on Queue, do you think there's a way
> to do it on h exten?
> My goal is to inject my dialplan on hangup macro.
>
> Enrico.
> ------------------------------
>
>
> If you choose to go with the Dial command and use the "g" option, you have
> not to use the "h" extension, but just provide a next priority. Your
> dialplan has to be:
>
> [from-test]
> exten => _X.,1,Dial(SIP/${EXTEN},60,rjtTg)
> *exten => _X.,2,Goto(play,s,1)*
>
> [play]
> exten => s,1,Noop(play)
> exten => s,2,Saydigits(123579)
>
> Leandro
>
>
> --
> --
> Pasqualotto Enrico
> cell. +39 3473292620
> skype://epasqualotto :: http://www.linkedin.com/in/epasqualotto
> http://www.netspin.it :: e.pasqualo...@netspin.it
>
> --
> _____________________________________________________________________
> -- 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

Reply via email to