Re: [Freeswitch-users] Need Conference design help

2009-12-07 Thread lakshmanan ganapathy
Have a look at mod_conference
http://wiki.freeswitch.org/wiki/Mod_conference

On Sat, Dec 5, 2009 at 12:47 PM, shehzad p  wrote:

>
> Hello Every one,
>
> I have to design conference, and I need community guidance to efficiently
> accomplish that.
>
> I need to create Conference which will have three kind of users:
> 1. Moderator (may be only one per conference)
> 2. User who can participate in conference without moderator interaction.
> 3. User who can only participate when Moderator allow them to get in.
>
> Also besides above setup I have to perform other things like Record the
> conference, Multicast the conference to other freeswitch server. I saw the
> conference Record CLI command but wondering where to setup when conference
> starts. I am also wondering how Multicast Conference is possible in
> Freeswitch and how the receiver Freeswitch configuration will look like.
>
> Thanks.
> msp
>
> --
> View this message in context:
> http://old.nabble.com/Need-Conference-design-help-tp26653473p26653473.html
> Sent from the Freeswitch-users mailing list archive at Nabble.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


Re: [Freeswitch-users] Callback to the user in ESL

2009-11-30 Thread lakshmanan ganapathy
In the previous reply you told me to use new "OUTBOUND" connection.
But in this post you mention "INBOUND" connection.

That confusion only made me to ask the question once again. Pardon me if I
made any mistake.

Making a new inbound connection does the task. Thanks for that.


On Sat, Nov 28, 2009 at 12:49 AM, Anthony Minessale <
anthony.miness...@gmail.com> wrote:

> I told you to make a new separate inbound connection back to the server
> from your script, do not use the same one thta was tethered to the call
> because its too late to use that one.
>
> Why do I have to answer you twice?
>
>
>
> On Thu, Nov 26, 2009 at 3:27 AM, lakshmanan ganapathy <
> lakindi...@gmail.com> wrote:
>
>> Hi, Any help or suggestion regarding my previous post. Especially
>>
>>
>> "I also noted that, if I don't receive any events, especially
>> "SERVER_DISCONNECTED", then the connection is in established state, but once
>> I receive the "SERVER_DISCONNECTED" event, the connection is closed. Is it
>> correct??"
>> Here is the program by which I confirmed the above!
>>
>>
>> require ESL;
>> use IO::Socket::INET;
>>
>> my $ip = "192.168.1.222";
>> my $sock = new IO::Socket::INET ( LocalHost => $ip,  LocalPort => '8447',
>> Proto => 'tcp',  Listen => 2,  Reuse => 1 );
>> die "Could not create socket: $!\n" unless $sock;
>> my $con;
>> my $type = "user/";
>>
>> for(;;) {
>> # wait for any client to connect, a new client will get connected
>> when a new call comes in the dialplan.
>>
>> my $new_sock = $sock->accept();
>> # Do fork and let the parent to wait for more clients.
>>
>> my $pid = fork();
>> if ($pid) {
>> close($new_sock);
>> next;
>> }
>> # Extract the host of the client.
>>
>> my $host = $new_sock->sockhost();
>> # file descriptor for the socket.
>>
>> my $fd = fileno($new_sock);
>> print "Host name is $host\n";
>> # Create object for the ESL connection package to access the ESL
>> functions.
>>
>> $con = new ESL::ESLconnection($fd);
>> # Gets the info about this channel.
>>
>> my $info = $con->getInfo();
>> my $uuid = $info->getHeader("unique-id");
>> printf "Connected call %s, from %s to %s\n", $uuid,
>> $info->getHeader("caller-caller-id-number"),
>> $info->getHeader("caller-destination-number");
>>
>> # Answer the channel.
>> $con->execute("answer");
>> # Set the event lock to tell the FS to execute the instructions in
>> the given order.
>> $con->setEventLock("true");
>> # Play a file & Get the personal number from the user.
>>
>> $con->execute("playback","/usr/local/freeswitch/sounds/en/us/callie/ivr/8000/ivr-welcome_to_freeswitch.wav");
>> $con->execute("hangup");
>>
>> while($con->connected())
>> {
>> my $e=$con->recvEvent();
>> my $ename=$e->getHeader("Event-Name");
>> print $e->serialize();
>> print "$ename\n";
>> print "Connection exists\n";
>> sleep(1);
>>
>> }
>> print
>> "Bye\n------\n";
>> close($new_sock);
>> }
>> I've not registered for any events.
>> In the above program I'm receiving the SERVER_DISCONNECTED event.
>> Output when receiving event:
>> Host name is 192.168.1.222
>> Connected call 022b79f8-d8c0-11de-8d50-596fac84e59e, from 1000 to 9097
>> Event-Name: SERVER_DISCONNECTED
>>
>> SERVER_DISCONNECTED
>> Connection exists
>> Bye
>>
>> When I comment the recvEvent line, I got the following output.
>>
>> Host name is 192.168.1.222
>> Connected call 65b7f64a-d8c0-11de-8d50-596fac84e59e, from 1000 to 9097
>> Connection exists
>> Connection exists
>> Connection exists
>> Connection exists
>> Connection exists
>>
>>
>>
>> On Tue, Nov 24, 2009 at 5:57 PM, lakshmanan ganapathy <
>> lakindi...@gmail.co

Re: [Freeswitch-users] Callback to the user in ESL

2009-11-26 Thread lakshmanan ganapathy
Hi, Any help or suggestion regarding my previous post. Especially

"I also noted that, if I don't receive any events, especially
"SERVER_DISCONNECTED", then the connection is in established state, but once
I receive the "SERVER_DISCONNECTED" event, the connection is closed. Is it
correct??"
Here is the program by which I confirmed the above!

require ESL;
use IO::Socket::INET;

my $ip = "192.168.1.222";
my $sock = new IO::Socket::INET ( LocalHost => $ip,  LocalPort => '8447',
Proto => 'tcp',  Listen => 2,  Reuse => 1 );
die "Could not create socket: $!\n" unless $sock;
my $con;
my $type = "user/";

for(;;) {
# wait for any client to connect, a new client will get connected
when a new call comes in the dialplan.
my $new_sock = $sock->accept();
# Do fork and let the parent to wait for more clients.
my $pid = fork();
if ($pid) {
close($new_sock);
next;
}
# Extract the host of the client.
my $host = $new_sock->sockhost();
# file descriptor for the socket.
my $fd = fileno($new_sock);
print "Host name is $host\n";
# Create object for the ESL connection package to access the ESL
functions.
$con = new ESL::ESLconnection($fd);
# Gets the info about this channel.
my $info = $con->getInfo();
my $uuid = $info->getHeader("unique-id");
printf "Connected call %s, from %s to %s\n", $uuid,
$info->getHeader("caller-caller-id-number"),
$info->getHeader("caller-destination-number");

# Answer the channel.
$con->execute("answer");
# Set the event lock to tell the FS to execute the instructions in
the given order.
$con->setEventLock("true");
# Play a file & Get the personal number from the user.

$con->execute("playback","/usr/local/freeswitch/sounds/en/us/callie/ivr/8000/ivr-welcome_to_freeswitch.wav");
$con->execute("hangup");
while($con->connected())
{
my $e=$con->recvEvent();
my $ename=$e->getHeader("Event-Name");
print $e->serialize();
print "$ename\n";
print "Connection exists\n";
sleep(1);
}
print
"Bye\n--\n";
close($new_sock);
}
I've not registered for any events.
In the above program I'm receiving the SERVER_DISCONNECTED event.
Output when receiving event:
Host name is 192.168.1.222
Connected call 022b79f8-d8c0-11de-8d50-596fac84e59e, from 1000 to 9097
Event-Name: SERVER_DISCONNECTED

