search for: strpos

Displaying 20 results from an estimated 25 matches for "strpos".

2005 Sep 13
1
populating asterisk realtime tables from configfiles
...NFO); if(!DB::isError($db)) { //we got the db connection $extensions = file('extensions.conf'); foreach($extensions as $extension) { $application = ''; if (substr($extension,0,1)=='[') { $context=substr($extension,1,strpos($extension,']')-1); } else if (substr($extension,0,5)=='exten') { $rule=explode(',',$extension); $exten=trim(substr($rule[0],strpos($rule[0],'=>')+2)); $priority=$rule[1];...
2003 Dec 29
1
Agent setup
Dear Group, I have been successful in setting up the Agents, queues and getting agents to log in. Is there a way that I could configure the system so that the agent is called back. i.e. the agent logs into the system, a call is destined for them and their phone rings. If some one has this setup I would be very interested in hearing from them. Warm Regards and Thanks --------------- Shad
2001 Jun 04
0
Re: unix R CMD check problem
...then > the result of "R CMD check"): > > 0[218]0 nightingale:~/Snackbar > ls -R > .: > DESCRIPTION R man src > > ./R: > unix > > ./R/unix: > direct.read.R flat.read.R getncvar.R zzz.R > direct.write.R flat.write.R strpos.R > > ./man: > direct.read.Rd flat.read.Rd getncvar.Rd > direct.write.Rd flat.write.Rd strpos.Rd > > ./src: > Makevars dflatread.f flatread.f iflatread.f strpos.f > Snackbar.so dflatwrite.f flatwrite.f iflatwrite.f > ddirectread.f...
2004 Aug 06
3
icecast2 ogg vorbis client request headers
...k with mp3, but ogg does not want to work. im testing with winamp, you think that may be the issue? <p><p>fwrite($fp,"GET /mymp3 HTTP/1.1\nUser-Agent:$HTTP_USER_AGENT\n\n"); for ($i=0; $i<120; $i++) { if (feof($sp)) break; $str.=fread($sp,4096); usleep(200000); if (strpos($str,"\r\n\r\n")) break; } flush(); echo substr($str,strpos($str,"\r\n\r\n")+4); flush(); while(!$shutdown_flag) { $buf=fread($sp,4096); if (feof($sp)) $shutdown_flag=1; echo $buf; flush(); usleep(75000); } <p>Dave St John Mediacast1 Administration Need Suppo...
2018 Jan 23
0
Now playing (PHP example)
...453.110 Safari/537.36'; $opts = [ 'http' => [ 'method' => 'GET', 'header' => 'Icy-MetaData: 1', 'user_agent' => $ua ] ]; if (($headers = get_headers($streamingUrl))) foreach ($headers as $h) if (strpos(strtolower($h), 'icy-metaint') !== false && ($interval = explode(':', $h)[1])) break; $context = stream_context_create($opts); if ($stream = fopen($streamingUrl, 'r', false, $context)) { while($buffer = stream_get_contents($stream, $interval, $offs...
2016 Apr 13
4
recreating extensions.conf from live dialplan ?
On 4/13/16 11:57 AM, A J Stiles wrote: > You could try > *CLI> dialplan show Between my older backup and dialplan show, I guess that's my best shot. Thanks :D
2018 Jan 23
2
Now playing (PHP example)
Wow, thank you so much! I completely forgot about the status-json.xsl file... :D 2018-01-23 15:38 GMT+01:00, unosonic <un at aporee.org>: > Danijela Popović: >> Hi all, >> Basically there's my question in the subject. I need a simple example >> of now playing artist, song, and listeners. Can somebody write it down >> for me? > > no time, sorry >
2005 Jan 13
4
Manager API !!!!!!!!!
Hello all Has anyone had any success with the Manager API ? I am trying to check an extension status without too much luck I have the following <?php $fp = fsockopen("127.0.0.1", 5038, $errno, $errstr, 30); if (!$fp) { echo "$errstr ($errno)<br />\n"; } else { $out = "Action: Login\r\n"; $out .=
2004 Aug 06
0
icecast2 ogg vorbis client request headers
...nt to work. > im testing with winamp, you think that may be the issue? > > > > fwrite($fp,"GET /mymp3 HTTP/1.1\nUser-Agent:$HTTP_USER_AGENT\n\n"); > for ($i=0; $i<120; $i++) { > if (feof($sp)) break; > $str.=fread($sp,4096); > usleep(200000); > if (strpos($str,"\r\n\r\n")) break; > } > > flush(); > echo substr($str,strpos($str,"\r\n\r\n")+4); > flush(); I'm guessing here... so this could be completely wrong - but is this call to 'echo' just above intended to send the HTTP headers? What about the rest...
2004 Aug 06
3
icecast2 ogg vorbis client request headers
...think that may be the issue? > > > > > > > > fwrite($fp,"GET /mymp3 HTTP/1.1\nUser-Agent:$HTTP_USER_AGENT\n\n"); > > for ($i=0; $i<120; $i++) { > > if (feof($sp)) break; > > $str.=fread($sp,4096); > > usleep(200000); > > if (strpos($str,"\r\n\r\n")) break; > > } > > > > flush(); > > echo substr($str,strpos($str,"\r\n\r\n")+4); > > flush(); > > I'm guessing here... so this could be completely wrong - but is this call to > 'echo' just above intended to send...
2005 Oct 31
3
Still corrupt indexes in 1A4
...tion: gets a line from the IMAP server, * no matter how big it may be. * @param stream imap_stream the stream to read from * @return string a line */ function sqimap_fgets($imap_stream) { $read = ''; $buffer = 4096; $results = ''; $offset = 0; while (strpos($results, "\r\n", $offset) === false) { if (!($read = fgets($imap_stream, $buffer))) {<- THIS IS LINE 93 /* this happens in case of an error */ /* reset $results because it's useless */ $results = false; break; } if...
2006 Jul 26
5
Monitor traffic/bandwidth by mountpoint
I saw a request for this feature raised several years ago. Has this been implemented yet? If not, how are users monitoring traffic on port 8000, and even better can you split it up by mountpoint? I want to know how much traffic our icecast clients are using each month. Thank you, Shannon
2004 Aug 06
3
icecast2 ogg vorbis client request headers
Can anyone shed some light as to what icecast2 accepts as a client request methods for ogg vorbis, apparently there is a difference bettween the way icecast2 handles mp3 and ogg vorbis. php example for mp3 that works fwrite($fp,"GET /mymp3 HTTP/1.1\nUser-Agent:$HTTP_USER_AGENT\n\n"); php example for ogg that doesnt work fwrite($fp,"GET /mymnt.ogg
2005 Jan 24
3
changing ldap passwords?
Samba experts, I am using Samba 3.0.8 on an AIX 5.1 system with ldap authentication. I have ldap working so that users can authenticate in their samba account via ldap. However, I am trying to figure out the best method for allowing users to change their ldap samba account password. What is the best method to allow end users to change their LM/NT passwords for Samba via LDAP? Should
2012 Oct 02
2
Questions on converting to ConfBridge
I'm looking at what would be involved in converting from MeetMe to ConfBridge and there seems to be a lot of missing administrative things, but I hope I'm just missing it. We all know about the missing realtime linkage. That's a major nuisance, but can be worked around. More serious is that the CLI command to display users in a ConfBridge don't show the caller ID information, so
2006 May 16
1
Horde/IMP setup
...ument supplied for foreach() in /usr/local/www/horde/imp/lib/IMP.php on line 1197, referer: https://mikestammer.com/horde/services/portal/sidebar.php Line 1197 looks like this: foreach ($_SESSION['imp']['namespace'] as $key => $val) { if (!empty($key) && (strpos($mailbox, $key) === 0)) { $cache[$key][$mailbox] = $val; return $val; } } Anyone have any tips or ideas?
2013 Feb 23
0
click2call with AMI?
...my code: $user = "usernamr"; $secret = "secret"; $channel = 'SIP/' . $sip; $context = "from-internal"; $waitTime = "20"; $timeout = 20000; $priority = "1"; $maxRetry = "2"; $pos = strpos($number, "local"); if ($number == null): exit(); endif; if ($pos === false) : $errno = 0; $errstr = 0; $callerId = $number; $oSocket = fsockopen("localhost", 5038, &$errno, &$errstr, 20); if (!$oSocket)...
2007 Jul 17
0
Error when prototype.js is loaded
...ode for my menu shows an error. This area was coded prior to implementing prototype.js, so it is not dependent on prototype, but other site functions will be. Here is the error that I get: invalid quantifier +);}); } catch (e) { if (e != $break) { throw e; } } return this; } [Break on this error] strPos = currURL.search(arrSections[key]); Everything still works properly, but this js error still shows. Any input is appreciated. Thanks, Jen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoff...
2014 Mar 28
0
Need some PHP/AMI guidance please
...$value){ if(!strlen(stristr($value,'Asterisk'))>0 && !strlen(stristr($value,'Response'))>0 && !strlen(stristr($value,'Message'))>0 && !strlen(stristr($value,'Event'))>0 && strlen(strpos($value,' '))>0) php_table($value);; } echo "</table>"; fclose($ami); } function php_table($value){ $row1 = true; $value = explode(" ", $value); foreach($value as $field){ if($row1...
2006 May 23
2
Outband call from php script
Hello, I am trying to make the following... Can someone tell me if it is possible? Is someone willing to do it from an asterisk@home box? 1. I send an http request to asterisk@home box. Ex: http://asterisk@home/call.php?phone=0033102030405&code=12345 2. Application will call phone number 0033102030405 (using a sip provider) 3. Application will play a pre-recorded voice prompt 4. Application