Re: [Freeswitch-users] FreeSWITCH-users Digest, Vol 67, Issue 153
Thanks for your reply, I checked it, it didn't work. Ok I am new to FreeSWITCH, I do it again. Thank You !!! On Tue, 2012-01-17 at 11:17 +0300, freeswitch-users-request@lists.freeswitch.org wrote:
Send FreeSWITCH-users mailing list submissions to freeswitch-users@lists.freeswitch.org
To subscribe or unsubscribe via the World Wide Web, visit http://lists.freeswitch.org/mailman/listinfo/freeswitch-users or, via email, send a message with subject or body 'help' to freeswitch-users-request@lists.freeswitch.org
You can reach the person managing the list at freeswitch-users-owner@lists.freeswitch.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of FreeSWITCH-users digest..." Today's Topics:
1. Re: sip_auto_answer auto copy to bleg (Seven Du) 2. Re: FreeSWITCH MySQL Support (Ken Rice) 3. Question about the future of mod_nibblebill (Carlo Dimaggio) 4. Re: PHP ESL Custom Events Event-Name sent twice (Gerald Weber) MHTML Document attachment
-------- Forwarded Message -------- From: Seven Du <dujinfang@gmail.com> Reply-To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] sip_auto_answer auto copy to bleg Date: Tue, 17 Jan 2012 14:45:28 +0800
seems yealink phone has problem, see
http://pastebin.freeswitch.org/18138
there's no intercom in b-leg, but maybe because Call-Info present ?
Call-Info: <sip:192.168.7.143>;answer-after=0
The following confirmed work
originate {sip_auto_answer=true}user/1000 &bridge({sip_auto_answer=false,sip_h_Call-info='x'}user/1002)
INVITE sip:1002@192.168.7.105:5062 SIP/2.0 Call-Info: <x>
On Tuesday, January 17, 2012 at 8:44 AM, Anthony Minessale wrote:
originate [sip_auto_answer=true]user/1000 &bridge([sip_auto_answer=false]user/1001)
On Mon, Jan 16, 2012 at 1:15 PM, Seven Du <dujinfang@gmail.com> wrote:
Hi,
I use originate {sip_auto_answer}user/1000 &bridge(user/1001) and want 1000 to be auto answered but not 1001, but it seems FS automatically copy to b-leg. I manually comment the following lines and it seems to work.
// switch_channel_set_variable(nchannel, "sip_invite_params", "intercom=true"); }
switch_ivr_transfer_variable(session, nsession, SOFIA_REPLACES_HEADER); // switch_ivr_transfer_variable(session, nsession, "sip_auto_answer");
would it be good to default to not copy but leave the "export" or equivalent to do that? Or should I patch to add a var to disable that?
Thanks.
-- About: http://about.me/dujinfang Blog: http://www.dujinfang.com Proj: http://www.freeswitch.org.cn
Sent with Sparrow
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
MHTML Document attachment
-------- Forwarded Message -------- From: Ken Rice <krice@freeswitch.org> Reply-To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] FreeSWITCH MySQL Support Date: Tue, 17 Jan 2012 01:09:12 -0600
This is clearly outlined ont eh wiki via ODBC
On 4/16/12 11:05 PM, "Piyush Sharma" <piyush.sharma@coraltele.com> wrote:
Would somebody tell me, How can I change core.db database to MySQL Server instead of Sqlite.
Actually I want FreeSwitch to work with MySQL. I Changed in switch.conf.xml, internal.xml, external.xml files but only few tables were created in MySQL ex. nat,aliases. But I think it still use core.db to store live calls.
Thank You. With Regards, Piyush Sharma, Coral Telecom Limited.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
MHTML Document attachment
-------- Forwarded Message -------- From: Carlo Dimaggio <jaasmailing@gmail.com> Reply-To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: [Freeswitch-users] Question about the future of mod_nibblebill Date: Tue, 17 Jan 2012 09:05:40 +0100
Hi all,
I'm thinking about a development of a custom prepaid application based on mod_nibblebill (that is very interesting). I'm wondering about the status and the future of this module in order to understand if this is the better way to achieve the aim of the project. I have seen in the mod_nibblebill source code this notes:
* TODO: Fix what happens when the DB is not available * TODO: Fix what happens when the DB queries fail (right now, all are acting like success) * TODO: Add buffering abilities * TODO: Make error handling for database, such that when the database is down (or not installed) we just log to a text file * FUTURE: Possibly make the hooks not tied per-channel, and instead just do this as a supervision style application with one thread that watches all calls
Does the developers think to continue supporting the module (not only bugfix but new features)?
I'm sorry for the particular question but I wouldn't do errors at this stage of the project.
Best Regards, MHTML Document attachment -------- Forwarded Message -------- From: Gerald Weber <gerald.weber@besharp.at> Reply-To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] PHP ESL Custom Events Event-Name sent twice Date: Tue, 17 Jan 2012 08:17:16 +0000
Hi,
thanks for your answers
@Anthony:
I did a “make current” mins ago, fs starts with version
FreeSWITCH Version 1.0.head (git-ef097a1 2012-01-16 17-26-35 -0600)
@MC
I connect using ./fs_cli –H 192.168.20.73 –P 8021
/log 0
/event plain custom
(additionally I connect to fs using telnet 192.168.20.73 8021 on another terminal and issued “event plain all”)
Starting my php script, fs_cli shows nothing, telnet shows the event:
Content-Length: 583
Content-Type: text/event-plain
Event-Subclass: CONFIG%3A%3AAGENT_LIST
Event-Name: SOCKET_DATA
…
Event-Date-Timestamp: 1326785361276007
…
Event-Name: CUSTOM
Agents: 2022
ZMQ-Msg-Cnt: 244
/event plain CUSTOM in fs_cli and restart php script -> no output.
(first event subscription except all doesn’t work ?)
/event plain all in fs_cli and restart php script shows:
RECV EVENT
Event-Subclass: CONFIG::AGENT_LIST
Core-UUID: ca0f2950-40d9-11e1-8145-99e6c2b17445
…
Event-Date-Timestamp: 1326785361276007
…
Command: sendevent CUSTOM
Event-Name: CUSTOM
Agents: 2022
ZMQ-Msg-Cnt: 244
“/event plain custom” (or /event plain CUSTOM) in fs_cli and restart php script shows the event and other events too (like RE_SCHEDULE and HEARTBEAT)
This leads me to the following question:
- Why does /event plain custom (/event plain CUSTOM) in fs_cli show other events too ?
Then I played a bit in telnet:
telnet 192.168.20.73 8021 .. auth stuff…
event plain custom (or events plain CUSTOM) and restart php -> no output
event plain all and restart php -> event shown
filter Event-Name CUSTOM (or custom) and restart php -> no output
filter delete Event-Name CUSTOM
filter Event-Subclass CONFIG::AGENT_LIST and restart php -> event shown
Played more with telnet:
Fresh connect
event plain CUSTOM -> callcenter_config agent set status …. -> no output
event plain ALL -> callcenter_config agent set status …. -> event shown
event filter Event-Name CUSTOM -> callcenter_config agent set status …. -> event shown (and only custom events)
Seems that sending Events using the esl library adds SOCKET_DATA and event all CUSTOM / filter Event-Name custom can’t
handle that ?
Regarding the ZMQ stuff:
I use mod_event_zmq and was missing a couple of events, so I added a sequence to every event zmq publishes.
Later I discovered a bug in my code, I was calling the recv function twice and didn’t recognize it for a whole day…..
Regards,
gw
Von: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] Im Auftrag von Michael Collins Gesendet: Dienstag, 17. Jänner 2012 01:36 An: FreeSWITCH Users Help Betreff: Re: [Freeswitch-users] PHP ESL Custom Events Event-Name sent twice
Just for testing, try this at the fs_cli and see if you receive two different "Event-Name" headers:
/log 0 /event plain custom
Run your php script in another terminal window and see what shows up on the console. This is a straight ESL connection between fs_cli and the FS server so whatever you see displayed on the console is "real". Let us know what happens.
-MC
P.S. - Just curious, what's up with the ZMQ stuff?
On Mon, Jan 16, 2012 at 7:39 AM, Gerald Weber <gerald.weber@besharp.at> wrote:
Hello,
i’m trying to send custom events using PHP ESL Library.
(running FreeSWITCH Version 1.0.head (git-c37c029 2012-01-11 21-35-19 -0600))
My PHP Code:
<?php
require_once('ESL.php');
$sock = new ESLconnection('192.168.20.73', '8021', 'ClueCon');
$e = new ESLevent("CUSTOM","CONFIG::AGENT_LIST");
$e->addHeader("Agents","2022");
$sock->sendEvent($e);
?>
When I connect to fs using telnet and run the php script from another xterm, I can see the following output:
Content-Length: 657
Content-Type: text/event-json
{
"Event-Subclass": "CONFIG::AGENT_LIST",
"Event-Name": "SOCKET_DATA",
"Core-UUID": "b3ac8858-4019-11e1-910a-9b04baf8e5ea",
"FreeSWITCH-Hostname": "freeswitch.local",
"FreeSWITCH-Switchname": "freeswitch.local",
"FreeSWITCH-IPv4": "192.168.20.73",
"FreeSWITCH-IPv6": "::1",
"Event-Date-Local": "2012-01-16 15:20:23",
"Event-Date-GMT": "Mon, 16 Jan 2012 14:20:23 GMT",
"Event-Date-Timestamp": "1326723623776184",
"Event-Calling-File": "mod_event_socket.c",
"Event-Calling-Function": "read_packet",
"Event-Calling-Line-Number": "1188",
"Command": "sendevent CUSTOM",
"Event-Name": "CUSTOM",
"Agents": "2022",
"ZMQ-Msg-Cnt": "3508"
}
Looks ok, but i don’t get why “Event-Name” is sent twice.
Shouldn’t there be an Event-Name: CUSTOM only ?
Is there a way to avoid this or am i missing something ?
thx & regards,
gw
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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 -- Piyush Sharma <piyush.sharma@coraltele.com>
participants (1)
-
Piyush Sharma