SERVER_DISCONNECTED
Connection exists
Bye

When I comment the recvEvent line, I got the following output.

Host name is 192.168.1.222
Connected call 65b7f64a-d8c0-11de-8d50-596fac84e59e, from 1000 to 9097
Connection exists
Connection exists
Connection exists
Connection exists
Connection exists


On Tue, Nov 24, 2009 at 5:57 PM, lakshmanan ganapathy
wrote:

> I've tried the following program as per the suggestion that you've told.
> But it seems, no success. Once the connection is closed, I created a new
> connection and I send originate to originate a new call. But it is not
> working.
>
> require ESL;
> use IO::Socket::INET;
> use Data::Dumper;
>
> my $ip = "192.168.1.222";
> my $sock = new IO::Socket::INET ( LocalHost => $ip,  LocalPort => '8447',
> Proto => 'tcp',  Listen => 2,  Reuse => 1 );
> die "Could not create socket: $!\n" unless $sock;
>
> my $make_call;
> my $con;
> my $type = "user/";
>
> for(;;) {
> my $new_sock = $sock->accept();
> my $pid = fork();
> if ($pid) {
> close($new_sock);
> next;
> }
> my $host = $new_sock->sockhost();
> my $fd = fileno($new_sock);
> $con = new ESL::ESLconnection($fd);
> my $info = $con->getInfo();
> my $uuid = $info->getHeader("unique-id");
> printf "Connected call %s, from %s to %s\n", $uuid,
> $info->getHeader("caller-caller-id-number"),
> $info->getHeader("caller-destination-number");
>
> $con->filter("Unique-Id", $uuid);
> $con->events("plain", "all");
> $con->execute("answer");
> $con->setEventLock("true");
> my $number=$con->execute("read","2 4
&

Re: [Freeswitch-users] Callback to the user in ESL

2009-11-24 Thread lakshmanan ganapathy
I've tried the following program as per the suggestion that you've told. But
it seems, no success. Once the connection is closed, I created a new
connection and I send originate to originate a new call. But it is not
working.

require ESL;
use IO::Socket::INET;
use Data::Dumper;

my $ip = "192.168.1.222";
my $sock = new IO::Socket::INET ( LocalHost => $ip,  LocalPort => '8447',
Proto => 'tcp',  Listen => 2,  Reuse => 1 );
die "Could not create socket: $!\n" unless $sock;

my $make_call;
my $con;
my $type = "user/";

for(;;) {
my $new_sock = $sock->accept();
my $pid = fork();
if ($pid) {
close($new_sock);
next;
}
my $host = $new_sock->sockhost();
my $fd = fileno($new_sock);
$con = new ESL::ESLconnection($fd);
my $info = $con->getInfo();
my $uuid = $info->getHeader("unique-id");
printf "Connected call %s, from %s to %s\n", $uuid,
$info->getHeader("caller-caller-id-number"),
$info->getHeader("caller-destination-number");

$con->filter("Unique-Id", $uuid);
$con->events("plain", "all");
$con->execute("answer");
$con->setEventLock("true");
my $number=$con->execute("read","2 4
/usr/local/freeswitch/sounds/en/us/callie/conference/8000/conf-pin.wav
accnt_number 5000 #");
while($con->connected())
{
my $e=$con->recvEvent();
my $ename=$e->getHeader("Event-Name");
my $app=$e->getHeader("Application");
if($ename eq "CHANNEL_EXECUTE_COMPLETE" and $app eq "read")
{
my $num=$e->getHeader("variable_accnt_number");
print "$num\n";
$con->execute("hangup");
}
}
if(!$con->connected())
{
print "Connection not exists\n";
$con = new ESL::ESLconnection($fd);
$con->api("originate","user/1000 &park()");
print "Hai\n";
}
print
"Bye\n--\n";
close($new_sock);
}
Output:
Connected call 6b713588-d8c5-11de-8d50-596fac84e59e, from 1000 to 9097
1000
Connection not exists
Hai
Bye
--
The freeswitch log is in
http://pastebin.freeswitch.org/11258

I also noted that, if I don't receive any events, especially
"SERVER_DISCONNECTED", then the connection is in established state, but once
I receive the "SERVER_DISCONNECTED" event, the connection is closed. Is it
correct??




On Tue, Nov 24, 2009 at 1:10 AM, Anthony Minessale <
anthony.miness...@gmail.com> wrote:

> or open a new outbound connection at the end of your script so you can send
> your originate command.
> Since the channel hanging up will close your existing connection since it's
> only an outbound single session socket.
>
>
> On Mon, Nov 23, 2009 at 11:51 AM, Michael Collins wrote:
>
>>
>>
>> On Mon, Nov 23, 2009 at 3:25 AM, lakshmanan ganapathy <
>> lakindi...@gmail.com> wrote:
>>
>>> Hi,
>>> I'm using perl ESL to control the call in freeswitch.
>>> I'm having the following scenario, but not able to get it right.
>>>
>>> Dialplan:
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>>
>>> 1. User A calls to an extention (1000).
>>> 2. My ESL program will be running, and it answers the call.
>>> 3. Then the program will get a number from the user.
>>> 4. It will hangup the call.
>>> 5. The program has to call to the number that was given by the user.
>>>
>>> In the above scenario, I was able to do until the 4th step. After hangup
>>> the call, if I say originate it is not working.
>>> Any ideas on how to do this in ESL.
>>>
>>>
>> I want to make sure I understand what the script is supposed to be doing.
>> The caller will key in a phone number to your script and your script will
>> collect those digits. The script will then hangup on the caller and
>> originate a completely new call? Perhaps you could use sched_api to schedule
>> a new originate command for a few seconds into the future and then hangup?
>> -MC
>>
>>
>> ___

Re: [Freeswitch-users] Callback to the user in ESL

2009-11-24 Thread lakshmanan ganapathy
Yes Mr. Collins, I've tried with shed_api. But I was not able to control, if
the user reject the call.

I made a shed_api to originate a call to 1000 and If it is answered, I'll
transfer the call to 9097 (So it comes to my program, refer the dialplan in
my question). But what happens if the user 1000, reject the call. I can't
control that.
If the user 1000, reject the call, I need to call the user after some time.

Any way to do this!!

On Mon, Nov 23, 2009 at 11:21 PM, Michael Collins wrote:

>
>
> On Mon, Nov 23, 2009 at 3:25 AM, lakshmanan ganapathy <
> lakindi...@gmail.com> wrote:
>
>> Hi,
>> I'm using perl ESL to control the call in freeswitch.
>> I'm having the following scenario, but not able to get it right.
>>
>> Dialplan:
>> 
>> 
>> 
>> 
>> 
>> 
>>
>>
>> 1. User A calls to an extention (1000).
>> 2. My ESL program will be running, and it answers the call.
>> 3. Then the program will get a number from the user.
>> 4. It will hangup the call.
>> 5. The program has to call to the number that was given by the user.
>>
>> In the above scenario, I was able to do until the 4th step. After hangup
>> the call, if I say originate it is not working.
>> Any ideas on how to do this in ESL.
>>
>>
> I want to make sure I understand what the script is supposed to be doing.
> The caller will key in a phone number to your script and your script will
> collect those digits. The script will then hangup on the caller and
> originate a completely new call? Perhaps you could use sched_api to schedule
> a new originate command for a few seconds into the future and then hangup?
> -MC
>
>
> ___
> 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] Callback to the user in ESL

2009-11-23 Thread lakshmanan ganapathy
Hi,
I'm using perl ESL to control the call in freeswitch.
I'm having the following scenario, but not able to get it right.

Dialplan:








1. User A calls to an extention (1000).
2. My ESL program will be running, and it answers the call.
3. Then the program will get a number from the user.
4. It will hangup the call.
5. The program has to call to the number that was given by the user.

In the above scenario, I was able to do until the 4th step. After hangup the
call, if I say originate it is not working.
Any ideas on how to do this in ESL.
___
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] Flushing the Event buffer in Perl Event Socket

2009-11-10 Thread lakshmanan ganapathy
That doesn't seems to work for me.
Here is my need.
I'm using Async in the Event socket outbound.

I'll register for "events plain all"
I'll answer the call.
I'll playback a message.
I'll sleep for 5 seconds.
After that, I'll receive the events.
I don't need the events that are for answer and playback. That action is
completed and don't want to receive events for those application.

I set $|=1 in my ESL script.
But it doesn't seems to solve the above issue.
Any helppls!!!

On Tue, Nov 10, 2009 at 7:41 PM, Brian West  wrote:

> $| = 1;
>
> I think that is what you're lookin for.
>
> /b
>
> On Nov 10, 2009, at 4:51 AM, lakshmanan wrote:
>
> > I was in a need of flushing the events buffer without reading
> > it.I've done
> > the following ESL(Async) program to flush the events.
>
>
> ___
> 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] Freeswitch core dumped, when setting callback to events

