Displaying 20 results from an estimated 2000 matches similar to: "Looking for very basic example"
2008 Dec 09
4
extract the digits of a number
Hello,
Anyone knows how can I do this in a cleaner way?
mynumber = 1001
as.numeric(unlist(strsplit(as.character(mynumber),"")))
[1] 1 0 0 1
Thanks in advance,
Gustavo
2015 Jul 15
2
bquote/evalq behavior changed in R-3.2.1
On Jul 15, 2015, at 12:51 PM, William Dunlap wrote:
> I think rapply() was changed to act like lapply() in this respect.
>
When I looked at the source of the difference, it was that typeof() returned 'language' in 3.2.1, while it returned 'list' in the earlier version of R. The first check in rapply's code in both version was:
if (typeof(object) != "list")
2015 Jul 15
3
bquote/evalq behavior changed in R-3.2.1
In 3.1.2 eval does not store the result of the bquote-generated call in the
given environment. Interestingly, in 3.2.1 eval does store the result of
the bquote-generated call in the given environment.
In other words if I run the given example with eval rather than evalq, on
3.1.2 "x" is never stored in "fenv," but it is when I run the same code on
3.2.1. However, the given
2015 Jul 15
2
bquote/evalq behavior changed in R-3.2.1
David,
If you are referring to the solution that would be:
rapply(list(test), eval, envir = fenv)
I thought I explained in the question that the above code does not work. It
does not throw an error, but the behavior is no different (at least in the
output or result). Using the above code still results in the x object not
being stored in fenv on 3.1.2.
Dayne
On Wed, Jul 15, 2015 at 4:40 PM,
2005 Sep 23
3
Removing "-" (Dash) from Dialed Numbers
I am trying to enable dial-by-email by using LDAPget to query an Active
Directory server. I've got it retrieving the phone number fine.
Unforunately, the numbers stored in active directory are either in the
format: (xxx) xxx-xxxx or xxx-xxx-xxxx. Is there any way to parse
characters out of the dialed phone number so that I only end up with digits
(remove spaces, parenthesis and dashes)?
2004 Aug 10
1
Firefly and *... Argh!
Okay, I've read as much as I can, and I think i've followed
instructions, but I'm still having problems with * and firefly... I can
get outgoing to other freshtel working, but not incoming (I get the "not
available" voicemail), or outgoing to landline.
I'm using the debian asterisk package (0.9.1-RC1-4)
My iax.conf has in general (under my FWD register, which
2004 Aug 28
10
Broadvoice problem
Since Thursday evening my asterisk box has been failing to register with
broadvoice. I haven't changed any of my config files in the last week.
Can anyone suggest anything?
Asterisk is reporting:
*CLI> Aug 28 16:15:17 NOTICE[6150]: chan_sip.c:3914 sip_reg_timeout:
Registration for '703XXXXXXX@147.135.8.129' timed out, trying again
-- Got SIP response 404 "Not found"
2013 Apr 18
5
Dynamic realtime + queues
Hi,
?
I am trying to store queues.conf to a MySQL database using dynamic realtime. I have a working ODBC connection and the queueing system already works but I want to store the queues.conf file to a database. I am following the guide from Asterisk the definitive guide, the ebook can be found at: http://ofps.oreilly.com/titles/9781449332426/asterisk-DB.html
?
I have a database called asterisk
2004 Aug 07
2
Asterisk : No Sound No Dial
Thanks for taking a look greg and hank. This seems to be getting bettre
everyday..help please
My sjphone is running on the same box as asterisk...i believe then the red
hat firewall should not be a problem.
Whenever i dial from CLI i get
#########
Executing Goto("OSS/dsp", "default|s|1") in new stack
-- Goto (default,s,1)
-- Executing Wait("OSS/dsp",
2006 Feb 15
1
problem with outgoing callsUnabletocreatechannel of type 'ZAP' (cause 34 - Circuit/channelcongestion)
Nik,
Looks like you're making some progress. When I first started using A@H
I had trouble getting the outbound dialing to work. I wasn't sure where
to start, so what I did was skip the macros in the dial plan. I wanted
to play around with exactly what digits the telco wanted to see. So I
put a specific extension in my [default] context like this:
exten =>
2005 Mar 13
2
How can I eveluate trailing numbers in extensions.conf?
Checkout
http://www.voip-info.org/wiki-Asterisk+variables
I believe that should have the answer for you.
furthermore assuming that your number is always going to be 12 digits.
exten => _NXX.,1,SetVar(mynumber=${EXTEN:0:12}) - will give you your number.
Hope this helps.
Umar
On Sun, 13 Mar 2005 09:25:11 +0100, Harald Milz <hm@seneca.muc.de> wrote:
> Hi,
>
> this
problem with outgoing callsUnabletocreatechannelof type 'ZAP' (cause 34 - Circuit/channelcongestion)
2006 Feb 17
2
problem with outgoing callsUnabletocreatechannelof type 'ZAP' (cause 34 - Circuit/channelcongestion)
Nik,
This definitely helps! Please check your dial command. You've got
"Dial(Zap/0/mynumber)" and I think you might possibly want it to be
something like this:
Dial(Zap/1/mynumber) or
Dial(Zap/g0/mynumber)
I don't recall there being a zap channel zero, but it is common to have
a group zero. I would recommend trying Zap channel 1 -
Dial(Zap/1/mynumber) - before trying the
2010 Aug 12
3
find value between two other numbers?
So basically I want to do this -
4 %in% 1:10
should return true
Would there be another way of doing this without having to do the 1:10 part?
I am using a very large data set and trying to do
459124 %in% 103000:983000
multiple times for many values, and it is taking quite a long time
Also, I would like to vary the x:y part, so I can't even make an object that
is c(x:y) and do a
2005 Sep 27
1
failed make install on Solaris 10
I finally got Solaris to successfully make asterisk, using these
instructions:
http://sunfreeware.com/programlistsparc10.html#gcc33
Now though, when I issue the make install, I get this error:
mkdir -p /var/opt/asterisk/spool/system
mkdir -p /var/opt/asterisk/spool/tmp
mkdir -p /var/opt/asterisk/spool/meetme
install -m 755 asterisk /opt/asterisk/usr/sbin/
install: asterisk was not found
2004 Apr 20
1
Channels Idle Status Ring // cdr entries
Hi,
1)
is there a function like "zap destroy channel" to
destroy sip channels?
Zap/10-1 (default s 1 ) Dialing AppDial
(Outgoing Line)
SIP/-081aee08 (pstn-out s 7 ) Ring Dial
Zap/g1/0123456789|50|g
Zap/8-1 (default s 1 ) Dialing AppDial
(Outgoing Line)
SIP/-081aee08 (pstn-out s
2004 Jun 21
1
IAXTel Help
I've searched WIKI and Archives but nothing.
Im getting:
-- Called username:password@iaxtel.com/1800somenumber@iaxtel
Jun 21 17:04:12 WARNING[1158883520]: chan_iax2.c:5097 socket_read: Call
rejected by 69.73.19.178: Unable to negotiate codec
-- Hungup 'IAX2[Iaxtel]/8'
== No one is available to answer at this time
-- Executing Hangup("SIP/104-b8eb", "")
2005 Aug 03
1
chan_capi upgrade
Dear list,
today I installed a new asterisk machine, bound to replace my current pbx.
I am using a Fritz ISDN card; on the old machine with the drivers coming
together with the super-old rpm asterisk installation of SUSE 9.2.
The new machine is finally on asterisk 1.0.9, with chan_capi 0.5.4; now
I am doing a nightly test.
Apparently I can receive calls, but I can't dial out. I seem to
2002 Jul 09
3
building formula objects
I want to write a function to take an argument as the response
variable of a linear model, e.g. to do anova's across a list of
variables, something like the following (except, of course, this
doesn't work):
function(x) { anova(lm(x ~ my.factor,data=my.data)) }
The x in lm() above is getting evaluated at the wrong level. How
can I make this work?
--
Russell Senior ``The two
2003 Dec 11
2
SIP response 403 "That is ugly"
I am trying to make an outgoing call using an iptel
account using Asterisk. I have followed a how-to for
asterisk and iptel found at
http://www.voip-info.org/tiki-index.php?page=Asterisk%20sip%20client%20SER
I am getting the following error message:
Got SIP response 403 "That is ugly -- use From=id next
time (OB)" back from 195.37.77.101
I'm not quite sure what that means. Does
2003 Nov 19
2
ATA-186 Double Digit problems
Hello -
I'm using ATA-186 devices, with RFC2833 DTMF encoding. I am
having problems with routines that input long strings of numbers, in
that I am getting more than a small number of double digit entries.
As an example, I have a section that asks for the user to enter a
call forwarding number, and then puts that number into a database.
Almost always, there are double digits when the