similar to: AGI with PHP

Displaying 19 results from an estimated 19 matches similar to: "AGI with PHP"

2007 Sep 04
1
VSP authentication to incorrect context
All, I'm hoping someone can direct me as to why when someone calls my DID Asterisk tries to authenticate the incoming call on my outbound context. If I remove the GoTalk context I can receive incoming calls. Outbound calls work fine while I have the GoTalk context in place. The error I am getting when someone calls the DID is WARNING[16072]: chan_sip.c:8272 check_auth: username mismatch,
2007 Nov 02
3
Date Issues + Oracle + RoR
Hi Experts I''ve a product like this ID -> 1 Name -> Xyz Price -> 30 Created_at -> 02-NOV-07 from_date = Date.new(2, 10, 07) to_date = Date.new(2, 10, 07) @product = Product.find_by_sql("select * from products where created_at between from_date and to_date") code works perfectly, buy my issue is i dont get any data. always says no record found but if i use
2009 Feb 22
6
CHECK if param exists? please help
hi folks. i want to check if a param exists if not to set it to a default value for my date range filter. in my controller i have: @from_date = Date.strptime(params[:startdate],"%d/%m/%Y") @to_date = Date.strptime(params[:enddate],"%d/%m/%Y") @articles = @results.find(:all, :conditions => [ "created_at >= ? and created_at
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): ;
2013 Oct 20
1
error cant write to function ODBC_DEVICES
Hi all asterisk 1.8.23 I have odbc all setup to mysql but cant figure out why the dialplan wont write to the odbc function fubc_odbc.conf [DEVICES] dsn=device-conn ;dsn in res_odbc not odbc.ini readsql=SELECT call.callNum, call.city, devices.callId, devices.id FROM call INNER JOIN devices ON call.id = devices.callId WHERE deviceNumber = '${ SQL_ESC(${ARG1})}'
2006 Dec 18
2
AGI Help Please
List, I finally decided to break down & start playing with AGI scripts, but for the life of me, I can't figure out what I am doing wrong. Below is a super simple script to run a query in mysql to see how many call records there are for the extension calling in, then print the total in the CLI. This is all I get on the CLI: -- Executing AGI("SIP/216-0baa",
2013 Sep 06
1
11.4.0: iax packets lost by amazon ec2
I have 11.4.0 on an Amazon EC2 instance. SIP works fine, but I can't get iax to work. I've opened 4569 in the EC2 Security Group. I'm using the zoiper client. Using tcpdump I can see the zoiper packets coming in on 4569, but nothing shows on the asterisk cli. Frame 33: 79 bytes on wire (632 bits), 79 bytes captured (632 bits) on interface 0 0000 12 31 3b 12 40 84 fe ff ff ff
2010 Nov 10
0
Asterisk 1.6.2.13 IAX2 Realtime issue
Hi I have configured IAX2 realtime in Asterisk 1.6.2.13. when I cannect a client to realtime extension, always the state of extension is "UNKNOW" like: * Name : marco Secret : <Set> Context : phones Parking lot : Mailbox : 2345 at default Dynamic : Yes Callnum limit: 0 Calltoken req: Auto Trunk : No Encryption : No
2007 Aug 24
0
MYSQL problem and configuration
Hello,I am new to asterisk but i have vbeen scriptinh PHP SQL and webLanguages for a long time.I can Give you a solution but using php AGI:extensions.con-----> AGI(connect.agi);/var/lib/asterisk/agi-bin/connect.agi :#!/usr/bin/php -q<?phpset_time_limit(0);ob_implicit_flush();error_reporting(0);//Initialisation des entr?e-sortiefunction init() {#create file handles if
2009 May 27
1
PHP AGI Problems
(Accidentally posted this to asterisk-dev, should be here) fgets is only returning one character... either when run as an AGI or run as a test on PHP on CLI... Example, enter 3333, then fgets returns '3'. Also, GET DATA seems to be returning early and the loop keeps prompting 'invalid'... Any suggestions on how to improve my AGI class so it actually works? Thanks. [code]
2010 Aug 13
0
some helpful tips on using RODBC
Hey everyone, I don't have a question. Instead some helpful advice with things I've learned from trying to connect 'R' to databases using RODBC. ROBDC is a very handy tool that, once you have everything fixed up nicely, is a great way to have scripts run fairly autonomously, safe in the knowledge that data isn't accidentally messed up. But I was fairly ignorant
2020 Jun 08
0
pjsip extensions rings but call drop on answer
Hi, I created an IAX2 trunk between my old Asterisk 1.4 server (A) and my new one with v. 16.10.0 (B). The trunk seems to be up, and the calls are initiated, eg. an extension from A can dial an extension in B which rings. However, as soon as the extension in B answers, the call is terminated. This is what I see in the console of B: -- Called PJSIP/4053 -- PJSIP/4053-00000002 is ringing
2006 Aug 18
0
ActiveRecord Benchmarking
I''m running a benchmark to check database performance. I don''t quite understand the results. The benchmarking code looks like this class DBTable < ActiveRecord::Base ActiveRecord::Base.establish_connection( :adapter => "mysql", :socket => "/var/lib/mysql/mysql.sock", :username => "..user..",
2010 Jun 15
4
Unable to pickup an extension, tryi
Hi! > How to do this ?? > To proceed with your answer on PICKUPMARK, where do I put this ??? Look at the example for Asterisk 1.4 on this page: http://www.voip-info.org/wiki/view/Asterisk+cmd+Pickup Philipp
2004 Aug 06
2
XML statistics on remote server
what i did in this situation was dump the stats/status file to the local server through a lynx --dump call from php .. and then i also update a sql table to reflect the changes so i can poll that instead .. a. <p>On Thu, 26 Feb 2004, MacSym wrote: > > Hi everybody, > > I am wondering if it is possible to generate the XML/XSL files on a remote > server (status.xsl,
2013 Sep 09
1
Package installation and path.package
Dear R-Devels, I am writing right now my own package that makes use of 'tempfile' and there within with 'path.package'. When I install it, I get the error: Error in path.package("mypackage") : none of the packages are loaded. Here is the code, I use in my package: ".defaultDBPath" <- function() { db.path <- tempfile(pattern =
2007 Jul 26
0
Rake task database to XML export
Hi all... I am a new bie of ruby rails. i was working with some task to get a database table to be exported in to an XMLFile. I need to write a raketask for that. Can some one please help me with some good stuff having with you regarding the rake task file written to do that dbtable to xml file file conversions. Please help me with some sample code or links Thanks to all in advance --
2010 Feb 09
1
Help on R functions
Dear R Experts, I have written a following function :- myfunction<- function(servername,dbname,dbtablename){ library(RODBC) channel <- odbcDriverConnect("driver=SQL Server;server=servername") initdata<- sqlQuery(channel,paste("select * from dbname .. dbtablename")) return(dim(initdata)) } I have written this function which has input parameters like servername
2013 Sep 18
1
Design for classes with database connection
Dear R-Devels, I am designing right now a package intended to simplify the handling of market microstructure data (tick data, order data, etc). As these data is most times pretty huge and needs to be reordered quite often (e.g. if several security data is batched together or if only a certain time range should be considered) - the package needs to handle this. Before I start, I would like to