2009-11-10 Thread lakshmanan ganapathy
What is meant by debug packages. Kindly specify where it is available.


On Wed, Nov 11, 2009 at 10:09 AM, Brian West  wrote:

> You need to install the debug packages so you the symbols because that
> backtrace is useless.
> /b
>
> On Nov 10, 2009, at 10:10 PM, lakshmanan ganapathy wrote:
>
> Here is the required detail.
>
> http://pastebin.freeswitch.org/11049
>
>
>
> ___
> 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] Freeswitch core dumped, when setting callback to events

2009-11-10 Thread lakshmanan ganapathy
Here is the required detail.

http://pastebin.freeswitch.org/11049

On Mon, Nov 9, 2009 at 10:04 PM, Anthony Minessale <
anthony.miness...@gmail.com> wrote:

> 1) install gdb
> 2) run support_d/fscore_db in the tree from the working directory of the
> core.
> 3) if you are not on svn trunk, "make current" and start over.
>
>
> On Mon, Nov 9, 2009 at 5:53 AM, lakshmanan ganapathy  > wrote:
>
>> Dear all,
>> I did the below code, to callback a function when CHANNEL_EXECUTE_COMPLETE
>> event comes.
>> I executed the script for the 1st time and I got nothing.
>> When I executed the script for the 2nd time, it ended with Sedmentation
>> fault with core dumped.
>>
>> I was unable to attach the core dump file with this mail.
>> Please specify how to send files to freeswitch user mailing list if need
>> be.
>>
>> The freeswitch log is here:
>> http://pastebin.freeswitch.org/11038
>>
>> #!/usr/bin/perl
>> use strict;
>> use Data::Dumper;
>> our $session;
>> $session->answer();
>> my $events=new freeswitch::EventConsumer("CHANNEL_EXECUTE_COMPLETE");
>> $events->pop(1);
>> $events->swig_e_callback_set("playvoice");
>> sub playvoice()
>> {
>> freeswitch::consoleLog("INFO","Call back function called\n");
>> }
>> return 1;
>>
>>
>> ___
>> 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_miness...@hotmail.com 
> GTALK/JABBER/PAYPAL:anthony.miness...@gmail.com
> IRC: irc.freenode.net #freeswitch
>
> FreeSWITCH Developer Conference
> sip:8...@conference.freeswitch.org 
> iax:gu...@conference.freeswitch.org/888
> googletalk:conf+...@conference.freeswitch.org
> 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] Freeswitch core dumped, when setting callback to events

2009-11-09 Thread lakshmanan ganapathy
Dear all,
I did the below code, to callback a function when CHANNEL_EXECUTE_COMPLETE
event comes.
I executed the script for the 1st time and I got nothing.
When I executed the script for the 2nd time, it ended with Sedmentation
fault with core dumped.

I was unable to attach the core dump file with this mail.
Please specify how to send files to freeswitch user mailing list if need be.

The freeswitch log is here:
http://pastebin.freeswitch.org/11038

#!/usr/bin/perl
use strict;
use Data::Dumper;
our $session;
$session->answer();
my $events=new freeswitch::EventConsumer("CHANNEL_EXECUTE_COMPLETE");
$events->pop(1);
$events->swig_e_callback_set("playvoice");
sub playvoice()
{
freeswitch::consoleLog("INFO","Call back function called\n");
}
return 1;
___
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] Events in mod_perl

2009-11-05 Thread lakshmanan ganapathy
Hi all,
Is there any way to receive events while running a perl program with the
help of mod_perl??

I've seen some functions related to sending and receiving events in the
mod_perl wiki. But I don't know how to use that.
Any help!!!
___
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] Playing Background music as well as a file

2009-10-27 Thread lakshmanan ganapathy
I tried the uuid_displace by using the Event Socket Outbound.
Not tried within dialplan, and I'm not sure whether that could be done in
dialplan itself.


On Tue, Oct 27, 2009 at 12:37 PM, Dome Charoenyost  wrote:

> 2009/10/27 lakshmanan ganapathy :
> > Hi all,
> > I've done experimenting with the uuid_displace and mux. What mux does
> is
> > playing a file when the conversation is also happening. But I've a
> different
> > requirement.
>
> Is posible to use uuid_displace in dialplan ?  i want to do music
> background base on called id
>
> > I need to play a background music to a UUID, that will get played
> > continuously and also I need to play some other voice message to that
> uuid.
> >
> > Is it possible in freeswitch? If so please guide me on how to do that!
> >
> >
> >
> > ___
> > 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] Playing Background music as well as a file

2009-10-26 Thread lakshmanan ganapathy
Hi all,
I've done experimenting with the uuid_displace and mux. What mux does is
playing a file when the conversation is also happening. But I've a different
requirement.
I need to play a background music to a UUID, that will get played
continuously and also I need to play some other voice message to that uuid.

Is it possible in freeswitch? If so please guide me on how to do that!
___
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] Digium TE220 wiki

2009-10-20 Thread lakshmanan ganapathy
Hi all,
I've created a wiki page, which contains the example configuration for
making Digium TE220 to work.
I request you people to check this, and give feedbacks.

http://wiki.freeswitch.org/wiki/Configuration_OpenZap-DigiumTE220-Example
___
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] openzap Failure opening channel error

2009-10-14 Thread lakshmanan ganapathy
Hi,
Tried setting PCMA as first parameter in vars.xml, no use. Still I got the
same error.

Tried setting the absolute_codec_string to PCMA, but got the same error.

But I tried with a another parameter in openzap.conf.xml, which I got from
the following thread
http://www.nabble.com/Problem-dialing-out-via-E1-to22479047.html#a22626383



After that I was able to make outgoing call, with the dialplan that I've.

But I don't know why setting PCMA has not worked. Have any guess???

I planned to document this in the wiki.

I was struggling to originate a call from the CLI.
originate openzap/1/1/9952248266 openzap/1/1/9952248266 says "No route.
Aborting".

Have to find a way for this.

I sincerely thank you for your valuable time and effort on this matter.



On Wed, Oct 14, 2009 at 11:33 AM, Michael Collins wrote:

