🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.pl.voip
Article #73873

Re: Asterisk i odegranie wav jesli linia zajeta, jak ??

#73873
From: Cezar
Date: Mon, 10 Oct 2016 11:07
38 lines
2295 bytes
On 10/10/2016 11:53, Surface wrote:
 > O własnie, nie mam nigdzie return :)
 >
 > Mozesz prosze podac przykład jak wygląda linia z Return ?

z przykłade ze stronki, którą podawałeś powinno być:


[send-email]
exten => s,1,NoOp(Entering user defined context  [send-email] in 
extensions_custom.conf)
exten => s,n,System(echo 'Call from ${CALLERID(name)} at 
${CALLERID(number)}' | mail -s 'SUBJECT' 'address@email.com')
exten => s,n,Return


a wywołujesz ten kontest przez

Gosub(send-email,s,1)



 > i druga sprawa jak ktos np zadzwoni 2 dzwonki i sie rozlaczy, to czy da
 > sie zrobic by wtedy tez wysłało email ?

powinien byc wysłany.
Ewewntualnie  musisz dodać skok  gdy dialstatus jest CANCEL

np:

exten => s-CANCEL,1,Gosub(send-email,s,1)



c.

-- 
vpbx.pl
Technical Details
Message-ID: <ntfsog$6eu$1@news.chmurka.net>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!news.chmurka.net!.POSTED.194.74.130.42!not-for-mail
References: <nst75n$pki$1@node2.news.atman.pl> <nst802$bp5$1@news.chmurka.net> <nst8ba$qsq$1@node2.news.atman.pl> <nstduh$ds8$1@news.chmurka.net> <nsttb4$ffu$1@node2.news.atman.pl> <nsu01s$kao$1@news.chmurka.net> <nt0mhm$r7d$2@node1.news.atman.pl> <nt11sm$dev$1@solani.org> <nt2g2h$rh8$1@node2.news.atman.pl> <nt2hag$afg$1@news.chmurka.net> <nt2hdc$sok$1@node2.news.atman.pl> <nt2i5c$anb$1@news.chmurka.net> <nt8hu3$umi$1@node2.news.atman.pl> <ntb0eu$p26$1@solani.org> <ntdih3$c7b$1@node1.news.atman.pl> <ntdvd6$fkv$1@news.chmurka.net> <ntfhfk$cou$1@node1.news.atman.pl> <ntfq8f$5kh$1@news.chmurka.net> <ntfrui$nil$1@node1.news.atman.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!news.chmurka.net!.POSTED.194.74.130.42!not-for-mail
From: Cezar <cezar91@BEZtlen.pl.invalid>
Newsgroups: alt.pl.voip
Subject: Re: Asterisk i odegranie wav jesli linia zajeta, jak ??
Date: Mon, 10 Oct 2016 12:07:00 +0100
Organization: news.chmurka.net
Message-ID: <ntfsog$6eu$1@news.chmurka.net>
References: <nst75n$pki$1@node2.news.atman.pl> <nst802$bp5$1@news.chmurka.net> <nst8ba$qsq$1@node2.news.atman.pl> <nstduh$ds8$1@news.chmurka.net> <nsttb4$ffu$1@node2.news.atman.pl> <nsu01s$kao$1@news.chmurka.net> <nt0mhm$r7d$2@node1.news.atman.pl> <nt11sm$dev$1@solani.org> <nt2g2h$rh8$1@node2.news.atman.pl> <nt2hag$afg$1@news.chmurka.net> <nt2hdc$sok$1@node2.news.atman.pl> <nt2i5c$anb$1@news.chmurka.net> <nt8hu3$umi$1@node2.news.atman.pl> <ntb0eu$p26$1@solani.org> <ntdih3$c7b$1@node1.news.atman.pl> <ntdvd6$fkv$1@news.chmurka.net> <ntfhfk$cou$1@node1.news.atman.pl> <ntfq8f$5kh$1@news.chmurka.net> <ntfrui$nil$1@node1.news.atman.pl>
Mime-Version: 1.0
Injection-Date: Mon, 10 Oct 2016 11:06:56 +0000 (UTC)
Injection-Info: news.chmurka.net; posting-account="cezar91"; posting-host="194.74.130.42"; logging-data="6622"; mail-complaints-to="abuse-news.(at).chmurka.net"
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0
In-Reply-To: <ntfrui$nil$1@node1.news.atman.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit