Displaying 20 results from an estimated 900 matches similar to: "Gogoif with variables acting funny?"
2004 Dec 09
1
res_perl module loading problem
On a new * asterisk install onto new install Gentoo 2003.4 upon startup
of asterisk:
WARNING[16384]: loader.c:248 ast_load_resource:
/usr/lib/asterisk/modules/res_perl.so: undefined symbol: PL_thr_key
WARNING[16384]: loader.c:429 load_modules: Loading module res_perl.so
failed!
perl -v = v5.8.5 built for i386-linux-thread-multi <= I installed
ithread support in perl
Have not been able to
2004 Jul 29
5
Astricon Conference Call?????????
I know this is probably way out there but............
Would it be possible to set up a (Asterisk based) conference call (per
se) with the presentations at the upcoming Astricon conference via
IAXtel (or something similar) so that people who are not able to attend
could join a Meetme conference (listen only) and listen to the content.
There maybe bandwidth issues but this would certainly be an
2004 Aug 04
2
Snom 200 Programmable Keys
I would like to use one of my Snom 200's 5 programmable keys to park
calls. I am using image SIP 2.04g. I have tried a variety of
combinations and have come to the conclusion that:
1) On the Key Mappings administration page, I must select the "Transfer"
under the "Break Keys" option box to be able to successfully transfer
calls using the "Transfer" button.
2)
2004 Jul 13
2
IAX2 calls through IAXTEL.com
I created an account at IAXTEL.com to route 1-700-XXX-XXXX calls
through. IAXTEL.com gave me a number (example) of 700-555-6226. I have
made the following changes to my:
/etc/asterisk/extensions.conf:
[iaxtel700]
exten =>
_81700XXXXXXX,1,Dial(IAX2/myusername:mypassword@iaxtel.com/${EXTEN:1})
exten =>
_81800NXXXXXX,1,Dial(IAX2/myusername:mypassword@iaxtel.com/${EXTEN:1})
2004 Jul 29
2
Astricon Dev Meeting On Line
Friends,
Please send all offers for help *off list* to us at info@astricon.net. Do not disturb
the list with offers of your services, please.
I repeat:
Only the Developer's Meeting will be considered for broadcast at this time. In order
to enjoy the conference, you will simply have to be there. It's an IRL experience
- meeting all the other Asterisk user's from around the globe,
2003 Mar 14
3
SIP registrations
Can asterisk act as a SIP registrar or location server?
I would like to be able for a user agent(client) to register with
whatever client they are using as "username@domain-name.com". Rather
than the entry/username/password that is setup in the sip.conf file.
That way a user could log into any SIP enable client and their calls
would follow them around.
I have read the sip.conf man pages
2004 Jul 29
2
Aastra 480e phone ADSI config
There isn't much documentation on adsi, but I called NETXUSA (the vendor
of my 480e) and they helped me along.
My experience:
1. I really had no experience with ADSI so I had (probably still have)
some misconceptions on how the configuration is loaded onto the phone.
2. I set the following in my /etc/asterisk/asterisk.adsi (most of this
is the stock asterisk.adsi script):
;
2006 Oct 27
2
all.names() and all.vars(): sorting order of functions' return vector
Dear list-subscriber,
in the process of writing a general code snippet to extract coefficients
in an expression (in the example below: 0.5 and -0.7), I stumbled over
the following peculiar (at least peculiar to me:-) ) sorting behaviour
of the function all.names():
> expr1 <- expression(x3 = 0.5 * x1 - 0.7 * x2)
> all.names(expr1)
[1] "-" "*" "x1"
2004 Sep 30
6
No Asterisk Sounds on SUSE ES 9/Linux 2.6
I installed SUSE LINUX Enterprise Server 9 that uses a Linux 2.6.5
kernel. When I installed the OS, I chose a minimal package install. I
compiled the latest asterisk out of CVS. So far things have gone OK. I
can establish phone calls (SIP, TDM, etc) and the quality is good.
Only problem is that I can get no sound out of Asterisk itself: prompts,
comedian mail prompts, etc. I can see messages on
2006 Jul 18
2
I think this is a bug
Hello!
I work with:
R : Copyright 2006, The R Foundation for
Statistical Computing
Version 2.3.1 (2006-06-01)
On Windows XP Professional (Version 2002) SP2
I think there is a bug in the conditional
execution if (expr1) {expr2} else {expr3}
If I try:
"if (expr1) expr2 else expr3"
it works well but when I put the expression expr2
and expr3 between {} I receive an error message
2009 Dec 09
4
equivalent of ifelse
Hi,
Is there any equivalent for ifelse (except if (cond) expr1 else expr2) which takes an atomic element as argument but returns vector since ifelse returns an object of the same length as its argument?
x = c(1,2,3)
y = c(4,5,6,7)
z = 3
ifelse(z <= 3,x,y)
would return x and not 1
thanks
2003 Jan 31
2
Varying texts in expression(paste())
Hi,
I am using R a lot to make plots relating to radioactivity, I am often using
expression() to label the plots with nuclide names written with
superscripts, e.g.
expression(paste("Releases of ", { }^{99},Tc," (TBq/year)"))->ywtext
But, is there any simple way to change the number and name of the nuclide
through a variable? I tried
nuccode=expression({ }^{99},Tc)
2014 May 01
3
How to test if an object/argument is "parse tree" - without evaluating it?
This may have been asked before, but is there an elegant way to check
whether an variable/argument passed to a function is a "parse tree"
for an (unevaluated) expression or not, *without* evaluating it if
not?
Currently, I do various rather ad hoc eval()+substitute() tricks for
this that most likely only work under certain circumstances. Ideally,
I'm looking for a isParseTree()
2005 Jul 12
2
Puzzled at ifelse()
I have a situation where this is fine:
> if (length(x)>15) {
clever <- rr.ATM(x, maxtrim=7)
} else {
clever <- rr.ATM(x)
}
> clever
$ATM
[1] 1848.929
$sigma
[1] 1.613415
$trim
[1] 0
$lo
[1] 1845.714
$hi
[1] 1852.143
But this variant, using ifelse(), breaks:
> clever <- ifelse(length(x)>15, rr.ATM(x, maxtrim=7), rr.ATM(x))
2005 Jun 03
2
Everyone-- the scoop on Bison/Flex --
Hey, everybody---
Ignorance CAN be bliss, at least for a while, but, .... Just so you
know...
A week or two ago, some upgrades to the expression parser (you know, the
expressions you put in $[ ... ] in your extensions.conf file) that I
submitted, have been merged into the CVS HEAD of the source.
Hopefully, for around 99.9% of you, it won't make any difference to you.
The Makefile has also
2013 Feb 04
2
Modifying a function programmatically
Dear list
# I have a function
ff <- function(a,b=2,c=4){a+b+c}
# which I programmatically want to modify to a more specialized function in which a is replaced by 1
ff1 <- function(b=2,c=4){1+b+c}
# I do as follows:
vals <- list(a=1)
(expr1 <- as.expression(body(ff)))
expression({
a + b + c
})
(expr2 <- do.call("substitute", list(expr1[[1]], vals)))
{
1 +
2002 Aug 07
2
Constructing titles from list of expressions
Hello!
I have the following problem:
I have a function to construct three surfaceplots with a marker for an optimum,
each of the plots has as title paste("Estimated ",pred.var.lab," for
",var.lab[1]," vs. ",var.lab[2],sep="") with different var.lab[1,2] each time.
My problem is now that I need to allow for plotmath expressions in the
variables pred.var.lab
1997 Apr 30
2
R-beta: Small problems with R0.49
A non-text attachment was scrubbed...
Name: not available
Type: text
Size: 1856 bytes
Desc: not available
Url : https://stat.ethz.ch/pipermail/r-help/attachments/19970430/db1498ee/attachment.pl
2023 Jan 11
1
return value of {....}
I am more than a little puzzled by your question.
In the construct {expr1; expr2; expr3} all of the
expressions expr1, expr2, and expr3 are evaluated,
in that order. That's what curly braces are FOR.
When you want some expressions evaluated in a
specific order, that's why and when you use curly
braces. If that's not what you want, don't use them.
Complaining about it is like
2009 May 10
4
Partial Derivatives in R
Quick question:
Which function do you use to calculate partial derivatives from a model
equation?
I've looked at deriv(), but think it gives derivatives, not partial
derivatives. Of course my equation isn't this simple, but as an example,
I'm looking for something that let's you control whether it's a partial or
not, such as:
somefunction(y~a+bx, with respect to x,