> Lak,
>
> Okay, it stood out right away: FS is trying u-law but Asterisk is trying
> A-law. I'm not sure where the codec for openzap gets selected but you can
> try modifying this line in vars.xml:
>
> 
>
> Try putting PCMA first. Also, I've never tried this but perhaps in your
> dialplan you can set absolute_codec_string to PCMA. I'm very interesting in
> hearing about the results. Please try them as soon as you can and report
> back.
>
> Thanks,
> MC
>
>
> On Tue, Oct 13, 2009 at 10:34 PM, lakshmanan ganapathy <
> lakindi...@gmail.com> wrote:
>
>> Hi. I made the setup quickly with one of my colleague, and here is the
>> debug log given by asterisk
>>
>> Steps done by me :
>>  + Call Made from 04443902743 to 04439114600
>>  + When call lands to 04439114600, I just route it to 09176454982.
>>
>>
>> *CLI>
>> *CLI>
>> *CLI> pri debug span 1
>> Enabled debugging on span 1
>> *CLI>
>> *CLI>
>> *CLI>
>> *CLI> < Protocol Discriminator: Q.931 (8)  len=41
>> < Call Ref: len= 2 (reference 21/0x15) (Originator)
>>
>>
>> < Message type: SETUP (5)
>> < [a1]
>> < Sending Complete (len= 1)
>> < [04 03 80 90 a3]
>> < Bearer Capability (len= 5) [ Ext: 1  Q.931 Std: 0  Info transfer 
>> capability: Speech (0)
>> <  Ext: 1  Trans mode/rate: 64kbps, circuit-mode 
>> (16)
>>
>>
>> <User information layer 1: A-Law (35)
>> < [18 03 a1 83 9f]
>> < Channel ID (len= 5) [ Ext: 1  IntID: Implicit  PRI  Spare: 0  Preferred  
>> Dchan: 0
>> <ChanSel: As indicated in following octets
>>
>>
>> <   Ext: 1  Coding: 0  Number Specified  Channel Type: 3
>> <   Ext: 1  Channel: 31 ]
>> < [6c 0c 01 81 34 34 34 33 39 30 32 37 34 33]
>> < Calling Number (len=14) [ Ext: 0  TON: Unknown Number Type (0)  NPI: 
>> ISDN/Telephony Numbering Plan (E.164/E.163) (1)
>>
>>
>> <   Presentation: Presentation permitted, user 
>> number passed network screening (1)  '4443902743' ]
>> < [70 09 c1 33 39 31 31 34 36 30 30]
>> < Called Number (len=11) [ Ext: 1  TON: Subscriber Number (4)  NPI: 
>> ISDN/Telephony Numbering Plan (E.164/E.163) (1)  '39114600' ]
>>
>>
>> -- Making new call for cr 21
>> -- Processing Q.931 Call Setup
>> -- Processing IE 161 (cs0, Sending Complete)
>> -- Processing IE 4 (cs0, Bearer Capability)
>> -- Processing IE 24 (cs0, Channel Identification)
>> -- Processing IE 108 (cs0, Calling Party Number)
>>
>>
>> -- Processing IE 112 (cs0, Called Party Number)
>> q931.c:3504 q931_receive: call 21 on channel 31 enters state 6 (Call Present)
>> q931.c:2769 q931_call_proceeding: call 21 on channel 31 enters state 9 
>> (Incoming Call Proceeding)
>>
>> > Protocol Discriminator: Q.931 (8)  len=10
>> > Call Ref: len= 2 (reference 21/0x15) (Terminator)
>> > Message type: CALL PROCEEDING (2)
>>
>> > [18 03 a9 83 9f]
>> > Channel ID (len= 5) [ Ext: 1  IntID: Implicit  PRI  Spare: 0  Exclusive  
>> > Dchan: 0
>> >ChanSel: As indicated in following octets
>>
>> >   Ext: 1  Coding: 0  Number Specified  Channel Type: 3
>> >   Ext: 1  Channel: 31 ]
>>
>> -- Accepting call from '4443902743' to '39114600' on channel 0/31, span 1
>> -- Executing [39114...@incoming-from-pri:1] NoOp("Zap/31-1", "FMS Call 
>> Extn:39114600:| CID::| Channel:Zap/31-1:| ") in new stack
>>

Re: [Freeswitch-users] openzap Failure opening channel error

2009-10-13 Thread lakshmanan ganapathy
dard (0)  Spare: 0  
> Location: Private network serving the local user (1)
>  Ext: 1  Cause: Normal Clearing (16), class = Normal Event 
> (1) ]

-- Hungup 'Zap/1-1'
  == Spawn extension (incoming-from-pri, 39114600, 2) exited non-zero
on 'Zap/31-1'
-- Executing [...@incoming-from-pri:1] Hangup("Zap/31-1", "") in new stack
  == Spawn extension (incoming-from-pri, h, 1) exited non-zero on 'Zap/31-1'
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Active, peerstate Active
q931.c:2968 q931_disconnect: call 21 on channel 31 enters state 11
(Disconnect Request)

> Protocol Discriminator: Q.931 (8)  len=9
> Call Ref: len= 2 (reference 21/0x15) (Terminator)
> Message type: DISCONNECT (69)
> [08 02 81 90]
> Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0  
> Location: Private network serving the local user (1)
>  Ext: 1  Cause: Normal Clearing (16), class = Normal Event 
> (1) ]

-- Hungup 'Zap/31-1'
< Protocol Discriminator: Q.931 (8)  len=5
< Call Ref: len= 2 (reference 2/0x2) (Terminator)
< Message type: RELEASE COMPLETE (90)
q931.c:3719 q931_receive: call 32770 on channel 1 enters state 0 (Null)
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null
< Protocol Discriminator: Q.931 (8)  len=5
< Call Ref: len= 2 (reference 21/0x15) (Originator)
< Message type: RELEASE (77)
q931.c:3754 q931_receive: call 21 on channel 31 enters state 0 (Null)
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Release Request

> Protocol Discriminator: Q.931 (8)  len=9
> Call Ref: len= 2 (reference 21/0x15) (Terminator)
> Message type: RELEASE COMPLETE (90)
> [08 02 81 90]
> Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0  
> Location: Private network serving the local user (1)
>  Ext: 1  Cause: Normal Clearing (16), class = Normal Event 
> (1) ]

NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null


On Tue, Oct 13, 2009 at 9:16 PM, Michael S Collins wrote:

>
> On Oct 13, 2009, at 6:45 AM, lakshmanan ganapathy 
> wrote:
>
> We are using Reliance as the Carrier.
> I think, with this same Reliance carrier, in my office, they are able to
> make outgoing calls through asterisk+libpri.
>
>
> If that's the case I would be very interested in seeing a pri debug from a
> working call on an asterisk box. It might give us a clue as to what is not
> working. -MC
>
>
>
> On Tue, Oct 13, 2009 at 12:19 AM, Michael Collins < 
> m...@freeswitch.org> wrote:
>
>> Lak,
>>
>> Okay I will need a little bit of time to dig into the IE's and what they
>> contain. In the meantime can you tell me who the carrier is? I'd like to
>> find out if they have some specific requirements. The fact that it doesn't
>> work with libpri surprises me because that would mean that Asterisk systems
>> would probably not work with this carrier as well.
>>
>> BTW, thanks for the very complete pastebin entries. :)
>> -MC
>>
>>
> ___
> 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] openzap Failure opening channel error

2009-10-13 Thread lakshmanan ganapathy
But that setup is not there right now. It was an year back they used that.
I'll try to make those setup and send you the log. I think it may take some
2 days time, and I'm not very familiar with asterisk.

