Re: [Freeswitch-users] ODBC through JS
[EMAIL PROTECTED] 2008-10-20 19:34:29 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: 01000 CODE 0 ERROR: [unixODBC][Driver Manager]Can't open lib '/usr/local/lib/libmyodbc3.so' : /usr/local/lib/libmyodbc3.so: file too short check if your .so has read permissions i recoomend re-installing unixODBC or get some other drivers, i.e. if any provided by MySQL for ODBC On Mon, Oct 20, 2008 at 8:39 PM, Baskar [EMAIL PROTECTED] wrote: Hi, I have done all the changes but i cant able to run jsrun odbc.js [EMAIL PROTECTED] 2008-10-20 19:34:29 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: 01000 CODE 0 ERROR: [unixODBC][Driver Manager]Can't open lib '/usr/local/lib/libmyodbc3.so' : /usr/local/lib/libmyodbc3.so: file too short 2008-10-20 19:34:29 [ERR] mod_spidermonkey_odbc.c:235 odbc_exec() Database is not connected! 2008-10-20 19:34:29 [ERR] odbc.js:9 mod_spidermonkey() TypeError: session.hangup is not a function Some one correct me where i am wrong *odbc ini:* [ODBC Data Sources] myodbc = MySQL ODBC 2.50 Driver DSN myodbc3 = MySQL ODBC 3.51 Driver DSN [myodbc] Driver = /usr/local/lib/libmyodbc.so Description = MySQL ODBC 2.50 Driver DSN SERVER = localhost PORT = 3306 USER = optimus Password = optimus Database = test OPTION = 3 SOCKET = [myodbc3] Driver = /usr/local/lib/libmyodbc3.so Description = MySQL ODBC 3.51 Driver DSN SERVER = localhost PORT = 3306 USER = optimus Password = optimus Database = test OPTION = 3 SOCKET = [Default] Driver = /usr/local/lib/libmyodbc3.so Description = MySQL ODBC 3.51 Driver DSN SERVER = localhost PORT = 3306 USER = optimus Password = optimus -- Warm Regards, N.Baskar ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Regards, Gayatri Kulkarni ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] regarding conference (basic questions)
On Mon, Oct 20, 2008 at 7:00 PM, Michael Jerris [EMAIL PROTECTED] wrote: Call it or originate a call to it: http://wiki.freeswitch.org/wiki/Mod_commands#originate to the user, or the conference? http://wiki.freeswitch.org/wiki/Mod_commands#originate call it, originate calls to it, or conference dial: http://wiki.freeswitch.org/wiki/Mod_conference#dial ...and after i call it/originate call/conf dial, do i need to bridge the calls? http://wiki.freeswitch.org/wiki/Mod_conference#dial Correct, that is not a valid syntax ... meaning there is no way to add people simultaneously? how do i exit from a conference using command line? for that matter how can i use any of the conference features using FS console? can i use those features for a UUID? Yes. How ?? Mike ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Regards, Gayatri Kulkarni ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] Freeswitch and XML-RPC
http://wiki.freeswitch.org/wiki/Mod_xml_rpc Plus, for streaming a file, see to it that you can use port 8080 for it for instance, if you want to read the logfile say - freeswitch.log, configure logfile.conf.xml to to generate the logs in the htdocs directory - root for xml rpc. You can definitely access it from there -- Regards, Gayatri Kulkarni On Wed, Aug 27, 2008 at 8:38 PM, Klaus Teller [EMAIL PROTECTED] wrote: Hi, It seems i can send commands to Freeswitch using XML-RPC. The only document i could find on this is: http://wiki.freeswitch.org/wiki/Freeswitch_XML-RPC Given that i'm using Java, i was wondering what else (beside originating a call) can I do via XML-RPC. How do i send for instance DTMF read requests, how do i send a request to stream a file? Any other document i could check to know what i can do with this? I would think that most of the functions that are available through Javascript are available via XML-RPC. But how do i send these commands? Thanks, Klaus. -- Pt! Schon das coole Video vom GMX MultiMessenger gesehen? Der Eine für Alle: http://www.gmx.net/de/go/messenger03 ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] Newbie: Avaya SES Freeswitch 407 Proxy Authentication error
Didn't get that On Thu, Oct 16, 2008 at 6:13 PM, Anthony Minessale [EMAIL PROTECTED] wrote: You could always set up an acl so FS won't send auth to that particular host. On Thu, Oct 16, 2008 at 12:58 AM, Gayatri Kulkarni [EMAIL PROTECTED] wrote: UA1 discovers P1 as a result of configuration, DHCP assignment or other similar operation, also outside the scope of this document. REGISTRAR has a similar *default outbound proxy* relationship with P3. Check if you have this configured on the Avaya SES as your FS. To do that, login to admin interface of Avaya SES and in the setup side bar, there's a link Called 'Hosts' click on the link for this home and check what outbound proxy has been specified Is your SES box a Home or Edge or Home/Edge combo?The Hosts link appears only on Edge or home/Edge combo Thanks Thomas! -- Regards, Gayatri Kulkarni On Wed, Oct 15, 2008 at 7:12 PM, Gerry Hull [EMAIL PROTECTED] wrote: Gayatri, Any idea on how to enable this response in Freeswitch? David, Not sure of the lr... On Wed, Oct 15, 2008 at 4:38 AM, Gayatri Kulkarni [EMAIL PROTECTED] wrote: Thanks David! Gerry, From the debug info you have sent, looks like Avaya SES asks for PAI i.e Proxy Authentication Indication - It's a kind of challenge response authentication. After it receives the user's digest in response to this request (again), it authenticates the user. This is the normal behavior of Avaya SES. the users' digest is not sent again it seems! On Wed, Oct 15, 2008 at 1:52 PM, David Knell [EMAIL PROTECTED] wrote: On Oct 15, 2008, at 9:00 AM, Gayatri Kulkarni wrote: Record-Route: sip:10.0.2.154:5060;lr Record-Route: sip:10.0.2.151:5061;lr;transport=tls what's the 'lr' next to the port number? short for 'loose routing' - see here for a bit of an explanation: http://www.tech-invite.com/Ti-sip-dialog.html --Dave ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Regards, Gayatri Kulkarni ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:[EMAIL PROTECTED] [EMAIL PROTECTED] GTALK/JABBER/PAYPAL:[EMAIL PROTECTED][EMAIL PROTECTED] IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:[EMAIL PROTECTED] [EMAIL PROTECTED] iax:[EMAIL PROTECTED]/888 googletalk:[EMAIL PROTECTED][EMAIL PROTECTED] pstn:213-799-1400 ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Regards, Gayatri Kulkarni ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] HTTP methods
Hey Michael, Thanks :) that's insightful! I will document it surely I was hoping to know if Freeswitch implements the HTTP methods like GET, POST etc. If yes, which ones? Looks like it doesn't though Can I open input-output streams at {prefix}/freeswitch/htdocs ? -- Regards, Gayatri Kulkarni On Wed, Oct 15, 2008 at 12:09 PM, Michael Collins [EMAIL PROTECTED]wrote: It's all in mod_xml_rpc. I've been trying to get it all doc'd but I'm way behind… J Of course, I'm the guilty party for putting webapi in the mod_perl page on the wiki. Sadly, webapi shows up only on this page which means I'm slacking. This page needs some love: http://wiki.freeswitch.org/wiki/Mod_xml_rpc If you can wikify some of this knowledge that would be great. Here are some quick tips regarding the built-in Abyss web server: HTTP only, no HTTPS; use port 8080 Accessed via URL like so: http://192.168.1.1:8080/ Need username/password (typical HTTP authentication I believe) Username/password can be modified in conf/autoload_configs/xml_rpc.conf.xml The webroot on a typical *nix install is /usr/local/freeswitch/htdocs http://192.168.1.1:8080/ will give a directory listing of /usr/local/freeswitch/htdocs Other HTML/JavaScript/etc. files in htdocs will get served up as requested There are various API access methods: api, webapi, txtapi Each does something a little different depending upon the scenario When using an API command that has more than one word, use a question mark to separate the first and second words, then a space for the rest (See examples below) Try these different combos on your own install; be sure to enable mod_xml_rpc in modules.conf.xml! Replace the sample IP address (192.168.1.1) with your actual FS IP address. http://192.168.1.1:8080/api/version http://192.168.1.1:8080/webapi/version http://192.168.1.1:8080/txtapi/version http://192.168.1.1:8080/api/show?channels http://192.168.1.1:8080/webapi/show?channels http://192.168.1.1:8080/txtapi/show?channels http://192.168.1.1:8080/api/sofia?status%20profile%20internal http://192.168.1.1:8080/webapi/sofia?status%20profile%20internal http://192.168.1.1:8080/txtapi/sofia?status%20profile%20internal For kicks, try these: http://192.168.1.1:8080/api/help http://192.168.1.1:8080/webapi/help http://192.168.1.1:8080/txtapi/help Depending upon the API command being used, the api/webapi/txtapi choice will differ. I recommend playing with it to figure out which one works best for you. Sometimes you'll like the way that webapi wraps your output in nice tables w/ alternating background colors. Sometimes the output of the API command doesn't support that fancy wrapping. As you tinker you'll see which method works best for the commands you want to use. You can access just about anything you could otherwise type at the FS CLI: http://192.168.1.1:8080/webapi/insert-your-commands-here If you like it, doc it! J -MC P.S. – for extra fun try this one: http://192.168.1.1:8080/api/voicemail/web -- *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *On Behalf Of *Gayatri Kulkarni *Sent:* Tuesday, October 14, 2008 10:49 PM *To:* freeswitch-users@lists.freeswitch.org *Subject:* Re: [Freeswitch-users] HTTP methods great! I found an occurece of webapi in the documentation for mod_perl but, is this share generated when we install FS, or when we enable mod_xm_rpc or something, because i can't find it created on my system. If yes, what is it's default path? Or, do I have to create it and implement the HTTP methods myself?? -- Regards, Gayatri Kulkarni On Tue, Oct 14, 2008 at 6:49 PM, Anthony Minessale [EMAIL PROTECTED] wrote: there is a special /api /webapi and /textapi share on the site that will point at any api command doing GET or POST for instance: /webapi/status I'm pretty sure it's documented somewhere. On Tue, Oct 14, 2008 at 6:57 AM, Gayatri Kulkarni [EMAIL PROTECTED] wrote: Hi Guys, The XmlRpc is implemented from the web port - 8080 Can we also specify which HTTP methods FS implements - like GET, POST, PUT, DELETE, etc ?? in xml_rpc.conf.xml or some place ? Is there a way to implement these? -- Regards, Gayatri Kulkarni ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:[EMAIL PROTECTED] [EMAIL PROTECTED] GTALK/JABBER/PAYPAL:[EMAIL PROTECTED][EMAIL PROTECTED] IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:[EMAIL PROTECTED] [EMAIL PROTECTED] iax:[EMAIL PROTECTED]/888 googletalk:[EMAIL PROTECTED
Re: [Freeswitch-users] Newbie: Avaya SES Freeswitch 407 Proxy Authentication error
Record-Route: sip:10.0.2.154:5060;lr Record-Route: sip:10.0.2.151:5061;lr;transport=tls what's the 'lr' next to the port number? Did you notice the Content-Length for your INVITE is 0? Usually taking an etheral trace and analyzing it helps in case of Avaya SES - even for administration issues -- Regards, Gayatri Kulkarni On Tue, Oct 14, 2008 at 7:48 PM, Gerry Hull [EMAIL PROTECTED] wrote: On Mon, Oct 13, 2008 at 12:59 PM, Brian West [EMAIL PROTECTED] wrote: You need to add param name=extension value=avayaSES/ otherwise the register contact will be the username. aka 3824, its trying to route to 3824 in context public. /b On Oct 13, 2008, at 9:53 AM, Gerry Hull wrote: Hi Brian, Still no luck. I guess I'm still missing something. Let me explain and provide more details. We have several Avaya extensions registered in FS; we have the Avaya switch direct inbound calls to these extensions. The idea is to park the inbound calls in FS; we will then transfer the calls later using event_socket. However, we cannot get FS to answer the calls due to the proxy authentication error. Here's the configuration: /sip_profiles/internal/AvayaInternal.xml: include gateway name=Avaya param name=extension value=Avaya/ param name=username value=3823/ param name=password value=xxx/ param name=proxy value=1.2.3.4/ param name=realm value=1.2.3.4/ param name=expire-seconds value=60/ param name=register value=true/ param name=register-transport value=udp/ param name=retry_seconds value=30/ /gateway /include /dialplan/public.xml: extension name=Avaya condition field=destination_number expression=^(3823)$ action application=transfer data=5060 XML default/ /condition /extension and here's the debug info: INVITE sip:[EMAIL PROTECTED]:5060;transport=udp SIP/2.0 Call-ID: 05c8e85a1a5dd14ea549c5a6a00 CSeq: 1 INVITE From: Station 216 sip:[EMAIL PROTECTED]:5061 ;tag=05c8e85a1a5dd14da549c5a6a00 Record-Route: sip:10.0.2.154:5060;lr,sip:10.0.2.151:5061 ;lr;transport=tls To: 3823 sip:[EMAIL PROTECTED] [EMAIL PROTECTED] Via: SIP/2.0/UDP 10.0.2.154:5060;branch=z9hG4bK03030353535336363671ef.0,SIP/2.0/TLS 10.0.2.151;psrrposn=2;received=10 .0.2.151;branch=z9hG4bK05c8e85a1a5dd14fa549c5a6a00 Content-Length: 150 Content-Type: application/sdp Contact: Station 216 sip:[EMAIL PROTECTED]:5061;transport=tls Max-Forwards: 69 User-Agent: Avaya CM/R014x.00.1.731.2 Allow: INVITE,CANCEL,BYE,ACK,PRACK,SUBSCRIBE,NOTIFY,REFER,OPTIONS Accept-Contact: *;+avaya-cm-line=1 Supported: 100rel,timer,replaces,join,histinfo Alert-Info: cid:internal@sdc.com [EMAIL PROTECTED] ;avaya-cm-alert-type=internal Min-SE: 1200 Session-Expires: 1200;refresher=uac P-Asserted-Identity: Station 216 sip:[EMAIL PROTECTED]:5061 History-Info: sip:[EMAIL PROTECTED] [EMAIL PROTECTED];index=1,3823 sip:[EMAIL PROTECTED] [EMAIL PROTECTED];index=1.1 v=0 o=- 1 1 IN IP4 10.0.2.151 s=- c=IN IP4 10.0.2.152 t=0 0 m=audio 3188 RTP/AVP 0 127 a=rtpmap:0 PCMU/8000 a=rtpmap:127 telephone-event/8000 tport(01833120): msg 01872960 (1194 bytes) from udp/10.0.2.154:5060/sipnext= nta: received INVITE sip:[EMAIL PROTECTED]:5060;transport=udp SIP/2.0 (CSeq 1) nta: canonizing sip:[EMAIL PROTECTED]:5060 with contact nta: INVITE (1) going to a default leg nta: timer set to 200 ms soa_clone(static::017FD508, 017FED48, 0188E450) called soa_set_params(static::0189BB50, ...) called nta_leg_tcreate(00FEDDE8) soa_init_offer_answer(static::0189BB50) called soa_set_remote_sdp(static::0189BB50, , 0189E804, 150) called nua(0188E450): adding session usage tport_tsend(01833120) tpn = UDP/10.0.2.154:5060 tport_resolve addrinfo = 10.0.2.154:5060 tport(01833120): not found by name UDP/10.0.2.154:5060 tport_vsend(01833120): 515 bytes of 515 to UDP/10.0.2.154:5060 tport_vsend returned 515 send 515 bytes to udp/[10.0.2.154]:5060 at 14:09:50.666454: SIP/2.0 100 Trying Via: SIP/2.0/UDP 10.0.2.154:5060;branch=z9hG4bK03030353535336363671ef.0,SIP/2.0/TLS 10.0.2.151;psrrposn=2;received=10 .0.2.151;branch=z9hG4bK05c8e85a1a5dd14fa549c5a6a00 Record-Route: sip:10.0.2.154:5060;lr Record-Route: sip:10.0.2.151:5061;lr;transport=tls From: Station 216 sip:[EMAIL PROTECTED]:5061 ;tag=05c8e85a1a5dd14da549c5a6a00 To: 3823 sip:[EMAIL PROTECTED] [EMAIL PROTECTED] Call-ID: 05c8e85a1a5dd14ea549c5a6a00 CSeq: 1 INVITE User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-9570M Content-Length: 0
Re: [Freeswitch-users] Newbie: Avaya SES Freeswitch 407 Proxy Authentication error
I haven't used Freeswitch with Avaya SES. I have used Avaya SES with Avaya phones! and Freeswitch with xlite separately :( Anyways, if someone has a freeswitch succesfully setup with avaya SES, i suggest, tally your configuration with them, because in that case it's got to be configuration issue Otherwise, we should look into the sofia module. We'll have to tell it to send the digest again if it's an Avaya SES - rather if it's the same Avaya SES box asking user credentials for the second time -- Regards, Gayatri Kulkarni On Wed, Oct 15, 2008 at 7:12 PM, Gerry Hull [EMAIL PROTECTED] wrote: Gayatri, Any idea on how to enable this response in Freeswitch? David, Not sure of the lr... On Wed, Oct 15, 2008 at 4:38 AM, Gayatri Kulkarni [EMAIL PROTECTED]wrote: Thanks David! Gerry, From the debug info you have sent, looks like Avaya SES asks for PAI i.e Proxy Authentication Indication - It's a kind of challenge response authentication. After it receives the user's digest in response to this request (again), it authenticates the user. This is the normal behavior of Avaya SES. the users' digest is not sent again it seems! On Wed, Oct 15, 2008 at 1:52 PM, David Knell [EMAIL PROTECTED] wrote: On Oct 15, 2008, at 9:00 AM, Gayatri Kulkarni wrote: Record-Route: sip:10.0.2.154:5060;lr Record-Route: sip:10.0.2.151:5061;lr;transport=tls what's the 'lr' next to the port number? short for 'loose routing' - see here for a bit of an explanation: http://www.tech-invite.com/Ti-sip-dialog.html --Dave ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Regards, Gayatri Kulkarni ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] Newbie: Avaya SES Freeswitch 407 Proxy Authentication error
Gerry, Did you manage to take the ethereal trace? It would be definitely of more help and we can narrow down the actual problem Do you have access to Avaya SES? To take the ethreal trace, you should: *1)telnet* user@Avaya SES //reduces size of the trace, ssh size usually goes in GBs 2)login 3)tethereal -i eth0 -f path/to/filename 4)try to make the call (get the 407) 5)kill tethereal (Ctrl+C) 6) copy the file to a place where you can sit and analyze it You can analyze the trace yourself if you have wireshark installed, or send it over -- Regards, Gayatri Kulkarni On Wed, Oct 15, 2008 at 7:12 PM, Gerry Hull [EMAIL PROTECTED] wrote: Gayatri, Any idea on how to enable this response in Freeswitch? David, Not sure of the lr... On Wed, Oct 15, 2008 at 4:38 AM, Gayatri Kulkarni [EMAIL PROTECTED]wrote: Thanks David! Gerry, From the debug info you have sent, looks like Avaya SES asks for PAI i.e Proxy Authentication Indication - It's a kind of challenge response authentication. After it receives the user's digest in response to this request (again), it authenticates the user. This is the normal behavior of Avaya SES. the users' digest is not sent again it seems! On Wed, Oct 15, 2008 at 1:52 PM, David Knell [EMAIL PROTECTED] wrote: On Oct 15, 2008, at 9:00 AM, Gayatri Kulkarni wrote: Record-Route: sip:10.0.2.154:5060;lr Record-Route: sip:10.0.2.151:5061;lr;transport=tls what's the 'lr' next to the port number? short for 'loose routing' - see here for a bit of an explanation: http://www.tech-invite.com/Ti-sip-dialog.html --Dave ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Regards, Gayatri Kulkarni ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
[Freeswitch-users] HTTP methods
Hi Guys, The XmlRpc is implemented from the web port - 8080 Can we also specify which HTTP methods FS implements - like GET, POST, PUT, DELETE, etc ?? in xml_rpc.conf.xml or some place ? Is there a way to implement these? -- Regards, Gayatri Kulkarni ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] HTTP methods
great! I found an occurece of webapi in the documentation for mod_perl but, is this share generated when we install FS, or when we enable mod_xm_rpc or something, because i can't find it created on my system. If yes, what is it's default path? Or, do I have to create it and implement the HTTP methods myself?? -- Regards, Gayatri Kulkarni On Tue, Oct 14, 2008 at 6:49 PM, Anthony Minessale [EMAIL PROTECTED] wrote: there is a special /api /webapi and /textapi share on the site that will point at any api command doing GET or POST for instance: /webapi/status I'm pretty sure it's documented somewhere. On Tue, Oct 14, 2008 at 6:57 AM, Gayatri Kulkarni [EMAIL PROTECTED]wrote: Hi Guys, The XmlRpc is implemented from the web port - 8080 Can we also specify which HTTP methods FS implements - like GET, POST, PUT, DELETE, etc ?? in xml_rpc.conf.xml or some place ? Is there a way to implement these? -- Regards, Gayatri Kulkarni ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:[EMAIL PROTECTED] [EMAIL PROTECTED] GTALK/JABBER/PAYPAL:[EMAIL PROTECTED][EMAIL PROTECTED] IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:[EMAIL PROTECTED] [EMAIL PROTECTED] iax:[EMAIL PROTECTED]/888 googletalk:[EMAIL PROTECTED][EMAIL PROTECTED] pstn:213-799-1400 ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] Newbie: Avaya SES Freeswitch 407 Proxy Authentication error
Have you added the extension name=avayaSES in dialplan/public.xml ? -- Regards, Gayatri Kulkarni On Thu, Oct 9, 2008 at 1:05 PM, Gerry Hull [EMAIL PROTECTED] wrote: Here's my configuration: include gateway name=avaya param name=username value=3824/ param name=password value=password/ param name=proxy value=10.0.2.154/ param name=expire-seconds value=60/ param name=register value=true/ param name=register-transport value=udp/ param name=retry_seconds value=30/ /gateway /include - sofia shows successfully registered with SES (SIP Enablement Services) When I call 3824 from another softphone registered with SES, sofia issues a 407 Proxy Authentication error and the call does not go through. I presume their is something wrong in my configuration, but I cannot figure it out. Any ideas? Gerry ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] ODBC through JS (To all interested:)
To all those who are interested: Freeswitch uses *.odbc.ini* file to connect to the database and not the {prefix for unixODBC}/etc/odbc.ini *so make sure that one is right before you use(ODBC)* in your applications; otherwise even if you can successfully connect to your DB with the isql command, you wont be able to use it through your FS app. It's good to find out things on my own :) (time consuming though!) -- Regards, Gayatri Kulkarni On Mon, Oct 13, 2008 at 11:21 AM, Gayatri Kulkarni [EMAIL PROTECTED]wrote: Like we have to add odbc-dsn as a parm name in the voicemail.xml for voice mail, do we ave to do add it somewhere for running it in javascript too? like i said before, i can successfully connect with same username, password, DSN through isql utility why does fs not find the DSN name? -- Regards, Gayatri Kulkarni ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] ODBC through JS
Guys please help me on this I am still getting that error [EMAIL PROTECTED] 2008-10-07 17:27:24 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and no default driver specified* I can connect to the database successfully using isql -v command I can't figure out whats going on Here's my script: use(ODBC); var DSN=PostgreSQL; var DB_USER=username; var DB_PASS=password; var db = new ODBC(DSN, DB_USER, DB_PASS); //console_log(notice,DB.path+\n); if(db.connect()){ console_log(notice,Connected to DB); } else{ console_log(notice,Still probs); } *Here's the output:* [EMAIL PROTECTED] 2008-10-10 15:41:32 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and no default driver specified 2008-10-10 15:41:32 [NOTICE] testdb.js:1 console_log() Still probs Please Help me Regards, Gayatri Kulkarni On Tue, Oct 7, 2008 at 5:37 PM, Gayatri Kulkarni [EMAIL PROTECTED]wrote: Guys, I am now having this problem: when i run my script i get this error - [EMAIL PROTECTED] 2008-10-07 17:27:24 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and no default driver specified my .*./etc/odbc.ini* looks like this: [postgres] Driver = PostgreSQL SERVER = localhost PORT = 5432 DATABASE = postgres UserName = username Password = password and .*./etc/odbcinst.ini:* [ODBC] Trace = yes TraceFile = /tmp/trace.log [PostgreSQL] Description = PostgreSQL driver Driver = /usr/local/lib/libodbpsql.so Setup = /usr/local/lib/libodbpsqlS.so UsageCount = 100 -- Regards, Gayatri Kulkarni On Tue, Oct 7, 2008 at 11:32 AM, Brian West [EMAIL PROTECTED] wrote: thats because you don't load it in modules.conf.xml you load it in conf/autoload_configs/spidermonkey.conf.xml /b On Oct 7, 2008, at 12:52 AM, Gayatri Kulkarni wrote: Still the same :( It builds installs the shard library at {prefix}/freeswitch/lib directory while all the modules .so files are in {prefix}/freeswitch/mod directory If i copy the shared library to the mod directory, i get an error saying Invalid ELF Header !! -- Regards, Gayatri Kulkarni ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Regards, Gayatri Kulkarni ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] ODBC through JS
either value for DSN name gives the same result :( On Fri, Oct 10, 2008 at 4:27 PM, Jonas Gauffin [EMAIL PROTECTED]wrote: your DSN name is postgres and not PostgreSQL On Fri, Oct 10, 2008 at 12:34 PM, Gayatri Kulkarni [EMAIL PROTECTED] wrote: Guys please help me on this I am still getting that error [EMAIL PROTECTED] 2008-10-07 17:27:24 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and no default driver specified* I can connect to the database successfully using isql -v command I can't figure out whats going on Here's my script: use(ODBC); var DSN=PostgreSQL; var DB_USER=username; var DB_PASS=password; var db = new ODBC(DSN, DB_USER, DB_PASS); //console_log(notice,DB.path+\n); if(db.connect()){ console_log(notice,Connected to DB); } else{ console_log(notice,Still probs); } *Here's the output:* [EMAIL PROTECTED] 2008-10-10 15:41:32 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and no default driver specified 2008-10-10 15:41:32 [NOTICE] testdb.js:1 console_log() Still probs Please Help me Regards, Gayatri Kulkarni On Tue, Oct 7, 2008 at 5:37 PM, Gayatri Kulkarni [EMAIL PROTECTED]wrote: Guys, I am now having this problem: when i run my script i get this error - [EMAIL PROTECTED] 2008-10-07 17:27:24 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and no default driver specified my .*./etc/odbc.ini* looks like this: [postgres] Driver = PostgreSQL SERVER = localhost PORT = 5432 DATABASE = postgres UserName = username Password = password and .*./etc/odbcinst.ini:* [ODBC] Trace = yes TraceFile = /tmp/trace.log [PostgreSQL] Description = PostgreSQL driver Driver = /usr/local/lib/libodbpsql.so Setup = /usr/local/lib/libodbpsqlS.so UsageCount = 100 -- Regards, Gayatri Kulkarni On Tue, Oct 7, 2008 at 11:32 AM, Brian West [EMAIL PROTECTED]wrote: thats because you don't load it in modules.conf.xml you load it in conf/autoload_configs/spidermonkey.conf.xml /b On Oct 7, 2008, at 12:52 AM, Gayatri Kulkarni wrote: Still the same :( It builds installs the shard library at {prefix}/freeswitch/lib directory while all the modules .so files are in {prefix}/freeswitch/mod directory If i copy the shared library to the mod directory, i get an error saying Invalid ELF Header !! -- Regards, Gayatri Kulkarni ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Regards, Gayatri Kulkarni ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Regards, Gayatri Kulkarni ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] ODBC through JS
latest version of odbc.ini: [ODBC Data Sources] PostgreSQL = PostgreSQL Database Driver [PostgreSQL] Description = PostgreSQL Database Driver Driver = /usr/local/lib/libodbcpsql.so Trace = Yes TraceFile = sql.log Database= postgres Servername = 58.68.117.43 UserName= username Password= password Port= 5432 Protocol= 6.4 ReadOnly= No RowVersioning = No ShowSystemTables= No ShowOidColumn = No FakeOidIndex= No ConnSettings= [Default] Driver = /usr/local/lib/libodbcpsql.so [ODBC] Trace = 1 TraceFile = /var/log/odbctrace.out Driver = /usr/local/lib/libodbcpsql.so On Fri, Oct 10, 2008 at 5:28 PM, Gayatri Kulkarni [EMAIL PROTECTED]wrote: either value for DSN name gives the same result :( On Fri, Oct 10, 2008 at 4:27 PM, Jonas Gauffin [EMAIL PROTECTED]wrote: your DSN name is postgres and not PostgreSQL On Fri, Oct 10, 2008 at 12:34 PM, Gayatri Kulkarni [EMAIL PROTECTED] wrote: Guys please help me on this I am still getting that error [EMAIL PROTECTED] 2008-10-07 17:27:24 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and no default driver specified* I can connect to the database successfully using isql -v command I can't figure out whats going on Here's my script: use(ODBC); var DSN=PostgreSQL; var DB_USER=username; var DB_PASS=password; var db = new ODBC(DSN, DB_USER, DB_PASS); //console_log(notice,DB.path+\n); if(db.connect()){ console_log(notice,Connected to DB); } else{ console_log(notice,Still probs); } *Here's the output:* [EMAIL PROTECTED] 2008-10-10 15:41:32 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and no default driver specified 2008-10-10 15:41:32 [NOTICE] testdb.js:1 console_log() Still probs Please Help me Regards, Gayatri Kulkarni On Tue, Oct 7, 2008 at 5:37 PM, Gayatri Kulkarni [EMAIL PROTECTED] wrote: Guys, I am now having this problem: when i run my script i get this error - [EMAIL PROTECTED] 2008-10-07 17:27:24 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and no default driver specified my .*./etc/odbc.ini* looks like this: [postgres] Driver = PostgreSQL SERVER = localhost PORT = 5432 DATABASE = postgres UserName = username Password = password and .*./etc/odbcinst.ini:* [ODBC] Trace = yes TraceFile = /tmp/trace.log [PostgreSQL] Description = PostgreSQL driver Driver = /usr/local/lib/libodbpsql.so Setup = /usr/local/lib/libodbpsqlS.so UsageCount = 100 -- Regards, Gayatri Kulkarni On Tue, Oct 7, 2008 at 11:32 AM, Brian West [EMAIL PROTECTED]wrote: thats because you don't load it in modules.conf.xml you load it in conf/autoload_configs/spidermonkey.conf.xml /b On Oct 7, 2008, at 12:52 AM, Gayatri Kulkarni wrote: Still the same :( It builds installs the shard library at {prefix}/freeswitch/lib directory while all the modules .so files are in {prefix}/freeswitch/mod directory If i copy the shared library to the mod directory, i get an error saying Invalid ELF Header !! -- Regards, Gayatri Kulkarni ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Regards, Gayatri Kulkarni ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Regards, Gayatri Kulkarni -- Regards, Gayatri Kulkarni ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] ODBC through JS
Well, it didnt work as i hoped first i had to add the DSN on my machine too for the remote database then, when i did, it gave me this error: [EMAIL PROTECTED] 2008-10-08 00:38:25 [ERR] switch_odbc.c:160 switch_odbc_handl e_connect() STATE: HY000 CODE 63 ERROR: [Microsoft][ODBC Microsoft Access Driver ]General error Not enough information to connect to this DSN with SQLConnect. Use SQLDriverConnect. 2008-10-08 00:38:25 [ERR] mod_spidermonkey_odbc.c:233 odbc_exec() Database is no t connected! 2008-10-08 00:38:26 [ERR] mod_spidermonkey_odbc.c:289 odbc_next_row() Database i s not connected! Any idea - what's happening? Appreciating all your help, -- Regards, Gayatri Kulkarni On Tue, Oct 7, 2008 at 7:23 AM, Michael Jerris [EMAIL PROTECTED] wrote: On Oct 7, 2008, at 9:34 AM, Gayatri Kulkarni wrote: If i have to run my script on Windows m/c, will i still need unixODBC? Is unixODBC available for windows??? On windows we use the native odbc interfaces and it builds by default (no need to do anything special to enable it) Mike ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] ODBC through JS
If i have to run my script on Windows m/c, will i still need unixODBC? Is unixODBC available for windows??? i know i am sounding stupid But i need to get this done ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
[Freeswitch-users] ODBC through JS
Hi all, I want to connect to a remote database using javascript. When i searched the WIki I got this page: http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc#SpiderMonkey_ODBC I did the steps what are mentioned there, namely: 1. First download and install unixodbc. See belowhttp://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc#unixodbcif you are struggling with this step. Make sure to install headers, libraries and source for the unixodbc library set. 2. In the FreeSWITCH source directory, uncomment the languages/mod_spidermonkey_odbc line within the build/modules.conf file. 3. Compile core odbc support into freeswitch. ./configure --enable-core-odbc-support make all install The ./configure doesnt give any error nor does the build When i restart freeswitch, i can see this: 2008-10-06 19:01:43 [ERR] mod_spidermonkey.c:928 sm_load_file() Error Loading module /usr/local/freeswitch/mod/mod_spidermonkey_odbc.so **/usr/local/freeswitch/mod/mod_spidermonkey_odbc.so: cannot open shared object file: No such file or directory** Will my script run inspite of this? What am i not doing - something i should do more? -- Regards, Gayatri Kulkarni ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] ODBC through JS
I did that too I missed to mention it here On Mon, Oct 6, 2008 at 9:03 PM, Michael Jerris [EMAIL PROTECTED] wrote: Your missing enable the module in spidermonkey.conf.xml On Oct 6, 2008, at 9:42 AM, Gayatri Kulkarni wrote: connect to a remote database using javascript. When i searched the WIki I got this page: http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc#SpiderMonkey_ODBC I did the steps what are mentioned there, namely: 1. First download and install unixodbc. See belowhttp://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc#unixodbc if you are struggling with this step. Make sure to install headers, libraries and source for the unixodbc library set. 2. In the FreeSWITCH source directory, uncomment the languages/mod_spidermonkey_odbc line within the build/modules.conf file. 3. Compile core odbc support into freeswitch. ./configure --enable-core-odbc-support make all install The ./configure doesnt give any error nor does the build When i restart freeswitch, i can see this: 2008-10-06 19:01:43 [ERR] mod_spidermonkey.c:928 sm_load_file() Error Loading module /usr/local/freeswitch/mod/mod_spidermonkey_odbc.so **/usr/local/freeswitch/mod/mod_spidermonkey_odbc.so: cannot open shared object file: No such file or directory** Will my script run inspite of this? What am i not doing - something i should do more? ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Regards, Gayatri Kulkarni ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] ODBC through JS
Thanks for pointing out Daniel, It's not in modules.conf.xml it's in the source directory's build/modules.conf.in - which source to compile to create the mod_spidermonkey_odbc.so, i.e. languages/mod_spidermonkey_odbc The problem is, when i run make all install, it's not creating the .so See the error message: 2008-10-06 19:01:43 [ERR] mod_spidermonkey.c:928 sm_load_file() Error Loading module /usr/local/freeswitch/mod/mod_spidermonkey_odbc.so ***/usr/local/freeswitch/mod/mod_spidermonkey_odbc.so: cannot open shared object file: No such file or directory*** is there a way to compile and install this module separately? -- Regards, Gayatri Kulkarni On Mon, Oct 6, 2008 at 9:01 PM, Daniel-Constantin Mierla [EMAIL PROTECTED]wrote: Hello, On 10/06/08 16:42, Gayatri Kulkarni wrote: Hi all, I want to connect to a remote database using javascript. When i searched the WIki I got this page: http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc#SpiderMonkey_ODBC I did the steps what are mentioned there, namely: 1. First download and install unixodbc. See below http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc#unixodbc if you are struggling with this step. Make sure to install headers, libraries and source for the unixodbc library set. 2. In the FreeSWITCH source directory, uncomment the |languages/mod_spidermonkey_odbc| line within the |build/modules.conf| file. 3. Compile core odbc support into freeswitch. ./configure --enable-core-odbc-support make all install The ./configure doesnt give any error nor does the build When i restart freeswitch, i can see this: 2008-10-06 19:01:43 [ERR] mod_spidermonkey.c:928 sm_load_file() Error Loading module /usr/local/freeswitch/mod/mod_spidermonkey_odbc.so **/usr/local/freeswitch/mod/mod_spidermonkey_odbc.so: cannot open shared object file: No such file or directory** Will my script run inspite of this? What am i not doing - something i should do more? The line to load the |mod_spidermonkey_odbc has to be in |spidermonkey.conf.xml, not in modules.conf.xml. The info is somewhere there on the wiki, I missed it as well some time ago ... Cheers, Daniel -- Daniel-Constantin Mierla http://www.asipto.com ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
[Freeswitch-users] cant get session variable in javascript
var cid = session.getVariable(caller_id_number); returns: 2008-09-16 08:31:57 [ERR] readFile.js:36 mod_spidermonkey() TypeError: session. getVariable is not a function var cid = self.session.getVariable(caller_id_number); returns: 2008-09-16 08:31:57 [ERR] readFile.js:36 mod_spidermonkey() TypeError: session. self is not defined. what would I be doing wrong? Regards, Gayatri Kulkarni - Whenever you find yourself on the side of the majority, it is time to pause and reflect. ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] DID inbound call not notified
oops! I will definitely take care of it how do i get on the IRC? On Sun, Sep 14, 2008 at 10:53 PM, Brian West [EMAIL PROTECTED] wrote: Gayatri, You're gonna have to learn some things on your own. For example... Don't post the usernames and passwords to your providers to the public mailing list. I highly recommend you go change them ASAP. Also join us on IRC. Asking a few questions a day on the list like you're asking drain resources. Some of the emails can't be answered in short order or one reply. You're better off asking on IRC and interacting to get to the answers quicker. /b On Sep 14, 2008, at 11:26 AM, Gayatri Kulkarni wrote: hi guys, I have a DID administered on my FS but I'm not able to get any info about any calls landing on the DID on the FS console is this possible? if yes, how? attached are my config files please let me know what I am doing wrong at the earliest The SIP provider is sip.net4india.com DID number: 14085121934 Please respond at the earliest Regards, Gayatri Kulkarni - Whenever you find yourself on the side of the majority, it is time to pause and reflect. public.xmldefault.xmlexternal.xmlinternal.xmlnet4india.xml sofia.conf.xml___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org Brian West sip:[EMAIL PROTECTED] ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Regards, Gayatri Kulkarni ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
[Freeswitch-users] getting callback everytime
Hi, Is it correct behaviour that whenever i invoke any command from console like: orginate A B or uuid_bridge uuid of A uuid of B where A and B are extensions registered through X-lite to FS, I get a callback on both even if A/B is already off hook? so if A is single channel (having only 1 call appearance), it will return a USER_BUSY ?? Is there a way to avoid this? -- I want to merge the line on which A is already off hook with the session that begins with originate A B Is there a way to merge 2 calls? -- Regards, Gayatri Kulkarni ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
[Freeswitch-users] Gateway issue!! ----- need help
Hi all, I need help on this urgently! I have a gateway configured - I have done everything mentioned on http://wiki.freeswitch.org/wiki/Getting_Started_Guide#Sample_Gateway_Configuration If I configure my X-lite to register directly to the gateway, I can make a call but if I do originate sofia/internal/1001 sofia/gateway/net4india/13024301635 on FS the call fails, saying: [EMAIL PROTECTED] 2008-09-11 01:07:43 [INFO] mod_dialplan_xml.c:222 dialplan_hu nt() Processing FreeSWITCH-sofia/gateway/net4india/[EMAIL PROTECTED] 2008-09-11 01:07:44 [NOTICE] switch_ivr.c:1098 switch_ivr_session_transfer() Tra nsfer sofia/internal/1001 to enum[sofia/gateway/net4india/[EMAIL PROTECTED] 2008-09-11 01:07:46 [INFO] switch_core_state_machine.c:114 switch_core_standard_ on_routing() No Route, Aborting 2008-09-11 01:07:46 [NOTICE] switch_core_state_machine.c:115 switch_core_standar d_on_routing() Hangup sofia/internal/1001 [CS_ROUTING] [NO_ROUTE_DESTINATION] 2008-09-11 01:07:46 [ERR] mod_xml_cdr.c:115 my_on_hangup() Error writing [C:\Pro gram Files\FreeSWITCH\log\xml_cdr\16151ab7-5698-2f49-9b0e-8e27221ce849.cdr.xml][ No such file or directory] 2008-09-11 01:07:47 [NOTICE] switch_core_session.c:807 switch_core_session_threa d() Session 1 (sofia/internal/1001) Ended 2008-09-11 01:07:47 [NOTICE] switch_core_session.c:809 switch_core_session_threa d() Close Channel sofia/internal/1001 [CS_HANGUP] Thanks a lot for help, Regards, Gayatri Kulkarni - Whenever you find yourself on the side of the majority, it is time to pause and reflect. ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] transfer an extablished call
Thanks Brian! Regards, Gayatri Kulkarni - Whenever you find yourself on the side of the majority, it is time to pause and reflect. From: Brian West Sent: Thursday, September 11, 2008 6:13 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] transfer an extablished call uuid_transfer,Transfer a session,uuid [-bleg|-both] dest-exten [dialplan] [context] Gotta give it details. It takes destination extension which is in the dialplan. It won't take a sofia/ uri. /b On Sep 11, 2008, at 7:46 AM, Gayatri Kulkarni wrote: for : uuid_transfer 6d1494fc3f3f12f3 14085121934 Brian West sip:[EMAIL PROTECTED] ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] listing gateways
Guys, Is there any way to list only gateways registered to freeswitch? What database table has the registered devices info? How can I access it? - do i need to install SQLite / LDAP on my machine? Regards, Gayatri Kulkarni On Mon, Sep 8, 2008 at 5:31 PM, Gayatri Kulkarni [EMAIL PROTECTED]wrote: like sofia status profile internal lists the users registered to FS at the moment, is there a command to list out only gateways registered at the moment? I know, sofia status lists gateways alongwith other users registered - but what if i want only gateways to be listed? Regards, Gayatri Kulkarni -- Regards, Gayatri Kulkarni ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
[Freeswitch-users] registration problem
Hi Guys, I have FS installed on 58.86.117.43 I have the X-lite on 68.86.117.44 The X-Lite cannot register to the FS - can you guess why? SIP account settings for Xlite: Username: 1002 Password: 1234 Auth user name: 1002 domain: 58.86.117.43 Topology: IP address: Discover at runtime STUN server: Use specific - 58.86.117.43 I am using a default extension of FS, I dont think i need a gateway here - am i correct? Please reply soon. Appreciate all your help, -- Regards, Gayatri Kulkarni ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] transfer an extablished call
Maybe, But, I achieved it this way: [EMAIL PROTECTED] originate A B [EMAIL PROTECTED] show channels (find out corresponding UUIDs) [EMAIL PROTECTED] uuid_transfer UUID of A or B C Thanks a lot for your help, your answer is right; but if we don't want to be dependent on phones we can do it the way I did. Regards, Gayatri Kulkarni - Whenever you find yourself on the side of the majority, it is time to pause and reflect. From: Anthony Minessale Sent: Wednesday, September 10, 2008 6:17 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] transfer an extablished call once the call is up use sip phones features to xfer. On Tue, Sep 9, 2008 at 10:48 PM, Gayatri Kulkarni [EMAIL PROTECTED] wrote: doesnt work! it simply originates 2 diff calls - 1st on line1 the other on line 2 is there a way to merge these calls? The scene I want is: A---calls--- B B-transferC A-talks withC (B drops out) Thanks a lot, Regards, Gayatri Kulkarni On Mon, Sep 8, 2008 at 8:38 PM, Anthony Minessale [EMAIL PROTECTED] wrote: originate sofia/internal/1000 1002 On Mon, Sep 8, 2008 at 7:49 AM, Gayatri Kulkarni [EMAIL PROTECTED] wrote: Hey guys, sorry if i am bothering, but please answer this query of mine: i originate a call using this: originate sofia/internal/1000 bridge(sofia/internal/1001) Now, i want to transfer this call which is already established to sofia/internal/1002 what should i do? simply transfer(sofia/internal/1002) or would i require to give call-id / uid or something? if yes - how would i find that out? Regards, Gayatri Kulkarni ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:[EMAIL PROTECTED] GTALK/JABBER/PAYPAL:[EMAIL PROTECTED] IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:[EMAIL PROTECTED] iax:[EMAIL PROTECTED]/888 googletalk:[EMAIL PROTECTED] pstn:213-799-1400 ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:[EMAIL PROTECTED] GTALK/JABBER/PAYPAL:[EMAIL PROTECTED] IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:[EMAIL PROTECTED] iax:[EMAIL PROTECTED]/888 googletalk:[EMAIL PROTECTED] pstn:213-799-1400 ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] Passing variable argument in a dial plan
Can you add params / to action / ?? something like: action application=java data=/home/adeel/programs/freeswitch/scripts/freeswitch.jar net.digitalapps.freeswitch.CallTest abcdefgh param name=attr1 value=1 / param name=attr2 value=3 / /action Regards, Gayatri Kulkarni - Whenever you find yourself on the side of the majority, it is time to pause and reflect. From: Adeel Ansari Sent: Wednesday, September 10, 2008 2:55 AM To: freeswitch-users@lists.freeswitch.org Subject: [Freeswitch-users] Passing variable argument in a dial plan Hi all, I am hitting a dial plan using a command. And the application defined in the dial plan is running successfully with the argument passed. Below is the illustration. Command originate sofia/gateway/gizmo1/848458448557 121 Dial Plan extension name=java_test continue=true condition field=destination_number expression=121 action application=java data=/home/adeel/programs/freeswitch/scripts/freeswitch.jar net.digitalapps.freeswitch.CallTest abcdefgh/ /condition /extension My Java program successfully showing me the argument abcdefgh. Now I want to pass a variable, not a fixed like abcdefgh, as an argument. How can I do it. Thanks. -- Best, Adeel Ansari http://www.linkedin.com/in/adeelansari ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] What should be the dial plan for gateway calls?
Would the process be something like: 1) originate sofia/internal/1001 bridge(*sofia/gateway/gizmo1/6098989898 0116054545454) 2) originate *sofia/internal/1001 *bridge(sofia/gateway/gizmo9/0116054545454) * ?? I am asking this just to understand how exactly things will go here - I am relatively new to FS :) Regards, Gayatri Kulkarni ** On Fri, Aug 29, 2008 at 6:40 PM, Anthony Minessale [EMAIL PROTECTED] wrote: The way you are doing it never goes to the dialplan. first you make an outbound call to gizmo1 then bridge it to gizmo9 if you did say *originate sofia/gateway/gizmo1/6098989898 0116054545454* then it would go to the dialplan and search for extension *0116054545454* On Fri, Aug 29, 2008 at 4:05 AM, Adeel Ansari [EMAIL PROTECTED]wrote: Hi all, I have tried a few possibilities to match the dial plan for the command below, but none is working. *originate sofia/gateway/gizmo1/6098989898 bridge(sofia/gateway/gizmo9/0116054545454) * Below is what I have tried. === condition field=source expression=mod_sofia and condition field=destination_number expression=^(gizmo[1-10])$ === Thanks for your support. -- Best, Adeel Ansari http://www.linkedin.com/in/adeelansari ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:[EMAIL PROTECTED] [EMAIL PROTECTED] GTALK/JABBER/PAYPAL:[EMAIL PROTECTED][EMAIL PROTECTED] IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:[EMAIL PROTECTED] [EMAIL PROTECTED] iax:[EMAIL PROTECTED]/888 googletalk:[EMAIL PROTECTED][EMAIL PROTECTED] pstn:213-799-1400 ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
[Freeswitch-users] listing gateways
like sofia status profile internal lists the users registered to FS at the moment, is there a command to list out only gateways registered at the moment? I know, sofia status lists gateways alongwith other users registered - but what if i want only gateways to be listed? Regards, Gayatri Kulkarni ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
[Freeswitch-users] transfer an extablished call
Hey guys, sorry if i am bothering, but please answer this query of mine: i originate a call using this: originate sofia/internal/1000 bridge(sofia/internal/1001) Now, i want to transfer this call which is already established to sofia/internal/1002 what should i do? simply transfer(sofia/internal/1002) or would i require to give call-id / uid or something? if yes - how would i find that out? Regards, Gayatri Kulkarni ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
[Freeswitch-users] call through service
Does Freeswitch implement the call through service? -- I couldnt find any relevant application. By call through service I mean: enables authorized corporate users outside CallThrough services are the most common form of service. They require no registration or pre-payment. On your existing telephone, you simply dial the service provider's number for the destination you require. You usually hear a introductory pre-recorded message and you then dial the number you want to talk to. You are charged by your existing telephone provider for the call to the initial number at the rate published by the CallThrough provider. Does Freeswitch implement the call through service? If it does, how can i invoke it through the console? Thanks a million for answering this, in advance, Regards, Gayatri Kulkarni ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] call through service
Thanks Alex! I'll try this one Regards, Gayatri Kulkarni On Fri, Sep 5, 2008 at 6:15 PM, Alex Kinch [EMAIL PROTECTED] wrote: Hello, You'll need to write a script for FS in your choice of language - I knocked together a quick demo for one in Lua the other week. Something like this is possibly a good place to start: http://pastebin.freeswitch.org/5479 - change the bits in square brackets for your particular configuration. Obviously no warranties provided, I'm not responsible if it makes your cat get jiggy with your dog and makes your bowl of cereal start mooing one morning :) Once you've written the script, tie it to an entry in the dial plan and you're ready to rock. Hope that helps, Alex On 5 Sep 2008, at 12:42, Gayatri Kulkarni wrote: Does Freeswitch implement the call through service? -- I couldnt find any relevant application. By call through service I mean: CallThrough services are the most common form of service. They require no registration or pre-payment. On your existing telephone, you simply dial the service provider's number for the destination you require. You usually hear a introductory pre-recorded message and you then dial the number you want to talk to. You are charged by your existing telephone provider for the call to the initial number at the rate published by the CallThrough provider. Does Freeswitch implement the call through service? If it does, how can i invoke it through the console? Thanks a million for answering this, in advance, Regards, Gayatri Kulkarni ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
[Freeswitch-users] Register cell phone
Hi, Can I register my cell phone to FS? How can I do that? Regards, Gayatri Kulkarni - Whenever you find yourself on the side of the majority, it is time to pause and reflect. ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] Register cell phone
Can you clarify please? On Thu, Sep 4, 2008 at 6:29 PM, Anthony Minessale [EMAIL PROTECTED] wrote: if it has a network interface and a sip client you should be able to. We have seen nokia's work for instance. On Thu, Sep 4, 2008 at 6:56 AM, hemant kumar [EMAIL PROTECTED]wrote: any information on the model and make of cell phone? On Thu, Sep 4, 2008 at 5:18 PM, Gayatri Kulkarni [EMAIL PROTECTED]wrote: Hi, Can I register my cell phone to FS? How can I do that? Regards, Gayatri Kulkarni - Whenever you find yourself on the side of the majority, it is time to pause and reflect. ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:[EMAIL PROTECTED] [EMAIL PROTECTED] GTALK/JABBER/PAYPAL:[EMAIL PROTECTED][EMAIL PROTECTED] IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:[EMAIL PROTECTED] [EMAIL PROTECTED] iax:[EMAIL PROTECTED]/888 googletalk:[EMAIL PROTECTED][EMAIL PROTECTED] pstn:213-799-1400 ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] Register cell phone
Nokia 6085 On Thu, Sep 4, 2008 at 5:26 PM, hemant kumar [EMAIL PROTECTED] wrote: any information on the model and make of cell phone? On Thu, Sep 4, 2008 at 5:18 PM, Gayatri Kulkarni [EMAIL PROTECTED]wrote: Hi, Can I register my cell phone to FS? How can I do that? Regards, Gayatri Kulkarni - Whenever you find yourself on the side of the majority, it is time to pause and reflect. ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] Register cell phone
Can I register it via ENUM then? From: Brian West Sent: Thursday, September 04, 2008 9:53 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Register cell phone And by register? You mean via sip? If so that phone doesn't have a SIP client it from what I have googled. /b On Sep 4, 2008, at 11:47 AM, Gayatri Kulkarni wrote: Nokia 6085 On Thu, Sep 4, 2008 at 5:26 PM, hemant kumar [EMAIL PROTECTED] wrote: any information on the model and make of cell phone? On Thu, Sep 4, 2008 at 5:18 PM, Gayatri Kulkarni [EMAIL PROTECTED] wrote: Hi, Can I register my cell phone to FS? How can I do that? Regards, Gayatri Kulkarni - Whenever you find yourself on the side of the majority, it is time to pause and reflect. Brian West sip:[EMAIL PROTECTED] ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] API info
Also, how to originate calls between endpoints registered to 2 different FSs?? Thanks a lot in advance, Regards, Gayatri Kulkarni - Whenever you find yourself on the side of the majority, it is time to pause and reflect. From: Gayatri Kulkarni Sent: Tuesday, September 02, 2008 2:45 AM To: freeswitch-users@lists.freeswitch.org Subject: API info Hi all, Is there a way to find out what all API are accepted through the XML-RPC module and the list of parameters that each API would require? Is there a way to find out the syntax expected by the XML-RPC module for invoking the API I tried a code in Java to find out as follows: code getSipServices(XmlRpcClientConfigImpl conf, PrintStream services_file) { try { //create client: XmlRpcClient registryClient = new XmlRpcClient(conf.getServerURL()); String url_str = conf.getServerURL().toString(); //create collection RemoteCollection Switch = new RemoteCollection(registryClient, getUri(url_str)); //actually obtain services: .services = Switch.getServices(); .props = Switch.getProperties(); .props.list(services_file); Enumeration prop_enum = props.elements(); System.out.println(--Properties); while (prop_enum.hasMoreElements()){ System.out.println(prop_enum.nextElement()); } System.out.println(); String[] resources = Switch.listResources(); int i = 0; System.out.println(--Resources); while(i resources.length){ System.out.println(resources[i]); } System.out.println(); } catch (Exception e) { } return (services); } /code Unfortunately, the it does not return any properties! for resources, it returns an exception: java.lang.InstantiationError: org.apache.xmlrpc.XmlRpcRequest and services returned are: -List of available services XPathQueryService CollectionManagementService UserManagementService DatabaseInstanceManager IndexQueryService XUpdateQueryService ValidationService with these services, how do I originate a call from within my application Regards, Gayatri Kulkarni - Whenever you find yourself on the side of the majority, it is time to pause and reflect. ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] How to originate a session from outside
Guys I made a stupid mistake again guess what - I didn't specify the port number in the URL !!! anyways, the code worked the exception was because I was using an older version of XMLRPC API. Anyways, Adeel you can modify the Java example on the wiki with this one. I think this one's better than what you already have posted there - if you don't mind that is! I don't mean to offend you. Thanks a lot anyways! Regards, Gayatri Kulkarni - Whenever you find yourself on the side of the majority, it is time to pause and reflect. From: Gayatri Kulkarni Sent: Tuesday, September 02, 2008 4:29 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] How to originate a session from outside Hey Adeel, Remember, originate sofia/internal/1001 bridge(sofia/internal/1003) had worked the other day? Well, now it isn't working! FS is still saying No_ROUTE_DESTINATION And, it is also giving me a SAXParseException! You want to have a look at the code? Here it is: /** * */ package localcall; import java.lang.String; import java.net.*; import org.apache.xmlrpc.XmlRpcException; import org.apache.xmlrpc.client.XmlRpcClient; import org.apache.xmlrpc.client.XmlRpcClientConfigImpl; /** * @author Gayatri Kulkarni * */ public class LocalCall { /** * */ public LocalCall() { // TODO Auto-generated constructor stub } public XmlRpcClientConfigImpl setConfig(){ XmlRpcClientConfigImpl conf = new XmlRpcClientConfigImpl(); String server = http://192.168.10.36/RPC2;; String uname = freeswitch; String pswd = works; try { URL server_url = new URL(server); conf.setServerURL(server_url); } catch (MalformedURLException e){ System.out.println(Cannot generate server URL); } conf.setBasicPassword(pswd); conf.setBasicUserName(uname); return (conf); } public void placeCall(XmlRpcClientConfigImpl conf){ XmlRpcClient rpcClient = new XmlRpcClient(); String api = freeswitch.api; rpcClient.setConfig(conf); Object[] params = new Object[]{ originate, sofia/internal/1001 bridge(sofia/internal/1002) }; try { rpcClient.execute(api, params ); } catch (XmlRpcException excpn){ System.out.println(Could not execute service. \n); excpn.printStackTrace(); } } /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub LocalCall call = new LocalCall(); call.placeCall(call.setConfig()); } } I have done load mod_xml_rpc on the CLI of FS. Thanks a lot, Regards, Gayatri Kulkarni - Whenever you find yourself on the side of the majority, it is time to pause and reflect. From: Adeel Ansari Sent: Wednesday, August 27, 2008 1:20 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] How to originate a session from outside Show your program. Further, try the example given in here after appropriate modification. http://wiki.freeswitch.org/wiki/Freeswitch_XML-RPC#Java_Example On Wed, Aug 27, 2008 at 3:56 PM, Gayatri Kulkarni [EMAIL PROTECTED] wrote: Thanks a lot! it worked - but why? When I did the same thing through the program it gave me : at RMIServer.main(RMIServer.java:49) Caused by: org.xml.sax.SAXParseException: Unknown type: string at org.apache.xmlrpc.parser.RecursiveTypeParserImpl.startElement(Recursi veTypeParserImpl.java:115) at org.apache.xmlrpc.parser.XmlRpcResponseParser.startElement(XmlRpcResp onseParser.java:126) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startEle ment(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scan StartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp l$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U nknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next (Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp l.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U nknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U nknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So urce) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un known Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p arse(Unknown Source) at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStr eamTransport.java:265) at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStre amTransport.java:216) at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorke r.java:53
Re: [Freeswitch-users] How to originate a session from outside
same result Regards, Gayatri Kulkarni From: Adeel Ansari Sent: Tuesday, August 26, 2008 11:03 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] How to originate a session from outside Try to issue the same command, what you are issuing via rpc, directly on freeswitch console. And don't forget to enable the debug mode this time. You can enable debug anytime by pressing F8 on freeswitch console. Cheers. On Wed, Aug 27, 2008 at 1:41 PM, Gayatri Kulkarni [EMAIL PROTECTED] wrote: Hey Adeel, Thanks for the help - actually, I was swapping the username and password! shoot me! Anyways, the code still executed partially. FreeSwitch now says this: nsfer sofia/internal/1001 to XML[sofia/internal/[EMAIL PROTECTED] 2008-08-26 22:29:11 [INFO] mod_dialplan_xml.c:222 dialplan_hunt() Processing Fre eSWITCH-sofia/internal/[EMAIL PROTECTED] 2008-08-26 22:29:12 [NOTICE] switch_ivr.c:1098 switch_ivr_session_transfer() Tra nsfer sofia/internal/1001 to enum[sofia/internal/[EMAIL PROTECTED] 2008-08-26 22:29:13 [INFO] switch_core_state_machine.c:114 switch_core_standard_ on_routing() No Route, Aborting 2008-08-26 22:29:13 [NOTICE] switch_core_state_machine.c:115 switch_core_standar d_on_routing() Hangup sofia/internal/1001 [CS_ROUTING] [NO_ROUTE_DESTINATION] 2008-08-26 22:29:13 [NOTICE] switch_core_session.c:807 switch_core_session_threa d() Session 6 (sofia/internal/1001) Ended 2008-08-26 22:29:13 [NOTICE] switch_core_session.c:809 switch_core_session_threa d() Close Channel sofia/internal/1001 [CS_HANGUP] Any idea why this is happening? the destination extension is logged in alright and I can make a successful call to it using the xlite soft phone directly. I tried it out with other destination numbers as well. I am using a LAN IP for my domain. Regards, Gayatri Kulkarni From: Adeel Ansari Sent: Tuesday, August 26, 2008 8:34 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] How to originate a session from outside Try to remove the credentials from the file freeswitch-installation/conf/autoload-configs/xmlrpc.conf.xml and remove the username and password from your code as well. Then try it again. Just to make sure its working. After that you can revert all back. Otherwise, you can try the url in your internet browser. It should ask for the credential. By default username=freeswitch and password=works. Cheers. On Tue, Aug 26, 2008 at 10:54 PM, Gayatri Kulkarni [EMAIL PROTECTED] wrote: it loaded the module fine; but now it is saying this: Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL: http://192 .168.10.36:8080/RPC2 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So urce) at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.newInputStream(XmlRpc SunHttpTransport.java:64) at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.newInputStream(XmlRpc SunHttpTransport.java:81) at org.apache.xmlrpc.client.XmlRpcStreamTransport.getInputStream(XmlRpcS treamTransport.java:159) at org.apache.xmlrpc.client.XmlRpcHttpTransport.getInputStream(XmlRpcHtt pTransport.java:49) at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStre amTransport.java:213) at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorke r.java:53) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:136) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:125) at RMIServer.makeACall(RMIServer.java:36) at RMIServer.main(RMIServer.java:49) Regards, Gayatri Kulkarni From: Brian West Sent: Tuesday, August 26, 2008 7:51 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] How to originate a session from outside conf/autoload_configs/modules.conf.xml and uncomment it. You can also load it by typing this at the cli load mod_xml_rpc /b On Aug 26, 2008, at 9:41 AM, Gayatri Kulkarni wrote: How would you make sure mod_xml_rpc is loaded? I could successfully run reloadxml I got the exception again. Regards, Gayatri Kulkarni Brian West sip:[EMAIL PROTECTED] ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list
Re: [Freeswitch-users] How to originate a session from outside
Here goes: [EMAIL PROTECTED] originate sofia/internal/1001 sofia/internal/1003 (my command) 2008-08-26 23:36:01 [NOTICE] switch_channel.c:534 switch_channel_set_name() New Channel sofia/internal/1001 [e11e956a-13dd-de42-b2a1-89733eaaff5d] 2008-08-26 23:36:01 [NOTICE] sofia.c:2183 sofia_handle_sip_i_state() Ring-Ready sofia/internal/1001! 2008-08-26 23:36:08 [NOTICE] sofia.c:2507 sofia_handle_sip_i_state() Channel [so fia/internal/1001] has been answered 2008-08-26 23:36:08 [NOTICE] switch_ivr.c:1098 switch_ivr_session_transfer() Tra nsfer sofia/internal/1001 to XML[sofia/internal/[EMAIL PROTECTED] API CALL [originate(sofia/internal/1001 sofia/internal/1003)] output: +OK e11e956a-13dd-de42-b2a1-89733eaaff5d [EMAIL PROTECTED] 2008-08-26 23:36:09 [INFO] mod_dialplan_xml.c:222 dialplan_hu nt() Processing FreeSWITCH-sofia/internal/[EMAIL PROTECTED] 2008-08-26 23:36:10 [NOTICE] switch_ivr.c:1098 switch_ivr_session_transfer() Tra nsfer sofia/internal/1001 to enum[sofia/internal/[EMAIL PROTECTED] 2008-08-26 23:36:11 [INFO] switch_core_state_machine.c:114 switch_core_standard_ on_routing() No Route, Aborting 2008-08-26 23:36:11 [NOTICE] switch_core_state_machine.c:115 switch_core_standar d_on_routing() Hangup sofia/internal/1001 [CS_ROUTING] [NO_ROUTE_DESTINATION] 2008-08-26 23:36:11 [NOTICE] switch_core_session.c:807 switch_core_session_threa d() Session 5 (sofia/internal/1001) Ended 2008-08-26 23:36:11 [NOTICE] switch_core_session.c:809 switch_core_session_threa d() Close Channel sofia/internal/1001 [CS_HANGUP] originate sofia/internal/1001 sofia/internal/1003 2008-08-26 23:36:22 [NOTICE] switch_channel.c:534 switch_channel_set_name() New Channel sofia/internal/1001 [c4f1a1a2-c608-c642-a672-e97b6933da4b] 2008-08-26 23:36:22 [NOTICE] sofia.c:2183 sofia_handle_sip_i_state() Ring-Ready sofia/internal/1001! 2008-08-26 23:36:27 [NOTICE] sofia.c:2507 sofia_handle_sip_i_state() Channel [so fia/internal/1001] has been answered 2008-08-26 23:36:28 [NOTICE] switch_ivr.c:1098 switch_ivr_session_transfer() Tra nsfer sofia/internal/1001 to XML[sofia/internal/[EMAIL PROTECTED] API CALL [originate(sofia/internal/1001 sofia/internal/1003)] output: +OK c4f1a1a2-c608-c642-a672-e97b6933da4b 2008-08-26 23:36:28 [INFO] mod_dialplan_xml.c:222 dialplan_hunt() Processing Fre eSWITCH-sofia/internal/[EMAIL PROTECTED] 2008-08-26 23:36:29 [NOTICE] switch_ivr.c:1098 switch_ivr_session_transfer() Tra nsfer sofia/internal/1001 to enum[sofia/internal/[EMAIL PROTECTED] 2008-08-26 23:36:30 [INFO] switch_core_state_machine.c:114 switch_core_standard_ on_routing() No Route, Aborting 2008-08-26 23:36:30 [NOTICE] switch_core_state_machine.c:115 switch_core_standar d_on_routing() Hangup sofia/internal/1001 [CS_ROUTING] [NO_ROUTE_DESTINATION] 2008-08-26 23:36:30 [NOTICE] switch_core_session.c:807 switch_core_session_threa d() Session 6 (sofia/internal/1001) Ended 2008-08-26 23:36:30 [NOTICE] switch_core_session.c:809 switch_core_session_threa d() Close Channel sofia/internal/1001 [CS_HANGUP] From: Adeel Ansari Sent: Tuesday, August 26, 2008 11:35 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] How to originate a session from outside Orite. But where is the command? Where is the console output? Don't forget to press F8 on console to enable the debug mode. On Wed, Aug 27, 2008 at 2:08 PM, Gayatri Kulkarni [EMAIL PROTECTED] wrote: same result Regards, Gayatri Kulkarni From: Adeel Ansari Sent: Tuesday, August 26, 2008 11:03 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] How to originate a session from outside Try to issue the same command, what you are issuing via rpc, directly on freeswitch console. And don't forget to enable the debug mode this time. You can enable debug anytime by pressing F8 on freeswitch console. Cheers. On Wed, Aug 27, 2008 at 1:41 PM, Gayatri Kulkarni [EMAIL PROTECTED] wrote: Hey Adeel, Thanks for the help - actually, I was swapping the username and password! shoot me! Anyways, the code still executed partially. FreeSwitch now says this: nsfer sofia/internal/1001 to XML[sofia/internal/[EMAIL PROTECTED] 2008-08-26 22:29:11 [INFO] mod_dialplan_xml.c:222 dialplan_hunt() Processing Fre eSWITCH-sofia/internal/[EMAIL PROTECTED] 2008-08-26 22:29:12 [NOTICE] switch_ivr.c:1098 switch_ivr_session_transfer() Tra nsfer sofia/internal/1001 to enum[sofia/internal/[EMAIL PROTECTED] 2008-08-26 22:29:13 [INFO] switch_core_state_machine.c:114 switch_core_standard_ on_routing() No Route, Aborting 2008-08-26 22:29:13 [NOTICE] switch_core_state_machine.c:115 switch_core_standar d_on_routing() Hangup sofia/internal/1001 [CS_ROUTING] [NO_ROUTE_DESTINATION] 2008-08-26 22:29:13 [NOTICE] switch_core_session.c:807 switch_core_session_threa d() Session 6 (sofia/internal/1001) Ended 2008-08-26 22:29:13 [NOTICE] switch_core_session.c:809 switch_core_session_threa d() Close
Re: [Freeswitch-users] How to originate a session from outside
How to do that exactly? Regards, Gayatri Kulkarni From: Brian West Sent: Tuesday, August 26, 2008 6:14 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] How to originate a session from outside make sure mod_xml_rpc is loaded. /b On Aug 26, 2008, at 8:01 AM, Gayatri Kulkarni wrote: org.apache.xmlrpc.client.XmlRpcClientException: Failed to send request to server : Connection refused: connect ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] How to originate a session from outside
How would you make sure mod_xml_rpc is loaded? I could successfully run reloadxml I got the exception again. Regards, Gayatri Kulkarni From: Brian West Sent: Tuesday, August 26, 2008 6:14 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] How to originate a session from outside make sure mod_xml_rpc is loaded. /b On Aug 26, 2008, at 8:01 AM, Gayatri Kulkarni wrote: org.apache.xmlrpc.client.XmlRpcClientException: Failed to send request to server : Connection refused: connect ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] How to originate a session from outside
it loaded the module fine; but now it is saying this: Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL: http://192 .168.10.36:8080/RPC2 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So urce) at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.newInputStream(XmlRpc SunHttpTransport.java:64) at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.newInputStream(XmlRpc SunHttpTransport.java:81) at org.apache.xmlrpc.client.XmlRpcStreamTransport.getInputStream(XmlRpcS treamTransport.java:159) at org.apache.xmlrpc.client.XmlRpcHttpTransport.getInputStream(XmlRpcHtt pTransport.java:49) at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStre amTransport.java:213) at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorke r.java:53) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:136) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:125) at RMIServer.makeACall(RMIServer.java:36) at RMIServer.main(RMIServer.java:49) Regards, Gayatri Kulkarni From: Brian West Sent: Tuesday, August 26, 2008 7:51 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] How to originate a session from outside conf/autoload_configs/modules.conf.xml and uncomment it. You can also load it by typing this at the cli load mod_xml_rpc /b On Aug 26, 2008, at 9:41 AM, Gayatri Kulkarni wrote: How would you make sure mod_xml_rpc is loaded? I could successfully run reloadxml I got the exception again. Regards, Gayatri Kulkarni Brian West sip:[EMAIL PROTECTED] ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] How to originate a session from outside
Hey Adeel, Thanks for the help - actually, I was swapping the username and password! shoot me! Anyways, the code still executed partially. FreeSwitch now says this: nsfer sofia/internal/1001 to XML[sofia/internal/[EMAIL PROTECTED] 2008-08-26 22:29:11 [INFO] mod_dialplan_xml.c:222 dialplan_hunt() Processing Fre eSWITCH-sofia/internal/[EMAIL PROTECTED] 2008-08-26 22:29:12 [NOTICE] switch_ivr.c:1098 switch_ivr_session_transfer() Tra nsfer sofia/internal/1001 to enum[sofia/internal/[EMAIL PROTECTED] 2008-08-26 22:29:13 [INFO] switch_core_state_machine.c:114 switch_core_standard_ on_routing() No Route, Aborting 2008-08-26 22:29:13 [NOTICE] switch_core_state_machine.c:115 switch_core_standar d_on_routing() Hangup sofia/internal/1001 [CS_ROUTING] [NO_ROUTE_DESTINATION] 2008-08-26 22:29:13 [NOTICE] switch_core_session.c:807 switch_core_session_threa d() Session 6 (sofia/internal/1001) Ended 2008-08-26 22:29:13 [NOTICE] switch_core_session.c:809 switch_core_session_threa d() Close Channel sofia/internal/1001 [CS_HANGUP] Any idea why this is happening? the destination extension is logged in alright and I can make a successful call to it using the xlite soft phone directly. I tried it out with other destination numbers as well. I am using a LAN IP for my domain. Regards, Gayatri Kulkarni From: Adeel Ansari Sent: Tuesday, August 26, 2008 8:34 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] How to originate a session from outside Try to remove the credentials from the file freeswitch-installation/conf/autoload-configs/xmlrpc.conf.xml and remove the username and password from your code as well. Then try it again. Just to make sure its working. After that you can revert all back. Otherwise, you can try the url in your internet browser. It should ask for the credential. By default username=freeswitch and password=works. Cheers. On Tue, Aug 26, 2008 at 10:54 PM, Gayatri Kulkarni [EMAIL PROTECTED] wrote: it loaded the module fine; but now it is saying this: Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL: http://192 .168.10.36:8080/RPC2 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So urce) at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.newInputStream(XmlRpc SunHttpTransport.java:64) at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.newInputStream(XmlRpc SunHttpTransport.java:81) at org.apache.xmlrpc.client.XmlRpcStreamTransport.getInputStream(XmlRpcS treamTransport.java:159) at org.apache.xmlrpc.client.XmlRpcHttpTransport.getInputStream(XmlRpcHtt pTransport.java:49) at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStre amTransport.java:213) at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorke r.java:53) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:136) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:125) at RMIServer.makeACall(RMIServer.java:36) at RMIServer.main(RMIServer.java:49) Regards, Gayatri Kulkarni From: Brian West Sent: Tuesday, August 26, 2008 7:51 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] How to originate a session from outside conf/autoload_configs/modules.conf.xml and uncomment it. You can also load it by typing this at the cli load mod_xml_rpc /b On Aug 26, 2008, at 9:41 AM, Gayatri Kulkarni wrote: How would you make sure mod_xml_rpc is loaded? I could successfully run reloadxml I got the exception again. Regards, Gayatri Kulkarni Brian West sip:[EMAIL PROTECTED] -- ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Best, Adeel Ansari http://www.linkedin.com/in/adeelansari ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] How to originate a session from outside
Hey, I am trying to do the same thing using Jini system. But the thing is, Freeswitch should publish it's services firstto the Jini registry. I don't think it does that so far There is an XML repository though! but how to access it using any outside program?!! Check out the xml-rpc, sockets, event-handlers etc. and let me know if us know too if you find anything. Regards, Gayatri Kulkarni From: Adeel Ansari Sent: Friday, August 22, 2008 3:02 AM To: freeswitch-users@lists.freeswitch.org Subject: [Freeswitch-users] How to originate a session from outside Hi All, I had success in bridging a session, using my Java Program as a hook, and manage to connect one mobile phone to another. It goes like below. === -- originate sofia/gateway/gizmo2/01160176xx java(net.digitalapps.freeswitch.CallTest) === In this case, freeswitch call my Java program. Now, My intension is to not use console at all, instead use my java program to originate a session in freeswitch and then bridge the session. So, call freeswitch from my program, not the other way around. Is it possible? Need suggestions in any case. I mean if I need to come up with my own client. Actually, I was looking JAIN-SIP to achieve this. But then thought of asking your suggestions. With JAIN I might go like this, place a call, hit the dial plan invoke my Java Hook Program and bridge the call. But I am afraid that it might connect my client with the mobile phone, not one phone to another. Thanks. -- Best, Adeel Ansari http://www.linkedin.com/in/adeelansari ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org Emoticon10.gif___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] How to originate a session from outside
Hey guys, How would you find out list of APIs that you can provide as param[] member to the client.execute(...) call? Really appreciate your help Regards, Gayatri Kulkarni From: Adeel Ansari Sent: Friday, August 22, 2008 3:34 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] How to originate a session from outside Actually, I searched the wiki with rpc, nothing appeared, and then I tried xml-rpc, again didn't work. I haven't tried, xmlrpc, this is working. Thanks again, for your inputs. On Fri, Aug 22, 2008 at 6:32 PM, Adeel Ansari [EMAIL PROTECTED] wrote: Glad to hear you, Gayatri. Thanks, Boris. What else I need now. Thanks alot buddy. Will get back to you, with a success message, hopefully. On Fri, Aug 22, 2008 at 6:26 PM, Boris Krivonog [EMAIL PROTECTED] wrote: The easiest way would be using XML-RPC (http://wiki.freeswitch.org/wiki/Freeswitch_XML-RPC), with Apache XML-RPC (http://ws.apache.org/xmlrpc/client.html) libraries the code would look something like: XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl(); config.setServerURL( new URL(http://freeswitchip:8080/RPC2) ); config.setBasicPassword(freeswitch); config.setBasicUserName(works); XmlRpcClient client = new XmlRpcClient(); client.setConfig(config); Object[] params = new Object[]{ originate, sofia/gateway/gizmo2/01160176xx park() }; client.execute( freeswitch.api, params ); Since the code above is written from my memory, take it for illustrative purpose only, however you should get the idea. If you need more control over the call(s), consider using http://wiki.freeswitch.org/wiki/Event_Socket. Hope this helps, Boris On Fri, Aug 22, 2008 at 12:24 PM, Boris Krivonog [EMAIL PROTECTED] wrote: The easiest way would be using XML-RPC (http://wiki.freeswitch.org/wiki/Freeswitch_XML-RPC), with Apache XML-RPC (http://ws.apache.org/xmlrpc/client.html) libraries the code would look something like: XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl(); config.setServerURL( new URL(http://freeswitchip:8080/RPC2) ); XmlRpcClient client = new XmlRpcClient(); client.setConfig(config); Object[] params = new Object[]{ originate, sofia/gateway/gizmo2/01160176xx park() }; client.execute( freeswitch.api, params ); Since the code above is written from my memory, Adeel Ansari wrote: Hi All, I had success in bridging a session, using my Java Program as a hook, and manage to connect one mobile phone to another. It goes like below. === -- originate sofia/gateway/gizmo2/01160176xx java(net.digitalapps.freeswitch.CallTest) === In this case, freeswitch call my Java program. Now, My intension is to not use console at all, instead use my java program to originate a session in freeswitch and then bridge the session. So, call freeswitch from my program, not the other way around. Is it possible? Need suggestions in any case. I mean if I need to come up with my own client. Actually, I was looking JAIN-SIP to achieve this. But then thought of asking your suggestions. With JAIN I might go like this, place a call, hit the dial plan invoke my Java Hook Program and bridge the call. But I am afraid that it might connect my client with the mobile phone, not one phone to another. Thanks. -- Best, Adeel Ansari http://www.linkedin.com/in/adeelansari ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Best, Adeel Ansari http://www.linkedin.com/in/adeelansari -- Best, Adeel Ansari http://www.linkedin.com/in/adeelansari ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch
[Freeswitch-users] Query regarding FreeSWITCH
Hi guys, Is there a way FressSWITCH exposes its list of APIs to third party clients? As in, I have a client and I want to invoke a FreeSWITCH API - Is there anywhere my application can look into to find out what is the list of parameters required? What would a SIP request to FressSWITCH querying about the API name and it's respective parameterlist look like? Does FressSWITCH support such a request basically? - I suppose it does, it has all of it's data in XML format. What would the response be like? Thanks a million, Gayatri Kulkarni. ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] Fwd: FreeSwitch Branch
So how do i commit to the branch? I can't open my branch in the browser either! it says 404 not found! And where do i use the login?? Thanks, Gayatri Kulkarni On Wed, Aug 20, 2008 at 11:19 AM, Brian West [EMAIL PROTECTED] wrote: You don't have commit to the trunk... just your branch. If you're making changes to svn trunk you need to put your changes on jira.freeswitch.org. /b On Aug 20, 2008, at 1:06 PM, Gayatri Kulkarni wrote: yes, i did download the tar ball of the source code from there, but what if i want to check in some of my code changes? where do i execute svn commit ?? Thanks, Gayatri Kulkarni Brian West sip:[EMAIL PROTECTED] [EMAIL PROTECTED] ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org