search for: mynum

Displaying 20 results from an estimated 27 matches for "mynum".

2007 Nov 12
4
time plotting problem
.... ================================================= x <- "days 9/26/09 9/27/06 9/28/06 9/29/06 9/29/06 9/29/06 10/1/06 10/1/06 10/2/06 10/3/06" mydata <- read.table(textConnection(x), header=TRUE, as.is=TRUE); mydata mydates <- as.Date(mydata[,1], "%m/%d/%y"); mydates mynums <- rnorm(10) plot(mydates, mynums) ================================================ Example 2 (things go blooy!) non-consecutive dates different years. ================================================= x <- "days 9/26/09 9/27/06 9/28/06 9/29/06 9/29/06 9/29/06 10/1/07 # <- year cha...
2006 Jul 18
1
SpeexEncoder requires 320 samples to process a Frame, not 160
...led.TargetDataLine; import javax.sound.sampled.AudioFormat.Encoding; import java.io.*; import org.xiph.speex.*; public class RecordTest { /** * @param args * @throws Exception */ private static int nbBytes = 0; private static int obBytes = 0; private static int myNum = 0; public static void main(String[] args) throws Exception { AudioFormat format; TargetDataLine line; byte[] buffer; format = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED,8000.0f, 16, 1, 2, 8000.0f, false); DataLine.Info info = new DataLine.Info(TargetDataLine.class, format)...
2011 Feb 14
1
Asterisk Call File using Local Channel not passing Variable back to Dialplan
...rong here: */tmp/spool-file.sh* *----------------------------------------------------------------------* echo "Channel: Local/s at callback_leg*1*/n CallerID: \"Call-back\" <123456> MaxRetries: 0 RetryTime: 10 WaitTime: 45 Context: callback_leg*2* Extension: s Priority: 1 Set: myNum=$1 Set: partyNum=$2 AlwaysDelete: Yes Archive: Yes" > $call_file *Context - callback_leg1* *----------------------------------------------------------------------* [callback_leg1] exten => s,1,Answer() exten => s,1,NoOp(PartyNum=${partyNum}) exten => s,n,NoOp(MyNum=${myNum}) exten...
2006 Mar 31
3
Howto cut the first digit
Hi, sorry for this noop question, but does anybody know how to cut the first digit of a variable? example: 044612345 should be after cut operation: 44612345 My try in the extension.conf: exten => _0[0-9].,2,Cut(mynum=EXTEN,/ ,1) exten => _0[0-9].,3,Dial(Zap/g1/${mynum},90,T) but it didn't work, my problem is the delemiter, I have no delemiter, the default is "-" but how to use the function cut() without an delemiter? Just snip the first digit of a phonenumber. MfG, Christian Reelfs
2009 Feb 26
2
[PATCH 1/2] exa: turn WaitMarker into a NOP.
...(-) diff --git a/src/nouveau_exa.c b/src/nouveau_exa.c index b656ca7..20ad380 100644 --- a/src/nouveau_exa.c +++ b/src/nouveau_exa.c @@ -259,7 +259,7 @@ nouveau_exa_mark_sync(ScreenPtr pScreen) static void nouveau_exa_wait_marker(ScreenPtr pScreen, int marker) { - NVSync(xf86Screens[pScreen->myNum]); + return; } static Bool -- 1.6.1.3
2016 Oct 21
2
Problem with REMAINDER? 957%60 be 15 remainder 57 not 15 remainder -3 ?
I'm not mathematically gifted, but shouldn't 957%60 be 15 remainder 57? Google and my desktop calculator certainly think so. So where am I going wrong here? The following code exten => 7,1,Verbose(Context: ${CONTEXT} Exten:${EXTEN}) same => n,Set(myNum=957) same => n,Set(sec=$[REMAINDER(${myNum},60)]) same => n,Set(sec=$[ABS(${sec})]) same => n,Set(sec=$[${MATH(${sec}+0,i)}]) same => n,Verbose(1,${myNum},${sec}) gives me -- Executing [7 at fromvoipfone201:1] Verbose("PJSIP/6001-00000007", "Context:...
2005 Sep 14
1
TE110P - Asterisk@Home Install Problems
...ited non-zero on 'Zap/14-1' in macro 'hangupcall' == Spawn extension (default, s, 2) exited non-zero on 'Zap/14-1' -- Hungup 'Zap/14-1' ---------------------------- ------------------outbound call -- Executing SetVar("SIP/4901-cd04", "OUTNUM=mynum") in new stack -- Executing Cut("SIP/4901-cd04", "custom=OUT_1|:|1") in new stack -- Executing GotoIf("SIP/4901-cd04", "0?19") in new stack -- Executing Dial("SIP/4901-cd04", "ZAP/g0/mynum") in new stack -- Called g0/m...
2011 Dec 04
2
Extract last 3 characters from numeric vector
Hi all, I have a numeric vector with 1 decimal place, and I'd like to extract the last 3 characters, including the decimal point. The vector ranges from 0 to 20. x <- round(runif(100)*20, digits=1) Some of numbers have 3 characters, and some have 4. I've read up on the substr() function but that extracts characters based on exact positions. How can I extract just the last 3
2006 Dec 11
0
Aculab
...: asterisk-users@lists.digium.comSubject: [Asterisk-Users] Howto cut the first digitDate: Fri, 31 Mar 2006 13:41:38 +0100 Christian Reelfs wrote: > example: > 044612345 > should be after cut operation: > 44612345 > > My try in the extension.conf: > exten => _0[0-9].,2,Cut(mynum=EXTEN,/ ,1) > exten => _0[0-9].,3,Dial(Zap/g1/${mynum},90,T) > > but it didn't work, my problem is the delemiter, I have no delemiter, > the default is "-" but how to use the function cut() without an delemiter? > Just snip the first digit of a phonenumber. Use the...
2009 Mar 08
4
[PATCH 1/5] nv50: implement wfb
...-) diff --git a/src/nouveau_exa.c b/src/nouveau_exa.c index 93fc3c5..074a226 100644 --- a/src/nouveau_exa.c +++ b/src/nouveau_exa.c @@ -259,7 +259,11 @@ nouveau_exa_mark_sync(ScreenPtr pScreen) static void nouveau_exa_wait_marker(ScreenPtr pScreen, int marker) { - NVSync(xf86Screens[pScreen->myNum]); + ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; + NVPtr pNv = NVPTR(pScrn); + + if (!pNv->exa_driver_pixmaps) + NVSync(xf86Screens[pScreen->myNum]); } static Bool @@ -351,17 +355,16 @@ nouveau_exa_modify_pixmap_header(PixmapPtr ppix, int width, int height, if (!nvpix->bo...
2019 Mar 10
4
internal call record
Hello Mynum: 6001 , Othernum: 6002. I can record as follows. But I do not enter individual records for each internal required. I want to do it more smoothly with a Macro. Thanks. exten => _6001,1,NoOp() exten => _6001,n,MixMonitor(${UNIQUEID}.wav,ab) exten => _6001,n,Dial(SIP/6001,20) exten =>...
2005 Sep 15
0
TE110P - Asterisk@Home Install Problems - Televantage 3 T1
...non-zero on 'Zap/14-1' in macro 'hangupcall' == Spawn extension (default, s, 2) exited non-zero on 'Zap/14-1' -- Hungup 'Zap/14-1' ---------------------------- ------------------outbound call -- Executing SetVar("SIP/4901-cd04", "OUTNUM=mynum") in new stack -- Executing Cut("SIP/4901-cd04", "custom=OUT_1|:|1") in new stack -- Executing GotoIf("SIP/4901-cd04", "0?19") in new stack -- Executing Dial("SIP/4901-cd04", "ZAP/g0/mynum") in new stack -- Called...
2009 Nov 04
1
[PATCH] nv10/exa: Spring-cleaning
...{ PICT_x8r8g8b8, 0x900 }, + { PICT_a8r8g8b8, 0x900 }, + {}, + +}, nv10_rt_format[] = { + { PICT_r5g6b5, 0x103 }, + { PICT_x8r8g8b8, 0x108 }, + { PICT_a8r8g8b8, 0x108 }, + {}, +}; + +static int +get_tex_format(PicturePtr pict) +{ + ScrnInfoPtr pScrn = xf86Screens[pict->pDrawable->pScreen->myNum]; + NVPtr pNv = NVPTR(pScrn); + + /* If repeat is set we're always handling a 1x1 texture with + * ARGB/XRGB destination, in that case we change the format to + * use the POT (swizzled) matching format. + */ + struct pict_format *format = + pict->repeat != RepeatNone ? nv10_tex_format_po...
2012 Feb 15
11
[Patches][nouveau/ddx]: Improvements to bufferswap implementation and timestamping
Hi, here a set of patches against the nouveau-ddx. This is an extended and revised set, based on Francisco Jerez feedback from autumn last year. [1/9] Makes pageflipping work again on X-Server 1.12rc. It apparently stopped working somewhere around Xorg 1.11+. [2/9] Implements handling of pageflip completion events from the kernel. Francisco Jerez argument against including it was that the
2009 Dec 11
2
[PATCH 1/2] exa: Pre-G80 tiling support.
...12 +445,13 @@ nouveau_exa_destroy_pixmap(ScreenPtr pScreen, void *priv) } bool -nouveau_exa_pixmap_is_tiled(PixmapPtr ppix) +nv50_style_tiled_pixmap(PixmapPtr ppix) { - if (!nouveau_pixmap_bo(ppix)->tile_flags) - return false; + ScrnInfoPtr pScrn = xf86Screens[ppix->drawable.pScreen->myNum]; + NVPtr pNv = NVPTR(pScrn); - return true; + return pNv->Architecture == NV_ARCH_50 && + nouveau_pixmap_bo(ppix)->tile_flags; } static void * @@ -453,7 +462,7 @@ nouveau_exa_pixmap_map(PixmapPtr ppix) struct nouveau_bo *bo = nouveau_pixmap_bo(ppix); unsigned delta = nouve...
2012 Jul 27
1
[PATCH] nvc0: Add and enable vblank support
...vc0_accel.c index c5da0cd..4cae0d2 100644 --- a/src/nvc0_accel.c +++ b/src/nvc0_accel.c @@ -25,6 +25,36 @@ #include "nvc0_shader.h" #include "nve0_shader.h" +void +NVC0SyncToVBlank(PixmapPtr ppix, BoxPtr box) +{ + ScrnInfoPtr pScrn = xf86Screens[ppix->drawable.pScreen->myNum]; + NVPtr pNv = NVPTR(pScrn); + struct nouveau_pushbuf *push = pNv->pushbuf; + int crtcs; + + if (!nouveau_exa_pixmap_is_onscreen(ppix)) + return; + + crtcs = nv_window_belongs_to_crtc(pScrn, box->x1, box->y1, + box->x2 - box->x1, +...
2004 Jun 09
0
failover for voip providers (i.e. Dial() doesn't give enough options)
...ompleted. I don't want to try calling the number again if it really was busy, only if the VOIP provider couldn't complete the call. Is there some way to access the call failure reason in the dialplan and branch based on that? i.e. something like exten => _NXXNXXXXXX,1,SetCIDNum(${MYNUM}) exten => _NXXNXXXXXX,2,Dial(${VOIP_PREFERRED}/${EXTEN}) exten => _NXXNXXXXXX,3,Congestion exten => _NXXNXXXXXX,103,GotoIf($[${CALLFAILREASON} == BUSY]?:202) exten => _NXXNXXXXXX,104,Busy exten => _NXXNXXXXXX,202,Dial(${VOIP_BACKUP}/${EXTEN}) exten => _NXXNXXXXXX,203,Congestion e...
2007 Feb 27
3
How to use bash command in R script?
Dear All: Maybe it is a too basic question, but I don't how to find the answer. Sorry for that. What I want to do is call a shell command, which will provide two numbers, and assign those numbers to a vector. For example: The following command: $mxresult.sh ABC.mx mxresult.sh is a script written by myself and ABC.mx is a Mx script. I can get two numbers, 126.128 and 29, with this command.
2011 Jun 01
1
Overloading S4 methods
Dear all, I am experiencing some problems with S4 method overloading. I have defined a generic for graphics:plot, using setGeneric("plot", useAsDefault = plot) and with importFrom('graphics', 'plot') and exportMethods('plot') in the NAMESPACE file of pkg A. I then proceed to define a method for signature c('myS4class', 'missing'). This works
2019 Mar 09
2
internal call record
> Show us the parts of your dial plan which: > > a) work for recording incoming / outgoing calls > > b) do not work for recording internal calls > > then we might be able to give you a clue what's wrong. Hello For example: My phone number is 1000, the other's number is 1001. These numbers are in the same PBX (asterisk). I want 1000, 1001 can call to record audio