In the mean time, I request you to kindly go-through freeswitch debug log.
You may still get some clue.


On Tue, Oct 13, 2009 at 9:16 PM, Michael S Collins wrote:

>
> On Oct 13, 2009, at 6:45 AM, lakshmanan ganapathy 
> wrote:
>
> We are using Reliance as the Carrier.
> I think, with this same Reliance carrier, in my office, they are able to
> make outgoing calls through asterisk+libpri.
>
>
> If that's the case I would be very interested in seeing a pri debug from a
> working call on an asterisk box. It might give us a clue as to what is not
> working. -MC
>
>
>
> On Tue, Oct 13, 2009 at 12:19 AM, Michael Collins < 
> m...@freeswitch.org> wrote:
>
>> Lak,
>>
>> Okay I will need a little bit of time to dig into the IE's and what they
>> contain. In the meantime can you tell me who the carrier is? I'd like to
>> find out if they have some specific requirements. The fact that it doesn't
>> work with libpri surprises me because that would mean that Asterisk systems
>> would probably not work with this carrier as well.
>>
>> BTW, thanks for the very complete pastebin entries. :)
>> -MC
>>
>>
> ___
> 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] openzap Failure opening channel error

2009-10-13 Thread lakshmanan ganapathy
We are using Reliance as the Carrier.
I think, with this same Reliance carrier, in my office, they are able to
make outgoing calls through asterisk+libpri.

On Tue, Oct 13, 2009 at 12:19 AM, Michael Collins wrote:

> Lak,
>
> Okay I will need a little bit of time to dig into the IE's and what they
> contain. In the meantime can you tell me who the carrier is? I'd like to
> find out if they have some specific requirements. The fact that it doesn't
> work with libpri surprises me because that would mean that Asterisk systems
> would probably not work with this carrier as well.
>
> BTW, thanks for the very complete pastebin entries. :)
> -MC
>
>
> ___
> 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] openzap Failure opening channel error

2009-10-12 Thread lakshmanan ganapathy
Ya ok. Here is the required stuff
Configuration: (PRI span)
















Log while starting freeswitch:
http://pastebin.freeswitch.org/10646

Log when making a call:
http://pastebin.freeswitch.org/10647


Configuration: (LIBPRI SPAN)














Log while starting freeswitch:
http://pastebin.freeswitch.org/10648

Log while making a call:
http://pastebin.freeswitch.org/10649



On Sat, Oct 10, 2009 at 10:39 PM, Michael Collins wrote:

> Okay, please go to pastebin.freeswitch.org and paste your openzap.conf.xml
> file. Also, paste the ENTIRE debug log from a call from start to finish.
> Telling us that you see INVALID_IE_CONTENTS doesn't help if we don't know
> what the information element contains. Finally, turn on PRI debugging and
> make another test call and pastebin that debug log as well. The debug will
> show details about the communications between your machine and the carrier.
> Instructions for turning on debugging for libpri are found in the OpenZAP
> wiki page in the same place where the libpri instructions are located.
>
> Put the pastebin number in this email thread and then we'll go have a look.
>
> Thanks,
> MC
>
>
> On Sat, Oct 10, 2009 at 6:47 AM, lakshmanan ganapathy <
> lakindi...@gmail.com> wrote:
>
>> Hi,
>> I've tried with the following dialplan(After making the changes that are
>> recommended). But still I got INVALID_IE_CONTENTS error.
>>
>> Another thing is, if I use prispan configuration, I'm able to make
>> outgoing calls.
>> But if I use the libpri span configuration I'm not able to make outgoing
>> calls, which says INVALID_IE_CONTENTS.
>>
>> I've been struck with this problem for the past 1 week.
>> Any solution to this???
>>
>>
>>
>> On Fri, Oct 9, 2009 at 6:06 PM,  wrote:
>>
>>> lakshmanan ganapathy  said:
>>>
>>> > But still I'm facing problem with the outgoing call. It says
>>> > INVALID_IE_CONTENTS.
>>> > What might be the issue? Even I tried the following dialplan to call by
>>> > using bridge.
>>> > 
>>> >   >> > expression="^(\d{10})$">
>>> >   
>>> >   >> > data="openzap/1/1/${dialed_ext}"/>
>>>
>>> Does "answer" need to be called here? I haven't used an fxo. So, I don't
>>> know. What value does $dialed_ext have? If you want to use the number
>>> matched in the condition, then it should be
>>>
>>> openzap/1/1/$1
>>>
>>> --
>>> Russell Mosemann
>>>
>>>
>>>
>>> 
>>> Concordia University, Nebraska
>>> See http://www.cune.edu/ for the latest news and events!
>>>
>>>
>>> ___
>>> 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 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] openzap Failure opening channel error

2009-10-10 Thread lakshmanan ganapathy
Hi,
I've tried with the following dialplan(After making the changes that are
recommended). But still I got INVALID_IE_CONTENTS error.

Another thing is, if I use prispan configuration, I'm able to make outgoing
calls.
But if I use the libpri span configuration I'm not able to make outgoing
calls, which says INVALID_IE_CONTENTS.

I've been struck with this problem for the past 1 week.
Any solution to this???


On Fri, Oct 9, 2009 at 6:06 PM,  wrote:

> lakshmanan ganapathy  said:
>
> > But still I'm facing problem with the outgoing call. It says
> > INVALID_IE_CONTENTS.
> > What might be the issue? Even I tried the following dialplan to call by
> > using bridge.
> > 
> >> expression="^(\d{10})$">
> >   
> >> data="openzap/1/1/${dialed_ext}"/>
>
> Does "answer" need to be called here? I haven't used an fxo. So, I don't
> know. What value does $dialed_ext have? If you want to use the number
> matched in the condition, then it should be
>
> openzap/1/1/$1
>
> --
> Russell Mosemann
>
>
>
> 
> Concordia University, Nebraska
> See http://www.cune.edu/ for the latest news and events!
>
>
> ___
> 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] libpri_span vs prispans

2009-10-09 Thread lakshmanan ganapathy
Where can I found entire configurations for a libpri spans. Right now I've
only 4 things in my libpri configuration. They are Switchtype, Node,
Contect, Dialplan, which is given as example in wiki.

But I think libprispan has more configuration. Where can I find those
things?



On Fri, Oct 9, 2009 at 11:27 PM, Michael Collins  wrote:

>
>
> On Fri, Oct 9, 2009 at 5:57 AM,  wrote:
>
>> lakshmanan ganapathy  said:
>> > What difference it will make, if I use pri_span configuration and
>> lib_pri
>> > span configuration in openzap.conf.xml.
>> > I'm preety much confused on the difference between this.
>>
>> Openzap can handle a T1/E1 itself, or openzap can use libpri to do that.
>> libpri is more mature than openzap. In my case openzap was not able to
>> handle everything invovling a T1 here, and using libpri fixed it.
>>
>> A libpri_span configuration is handled by libpri. A pri_span
>> configuration is handled natively by openzap. Use the one that works for
>> you.
>>
>
> Right now the libpri stack is more mature than the ozmod_isdn stuff. See
> the OpenZAP page on the wiki for instructions on how to set up ozmod_libpri.
> -MC
>
>
> ___
> 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] libpri_span vs prispans

2009-10-09 Thread lakshmanan ganapathy
Hi all,

What difference it will make, if I use pri_span configuration and lib_pri
span configuration in openzap.conf.xml.
I'm preety much confused on the difference between this.
___
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] openzap Failure opening channel error

2009-10-09 Thread lakshmanan ganapathy
Thanks all u guys. It got worked when I replaced with the following
configuration and the incoming has no problem with that.
[span zt PRI_1]
trunk_type => e1
b-channel => 1-15
d-channel => 16
b-channel => 17-31

