Re: [Asterisk-java-devel] Asterisk-java-devel Digest, Vol 36, Issue 1
Brought to you by:
srt
|
From: Haamed K. <k.h...@gm...> - 2011-12-14 10:42:52
|
Thanks for your you reply,
sorry but i thought My question was so clear ! then I will say complete
story,
there is a code on Dial plan to sending fax on current channel:
;;;;;;;;;;;;;;;;;;; FAX PART ;;;;;;;;;;;;;;
> ;;
> exten = vagoofax,1,PlayBack(startfax)
> exten =
> vagoofax,n,Set(FAXFILE=${BASE_PATH}${VAGOO_VOICE_MSGS}/${MSG_DIR}/${MSG_NUMBER}.${FAX_EXT})
> exten = vagoofax,n,Set(PPOS=99${CUT(CHANNEL:6,-,1)})
> exten = vagoofax,n,Set(PARKINGEXTEN=${PPOS})
> exten = vagoofax,n,System(sendfax -n -l -B 14400 -s a4 -t 1 -d
> ${PARKINGEXTEN} ${FAXFILE})
> exten = vagoofax,n,Park(60000,,,,s)
> ;exten = vagoofax,n,hangup()
>
and now I wanna to do this on my AGI program with asterisk-java 0.3.1 ...
I did all of above command just i don't know how can i call "park()"
command in my AGI,
*: park() is a command to parking current channel
I hope to say enough info with my poor English,
thanks again.
Haamed Kouhfallah
-----------------------------
The VoIP-IRAN Manager
Email: k.h...@gm...
Web: http://www.voip-iran.com
Forum: www.voip-iran.com/forum <http:///www.voip-iran.com/forum>
On Wed, Dec 14, 2011 at 2:03 PM, <
ast...@li...> wrote:
> Send Asterisk-java-devel mailing list submissions to
> ast...@li...
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel
> or, via email, send a message with subject or body 'help' to
> ast...@li...
>
> You can reach the person managing the list at
> ast...@li...
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Asterisk-java-devel digest..."
>
>
> Today's Topics:
>
> 1. Re: ChannelFactory for Live (Stefan Reuter)
> 2. Dial using FastAGI (Jeryes .)
> 3. use park() in AGI (Haamed Kouhfallah)
> 4. Asterisk-java and Elastix (Multi Faces)
> 5. Re: use park() in AGI (Haamed Kouhfallah)
> 6. Re: use park() in AGI (Yves A.)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 07 Mar 2011 09:31:33 +0100
> From: Stefan Reuter <ste...@re...>
> Subject: Re: [Asterisk-java-devel] ChannelFactory for Live
> To: ast...@li...
> Message-ID: <4D7...@re...>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi,
>
> > As best as I can tell, it's mostly used to restrict access to methods
> > that generally shouldn't be called by programs using the API, such as
> > those responsible for firing Live Events, those responsible for handling
> > the direct ManagerEvents being handled, etc.
>
> Yes that was the idea behind it. The methods in the interface are for
> users of the API and the methods of the *Impl classes that are not part
> of the interface are for the corresponding *Manager to update the state
> of the live object when the AMI events are processed.
>
> > I agree, it does provide a lot of nice default functionality. However,
> > it seems to me to be designed to be used internally only. Most of the
> > properties of the channel are read-only in actuality, such as name,
> > unique id, caller id, etc, but have setters defined. It could be
> > confusing to users to have these setters available publicly, since they
> > don't do anything to the channel itself, only to the java object
> > representing it.
>
> Indeed. The "write" methods in the interface cause interaction with
> Asterisk and actually modify the state of the corresponding concept there.
>
> What is lacking currently is a clear and easy way of extending the live
> API. This would require extending the *Manager, the *Impl and the
> interface. I would like to keep the interface for the "end user"
> separate from what the *Manager uses to update the state. This can
> either be done by the current interface/impl separation or maybe by
> having some kind of a companion class for the live object.
>
> =Stefan
>
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 10 May 2011 12:27:28 -0300
> From: "Jeryes ." <je...@vo...>
> Subject: [Asterisk-java-devel] Dial using FastAGI
> To: ast...@li...
> Message-ID: <BAN...@ma...>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi All!
>
> I have an application that is connected to Asterisk by BaseAgiScript, and
> it
> only answers, play a file and disconnect the call.
> Now I am trying to dial to another destination after receive a new call,
> executing the command Dial:
>
> *agiChannel.exec("Dial", "SIP/otherUser@otherUserIp:5060");*
>
> *agiChannel* is the channel received in a new incoming AgiRequest by the
> event *service(AgiRequest request, AgiChannel agiChannel)*.
>
> But doing this way I am not able to change the domain on from or to Header,
> is there a way to change the domain dynamically?
>
> I've tried the option *o *to keep the original *from* received on incoming
> AgiRequest, but it had no effect:
>
> *agiChannel.exec("Dial", "SIP/otherUser@otherUserIp:5060|o");
>
> *I couldn't do it with Manager Api eather.***
> *
> Please, could some one help?*
> *
>
> Thanks in advance!
>
> Regards
> Jeryes
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 3
> Date: Tue, 13 Dec 2011 10:27:18 +0330
> From: Haamed Kouhfallah <k.h...@gm...>
> Subject: [Asterisk-java-devel] use park() in AGI
> To: Ast...@li...
> Message-ID:
> <CA+...@ma...
> >
> Content-Type: text/plain; charset="utf-8"
>
> Hi every body,
> I want to use park() cmd in my java program, how can i use it?
> in my AGI program I want to park my current Chanel.
>
> thanks in advanced
>
>
> Haamed Kouhfallah
> -----------------------------
> The VoIP-IRAN Manager
> Email: k.h...@gm...
> Web: http://www.voip-iran.com
> Forum: www.voip-iran.com/forum <http:///www.voip-iran.com/forum>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 4
> Date: Wed, 14 Dec 2011 01:50:39 -0200
> From: Multi Faces <mn...@gm...>
> Subject: [Asterisk-java-devel] Asterisk-java and Elastix
> To: ast...@li...
> Message-ID:
> <CAK...@ma...
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi
>
> Im starting with asterisk-java lib and have a doubt:
>
> - my customer uses elastix. Then, is possible created application using
> asterisk-java for working together with Elastix?
>
> My application is a popup that identify the calling number and shows in a
> specific window.
>
> Regards
>
> Richard
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 5
> Date: Wed, 14 Dec 2011 13:34:57 +0330
> From: Haamed Kouhfallah <k.h...@gm...>
> Subject: Re: [Asterisk-java-devel] use park() in AGI
> To: ast...@li...
> Message-ID:
> <CA+...@ma...
> >
> Content-Type: text/plain; charset="utf-8"
>
> Hi,
> How can i use park() command on AGI program..
>
> thanks
>
>
> Haamed Kouhfallah
> -----------------------------
> The VoIP-IRAN Manager
> Email: k.h...@gm...
> Web: http://www.voip-iran.com
> Forum: www.voip-iran.com/forum <http:///www.voip-iran.com/forum>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 6
> Date: Wed, 14 Dec 2011 11:35:53 +0100
> From: "Yves A." <yv...@gm...>
> Subject: Re: [Asterisk-java-devel] use park() in AGI
> To: ast...@li...
> Message-ID: <4EE...@gm...>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> when will people learn how to use a mailing list and how to ask for
> help...??
>
> This is definitely the wrong way... and to repeat the question over and
> over again,
> even by using bold letters wont do it either.
>
> If you want anybody to support you, then it is always a good idea to
> post as much information
> as possible. This in turn reduces the number of questions of the reader.
> So in your case,
> it would be nice to know - besides the always necessary info about your
> configuratin / versions etc...,
> what you tried so for...if at all..
>
> how did you setup parking?
> does it work with normal phones?
> how does your agi-sourcecode look like?
> what happens at all - are there any error messages?
>
> and so on and so on. you can?t expect any effort from anyone, if you are
> not showing any effort yourself.
>
> regards,
> yves
>
>
> Am 14.12.2011 11:04, schrieb Haamed Kouhfallah:
> > Hi,
> > How can i use park() command on AGI program..
> >
> > thanks
> >
> >
> > Haamed Kouhfallah
> > -----------------------------
> > The VoIP-IRAN Manager
> > Email: k.h...@gm... <mailto:k.h...@gm...>
> > Web: http://www.voip-iran.com
> > Forum: www.voip-iran.com/forum <http:///www.voip-iran.com/forum>
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Cloud Computing - Latest Buzzword or a Glimpse of the Future?
> > This paper surveys cloud computing today: What are the benefits?
> > Why are businesses embracing it? What are its payoffs and pitfalls?
> > http://www.accelacomm.com/jaw/sdnl/114/51425149/
> >
> >
> > _______________________________________________
> > Asterisk-java-devel mailing list
> > Ast...@li...
> > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
>
> ------------------------------------------------------------------------------
> Cloud Computing - Latest Buzzword or a Glimpse of the Future?
> This paper surveys cloud computing today: What are the benefits?
> Why are businesses embracing it? What are its payoffs and pitfalls?
> http://www.accelacomm.com/jaw/sdnl/114/51425149/
>
> ------------------------------
>
> _______________________________________________
> Asterisk-java-devel mailing list
> Ast...@li...
> https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel
>
>
> End of Asterisk-java-devel Digest, Vol 36, Issue 1
> **************************************************
>
|