But still I'm facing problem with the outgoing call. It says
INVALID_IE_CONTENTS.
What might be the issue? Even I tried the following dialplan to call by
using bridge.

  
  
  
  
  
But it prints the same error.
What might be the issue?


On Thu, Oct 8, 2009 at 10:24 PM, Michael Collins  wrote:

>
>
> On Thu, Oct 8, 2009 at 8:02 AM, Moises Silva wrote:
>
>> On Thu, Oct 8, 2009 at 5:41 AM, lakshmanan ganapathy <
>> lakindi...@gmail.com> wrote:
>>
>>> Hi I tried with the following openzap.conf
>>> [span zt PRI_1]
>>> trunk_type => e1
>>> b-channel => 1:1-15,17-31
>>> d-channel => 1:16
>>>
>>
>> This does not look like a healthy config to me. You are using
>> : notation in zaptel spans, zaptel channels increment across
>> spans, read point number 5 of this web page
>> http://wiki.freeswitch.org/wiki/OpenZAP_OpenR2 , this is for another type
>> of signaling, but the span/channel numbering concepts are the same.
>>
>>
> Moy,
>
> As usual you are right on the money. I'm so used to doing Sangoma configs
> that I forget about the zaptel syntax. I recommend this config:
>
> [span zt PRI_1]
> trunk_type => e1
> b-channel => 1-15
> d-channel => 16
> b-channel => 17-31
>
>
> Give that a try and report back if you have issues.
> -MC
>
>>  --
>> Moises Silva
>> Software Developer
>> Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R
>> 9T3 Canada
>> t. 1 905 474 1990 x 128 | e. m...@sangoma.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 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] openzap Failure opening channel error

2009-10-08 Thread lakshmanan ganapathy
Hi I tried with the following openzap.conf
[span zt PRI_1]
trunk_type => e1
b-channel => 1:1-15,17-31
d-channel => 1:16

openzap.conf.xml














But as soon as I start the freeswitch I got the following error

2009-10-08 15:08:35.496270 [DEBUG] ozmod_libpri.c:885 Event Failure! 1
2009-10-08 15:08:37.601135 [DEBUG] ozmod_libpri.c:817 EVENT [ONHOOK][1][1:1]
STATE [DOWN]
2009-10-08 15:08:37.701176 [DEBUG] ozmod_libpri.c:885 Event Failure! 1
2009-10-08 15:08:39.802004 [DEBUG] ozmod_libpri.c:817 EVENT [DTMF][0][1:1]
STATE [DOWN]
2009-10-08 15:08:39.902034 [DEBUG] ozmod_libpri.c:885 Event Failure! 1
2009-10-08 15:08:42.010983 [DEBUG] ozmod_libpri.c:885 Event Failure! 1
2009-10-08 15:08:44.115874 [DEBUG] ozmod_libpri.c:817 EVENT [ONHOOK][1][1:1]
STATE [DOWN]
2009-10-08 15:08:44.215915 [DEBUG] ozmod_libpri.c:885 Event Failure! 1
2009-10-08 15:08:46.312748 [DEBUG] ozmod_libpri.c:885 Event Failure! 1
2009-10-08 15:08:48.417552 [DEBUG] ozmod_libpri.c:817 EVENT [DTMF][0][1:1]
STATE [DOWN]
2009-10-08 15:08:48.517587 [DEBUG] ozmod_libpri.c:885 Event Failure! 1
2009-10-08 15:08:50.626485 [DEBUG] ozmod_libpri.c:885 Event Failure! 1
2009-10-08 15:08:52.735325 [DEBUG] ozmod_libpri.c:817 EVENT [ONHOOK][1][1:1]
STATE [DOWN]
2009-10-08 15:08:52.835357 [DEBUG] ozmod_libpri.c:885 Event Failure! 1
2009-10-08 15:08:54.944190 [DEBUG] ozmod_libpri.c:885 Event Failure! 1
2009-10-08 15:08:57.049109 [DEBUG] ozmod_libpri.c:817 EVENT [DTMF][0][1:1]
STATE [DOWN]
2009-10-08 15:08:57.149148 [DEBUG] ozmod_libpri.c:885 Event Failure! 1
2009-10-08 15:08:59.253979 [DEBUG] ozmod_libpri.c:885 Event Failure! 1

I also got the below error in the middle

2009-10-08 15:09:48.992613 [CRIT] lpwrap_pri.c:154 span 1 D-WRITE FAIL! []
2009-10-08 15:09:48.992613 [ERR] ozmod_libpri.c:88 Short write: -1/5
(Invalid or incomplete multibyte or wide character)

Please help.

On Wed, Oct 7, 2009 at 9:19 PM, Michael Collins  wrote:

>
>
> On Wed, Oct 7, 2009 at 3:34 AM, lakshmanan ganapathy  > wrote:
>
>> Hi,
>> Again I was struck in a problem, Here is the scenario.
>>
>> On incomming call, I just call an event outboud socket. But what happens
>> is, for the first 15 call, it is working fine. But from the 16th call to
>> 30th call, it says the below error.
>>
>> 2009-10-07 15:07:48.201846 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:17 (ignored)
>> 2009-10-07 15:07:55.381861 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:18 (ignored)
>> 2009-10-07 15:07:58.569774 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:19 (ignored)
>> 2009-10-07 15:08:01.37824 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:20 (ignored)
>> 2009-10-07 15:08:03.129846 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:21 (ignored)
>> 2009-10-07 15:08:04.825851 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:22 (ignored)
>> 2009-10-07 15:08:06.289977 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:23 (ignored)
>> 2009-10-07 15:08:07.761961 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:24 (ignored)
>> 2009-10-07 15:08:09.737944 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:25 (ignored)
>> 2009-10-07 15:08:11.462018 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:26 (ignored)
>> 2009-10-07 15:08:13.566024 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:27 (ignored)
>> 2009-10-07 15:08:15.430163 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:28 (ignored)
>> 2009-10-07 15:08:17.446103 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:29 (ignored)
>> 2009-10-07 15:08:19.430118 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:30 (ignored)
>> 2009-10-07 15:08:21.358121 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:31 (ignored)
>>
>>
>> But for the next call, when it is opening channel 1:1, it is executing my
>> dial plans.
>> I don't know why it failed when it is choosing 1:17-1:31. Any one has any
>> idea.
>>
>> Below are my configuration details:
>>
>> openzap.conf
>> [span zt PRI_1]
>> trunk_type => e1
>> b-channel => 1:1-15
>> d-channel=> 1:16
>> b-channel => 1:17-31
>>
>
> Just a hunch, but could you try this in openzap.conf:
> b-channel => 1:1-15,17-31
> d-channel => 1:16
>
> I want to see what happens. I don't have an E1 setup to test with right now
> otherwise I'd do it myself. Please report back. Thanks,
> MC
>
>
>>
>>

Re: [Freeswitch-users] openzap Failure opening channel error

2009-10-07 Thread lakshmanan ganapathy
[debian :~]# ztcfg -vvv
Zaptel Version: 1.4.11
Echo Canceller: MG2
Configuration
==

SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)

Channel map:

Channel 01: Clear channel (Default) (Slaves: 01)
Channel 02: Clear channel (Default) (Slaves: 02)
Channel 03: Clear channel (Default) (Slaves: 03)
Channel 04: Clear channel (Default) (Slaves: 04)
Channel 05: Clear channel (Default) (Slaves: 05)
Channel 06: Clear channel (Default) (Slaves: 06)
Channel 07: Clear channel (Default) (Slaves: 07)
Channel 08: Clear channel (Default) (Slaves: 08)
Channel 09: Clear channel (Default) (Slaves: 09)
Channel 10: Clear channel (Default) (Slaves: 10)
Channel 11: Clear channel (Default) (Slaves: 11)
Channel 12: Clear channel (Default) (Slaves: 12)
Channel 13: Clear channel (Default) (Slaves: 13)
Channel 14: Clear channel (Default) (Slaves: 14)
Channel 15: Clear channel (Default) (Slaves: 15)
Channel 16: D-channel (Default) (Slaves: 16)
Channel 17: Clear channel (Default) (Slaves: 17)
Channel 18: Clear channel (Default) (Slaves: 18)
Channel 19: Clear channel (Default) (Slaves: 19)
Channel 20: Clear channel (Default) (Slaves: 20)
Channel 21: Clear channel (Default) (Slaves: 21)
Channel 22: Clear channel (Default) (Slaves: 22)
Channel 23: Clear channel (Default) (Slaves: 23)
Channel 24: Clear channel (Default) (Slaves: 24)
Channel 25: Clear channel (Default) (Slaves: 25)
Channel 26: Clear channel (Default) (Slaves: 26)
Channel 27: Clear channel (Default) (Slaves: 27)
Channel 28: Clear channel (Default) (Slaves: 28)
Channel 29: Clear channel (Default) (Slaves: 29)
Channel 30: Clear channel (Default) (Slaves: 30)
Channel 31: Clear channel (Default) (Slaves: 31)

31 channels to configure.

[debian :~]# cat /proc/zaptel/1
+ cat /proc/zaptel/1
Span 1: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" (MASTER) HDB3/CCS ClockSource
Timing slips: 1

1 TE2/0/1/1 Clear
2 TE2/0/1/2 Clear
3 TE2/0/1/3 Clear
4 TE2/0/1/4 Clear
5 TE2/0/1/5 Clear
6 TE2/0/1/6 Clear
7 TE2/0/1/7 Clear
8 TE2/0/1/8 Clear
9 TE2/0/1/9 Clear
10 TE2/0/1/10 Clear
11 TE2/0/1/11 Clear
12 TE2/0/1/12 Clear
13 TE2/0/1/13 Clear
14 TE2/0/1/14 Clear
15 TE2/0/1/15 Clear
16 TE2/0/1/16 HDLCFCS
17 TE2/0/1/17 Clear
18 TE2/0/1/18 Clear
19 TE2/0/1/19 Clear
20 TE2/0/1/20 Clear
21 TE2/0/1/21 Clear
22 TE2/0/1/22 Clear
23 TE2/0/1/23 Clear
24 TE2/0/1/24 Clear
25 TE2/0/1/25 Clear
26 TE2/0/1/26 Clear
27 TE2/0/1/27 Clear
28 TE2/0/1/28 Clear
29 TE2/0/1/29 Clear
30 TE2/0/1/30 Clear
31 TE2/0/1/31 Clear


On Wed, Oct 7, 2009 at 5:29 PM,  wrote:

> lakshmanan ganapathy  said:
>
> > On incomming call, I just call an event outboud socket. But what
> happens is,
> > for the first 15 call, it is working fine. But from the 16th call to 30th
> > call, it says the below error.
>
> What is displayed with
>
>  ztcfg -vv
>
> What is displayed with
>
>  cat /proc/zaptel/1
>
> --
> Russell Mosemann
>
>
>
> 
> Concordia University, Nebraska
> See http://www.cune.edu/ for the latest news and events!
>
>
> ___
> 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] openzap Failure opening channel error

2009-10-07 Thread lakshmanan ganapathy
Hi,
Again I was struck in a problem, Here is the scenario.

On incomming call, I just call an event outboud socket. But what happens is,
for the first 15 call, it is working fine. But from the 16th call to 30th
call, it says the below error.

2009-10-07 15:07:48.201846 [WARNING] ozmod_libpri.c:761 --Failure opening
channel 1:17 (ignored)
2009-10-07 15:07:55.381861 [WARNING] ozmod_libpri.c:761 --Failure opening
channel 1:18 (ignored)
2009-10-07 15:07:58.569774 [WARNING] ozmod_libpri.c:761 --Failure opening
channel 1:19 (ignored)
2009-10-07 15:08:01.37824 [WARNING] ozmod_libpri.c:761 --Failure opening
channel 1:20 (ignored)
2009-10-07 15:08:03.129846 [WARNING] ozmod_libpri.c:761 --Failure opening
channel 1:21 (ignored)
2009-10-07 15:08:04.825851 [WARNING] ozmod_libpri.c:761 --Failure opening
channel 1:22 (ignored)
2009-10-07 15:08:06.289977 [WARNING] ozmod_libpri.c:761 --Failure opening
channel 1:23 (ignored)
2009-10-07 15:08:07.761961 [WARNING] ozmod_libpri.c:761 --Failure opening
channel 1:24 (ignored)
2009-10-07 15:08:09.737944 [WARNING] ozmod_libpri.c:761 --Failure opening
channel 1:25 (ignored)
2009-10-07 15:08:11.462018 [WARNING] ozmod_libpri.c:761 --Failure opening
channel 1:26 (ignored)
2009-10-07 15:08:13.566024 [WARNING] ozmod_libpri.c:761 --Failure opening
channel 1:27 (ignored)
2009-10-07 15:08:15.430163 [WARNING] ozmod_libpri.c:761 --Failure opening
channel 1:28 (ignored)
2009-10-07 15:08:17.446103 [WARNING] ozmod_libpri.c:761 --Failure opening
channel 1:29 (ignored)
2009-10-07 15:08:19.430118 [WARNING] ozmod_libpri.c:761 --Failure opening
channel 1:30 (ignored)
2009-10-07 15:08:21.358121 [WARNING] ozmod_libpri.c:761 --Failure opening
channel 1:31 (ignored)


But for the next call, when it is opening channel 1:1, it is executing my
dial plans.
I don't know why it failed when it is choosing 1:17-1:31. Any one has any
idea.

Below are my configuration details:

openzap.conf
[span zt PRI_1]
trunk_type => e1
b-channel => 1:1-15
d-channel=> 1:16
b-channel => 1:17-31

openzap.conf.xml














zaptel.conf

span=1,1,0,ccs,hdb3
bchan=1-15,17-31
dchan=16

loadzone= us
defaultzone = us

oz list

span: 1 (PRI_1)
type: isdn
chan_count: 47
dialplan: XML
context: default
dial_regex:
fail_dial_regex:
hold_music:
analog_options none
___
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] Outgoing via openzap is not working

2009-10-06 Thread lakshmanan ganapathy
Hi I'm using freeswitch1.0.4. This post is moreover similar to my previous
post.
When I make an outgoing call, it is saying INVALID_IE_CONTENTS.
Here are the details.
openzap.conf.xml















openzap.conf
[span zt PRI_1]
trunk_type => e1
b-channel => 1:1-15
d-channel=> 1:16
b-channel => 1:17-31
oz libpri debug 1 all

API CALL [oz(libpri debug 1 all)] output:
src/ozmod/ozmod_libpri/ozmod_libpri.c: +OK debug set.

oz list

API CALL [oz(list)] output:
+OK
span: 1 (PRI_1)
type: isdn
chan_count: 47
dialplan: XML
context: default
dial_regex:
fail_dial_regex:
hold_music:
analog_options none

Freeswitch startup log:
http://pastebin.freeswitch.org/10609
After saying originate openzap/1/1/9952248266 openzap/1/1/9952248266
http://pastebin.freeswitch.org/10610

Please help me to solve this.
___
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] oz debug says error

2009-10-05 Thread lakshmanan ganapathy
Openzap.conf.xml














Output of oz list in fs_cli

span: 1 (PRI_1)
type: isdn
chan_count: 47
dialplan: XML
context: default
dial_regex:
fail_dial_regex:
hold_music:
analog_options none


freeswitch.log

http://pastebin.freeswitch.org/10604





On Mon, Oct 5, 2009 at 6:18 PM,  wrote:

> lakshmanan  said:
> > Thanks for pointing that.
> > I also tried that.
> > But in that case, I'm not able to make a call through openzap.
>
> What is in openzap.conf.xml? If you start fs_cli and enter "oz list",
> what does it show? Copy the ozmod lines from freeswitch.log to
> pastebin.freeswitch.org and post the link here so that we can see what
> openzap does when freeswitch starts.
>
> --
> Russell Mosemann
>
>
>
> 
> Concordia University, Nebraska
> See http://www.cune.edu/ for the latest news and events!
>
>
> ___
> 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] oz dump Saying error

2009-10-05 Thread lakshmanan ganapathy
Sorry my mail client has some problem. I've send another mail with my
question. Kindly ignore this one.

On Mon, Oct 5, 2009 at 12:43 PM, Diego Viola  wrote:

> Hello?
>
> On Mon, Oct 5, 2009 at 7:07 AM, lakshmanan ganapathy  > wrote:
>
>> HI all,
>>
>>
>> ___
>> 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] oz debug says error

2009-10-05 Thread lakshmanan ganapathy
Hi all,
I've compiled the freeswitch with libpri support. But when I execute

oz libpri debug 1 all, I got the following error.

API CALL [oz(libpri debug 1 all )] output:
src/ozmod/ozmod_libpri/ozmod_libpri.c: -ERR invalid span.


Here is my openzap configurations.

openzap.conf

[span zt PRI_1]
trunk_type => e1
b-channel => 1:1-15
d-channel=> 1:16
b-channel => 1:17-31


openzap.conf.xml

















I feel something I've missed in configurations. Please tell me how to get
rid of that error.
___
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] oz dump Saying error

2009-10-05 Thread lakshmanan ganapathy
HI all,
___
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] Mod_perl $session in not hangup

2009-09-22 Thread lakshmanan ganapathy
Thanks for your replay. I don't know what is latest trunk. Is it latest
version? I'm using freeswitch 1.0.4.


On Tue, Sep 22, 2009 at 8:09 PM, Anthony Minessale <
anthony.miness...@gmail.com> wrote:

> The reason is you cannot complete the hangup until the script exits.
> On the bright side, if you update to latest trunk it will probably work
> more how you want it to
> because a recent change will make this possible.
>
>
> On Tue, Sep 22, 2009 at 4:30 AM, lakshmanan  wrote:
>
>>
>> Hi all, I've the following mod_perl program to execute when I call to an
>> extension (say 777).
>> I use twinkle as a soft phone, to make calls.
>>
>> #!/usr/bin/perl
>> use strict;
>> use freeswitch;
>> our $session;
>> $session->answer();
>> if($session->ready())
>> {
>>my $uuid=$session->getVariable("uuid");
>>freeswitch::consoleLog("INFO","UUID is $uuid\n");
>>
>>freeswitch::consoleLog("INFO","Session is answered\n");
>>
>>
>> $session->execute("playback","/usr/local/freeswitch/sounds/en/us/callie/time/8000/day-1.wav");
>>my $dtmf = $session->getDigits(4,"", 5000);
>>freeswitch::consoleLog("INFO","I received $dtmf\n");
>>$session->hangup("NORMAL_CLEARING");
>>sleep(5);
>># Some other statements.
>> }
>> return 1;
>>
>> Everything is fine.
>> After executing $session->hangup, I got NORMAL_CLEARING in my freeswitch
>> console. But in my soft phone, still the channel is active for 5 seconds.
>> The call got ended only after the 5 seconds sleep.
>>
>> But if I create my own session like
>>  my $session=new
>> freeswitch::Session("user/1000");
>> and I say $session->hangup(), it got terminated.
>>
>> I wanted to know why there is such difference?? or am I wrong??
>> Please clarify me.
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Mod_perl-%24session-in-not-hangup-tp25530646p25530646.html
>> Sent from the Freeswitch-users mailing list archive at Nabble.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_miness...@hotmail.com 
> GTALK/JABBER/PAYPAL:anthony.miness...@gmail.com
> IRC: irc.freenode.net #freeswitch
>
> FreeSWITCH Developer Conference
> sip:8...@conference.freeswitch.org 
> iax:gu...@conference.freeswitch.org/888
> googletalk:conf+...@conference.freeswitch.org
> 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] How to make a call back

2009-08-27 Thread lakshmanan ganapathy
No. In the dial plan I said, application="perl" data="The perl script".
I also checked $session->execute("bridge","user/1010"). This is working
fine.
But originate is not working as I expected.

On Thu, Aug 27, 2009 at 9:46 PM, Michael Collins  wrote:

>
>
> On Wed, Aug 26, 2009 at 9:38 PM, lakshmanan  wrote:
>
>>
>> When I give the following from the command line it calls to 1010 extension
>> and once answered, it calls to 1000 and bridge the connection.
>>originate user/1010 &bridge(user/1000)
>> But I want to do this in perl. So I have given as follows
>>$session->originate($session,"user/1010 &bridge user/1000");
>> But it is not working. It says "user/1010 &bridge user/1000 is invalid
>> user".
>> How to do this in perl. pls help.
>
>
> Are you calling this perl script from the CLI? If so you won't have the
> $session object because a channel does not exist for a simple API call.
> -MC
>
>
> ___
> 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] Error while creating object

2009-08-11 Thread lakshmanan ganapathy
Thanks for your replay.
I've tried that. But it says following error message.

2009-08-11 14:23:09 [ERR] mod_perl.c:69 Perl_safe_eval() [require
'/usr/local/freeswitch/conf/test.pl';]
Undefined subroutine &freeswitch::DTMF called at
/usr/local/freeswitch/conf/test.pl line 6.Compilation failed in require at
(eval 2) line 1.

Please help me to solve this issue!!!

On Tue, Aug 11, 2009 at 4:59 AM, Michael Collins  wrote:

>
>
> On Mon, Aug 10, 2009 at 3:00 AM, lakshmanan  wrote:
>
>>
>> Can any one please say what I did wrong here?
>>
>
> Maybe this instead?
> my $sess=&freeswitch::DTMF->new();
>
> ___
> 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] Error while creating object

2009-08-06 Thread lakshmanan ganapathy
Hi all,
Greets.

I am in the process of controlling the freeswitch with perl.
I have read about mod_perl and I wrote some scripts to test which works
fine.
Yesterday I tried to access the digit_set function.
So I create an object for the freeswitch::DTMF.
But it reported the following error.

2009-08-06 15:53:46 [ERR] mod_perl.c:69 Perl_safe_eval() [require
'/usr/local/freeswitch/conf/test.pl';]
No matching function for overloaded 'new_DTMF' at
/usr/local/freeswitch/perl/freeswitch.pm line 197.
Compilation failed in require at (eval 2) line 1.

Here is my code.

#!/usr/bin/perl
use strict;
use freeswitch;
our $session;
$session->execute("bridge","user/1010");
my $sess=&freeswitch::DTMF::new;
return 1;

The bridge is working fine. But while creating the object it said error.

Can any one explain why this happens and how can I correct it?
___
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