Picon

Custom variable and channel answer event (socket)

Hi,
I am setting a custom var from a javascript code, I do see it in channel 
state events and others up to channel answer. In channel answer event it 
somehow disappears,
and then comes back in channel destroy event. My problem is that I 
really need it in channel answer event.
What can be wrong here? I did put verbose_event action everywhere I 
could think of.
Help would be greatly appreciated.
Thanks.

zhaoxxqq | 1 Jun 2009 03:38
Favicon

Problem about play wav file in conference

HI,
I use event socket to send command to FS conference.
I send " conference testconf play /root/test.wav" in console. It worked ok.
I send "api conference testconf play /record/test.wav" by event socket. and the response is"Disconneted, Good bye.See you at ClueCon..".  
I changed the wav file to www root. the same problem. can you help me?
2009-06-01
zhaoxxqq
<div>
<div>HI,</div>
<div>I use event socket to send command to FS 
conference. </div>
<div>I send 
"&nbsp;conference&nbsp;testconf&nbsp;play&nbsp;/root/test.wav" in console. It 
worked ok. </div>
<div>I send 
"api&nbsp;conference&nbsp;testconf&nbsp;play&nbsp;/record/test.wav" by event 
socket. and the response is"Disconneted, Good bye.See you at 
ClueCon..".&nbsp;&nbsp;</div>
<div>I changed the wav file 
to www root. the same problem. can you help me?</div>
<div align="left">2009-06-01 
</div>
<div>
<span>zhaoxxqq</span> 
</div>
</div>
João Mesquita | 1 Jun 2009 03:37
Picon

Re: Rotating log files not working

Just for the record, always update do latest trunk when testing and provide revision number (version command).

Later,

jmesquita

On Sun, May 31, 2009 at 2:35 PM, Lars Zeb <larclap-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:

I am trying to rotate the logs, specifically the cdr ones. But the existing extension and Master csv files are not rotated; they remain untouched.

 

I issue the command ‘kill –s HUP pid’ (pid of freeswitch). The fs console says 2009-05-31 10:25:58 [NOTICE] mod_logfile_c:157 mod_logfile_rotate() New log started.

 

The conf/autoload_configs/cdr-csv.conf.xml shows:

 

 <configuration name="cdr_csv.conf" description="CDR CSV Format">

    <settings>

     <param name="default-template" value="sql"/>

     <param name="rotate-on-hup" value="true"/>

     <param name="legs" value="a"/>

    </settings>

       …

 

What am I doing wrong here?

 

Thanks, Lars


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users <at> lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


<div>
<p>Just for the record, always update do latest trunk when testing and provide revision number (version command).<br><br>Later,<br><br>jmesquita<br><br></p>
<div class="gmail_quote">On Sun, May 31, 2009 at 2:35 PM, Lars Zeb <span dir="ltr">&lt;<a href="mailto:larclap@...">larclap@...</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">

<div link="blue" vlink="purple" lang="EN-US">

<div>

<p><span>I am
trying to rotate the logs, specifically the cdr ones. But the existing
extension and Master csv files are not rotated; they remain untouched.</span></p>

<p><span>&nbsp;</span></p>

<p><span>I issue
the command &lsquo;</span><span>kill
&ndash;s HUP pid</span><span>&rsquo;
(pid of freeswitch). The fs console says </span><span>2009-05-31 10:25:58 [NOTICE] mod_logfile_c:157
mod_logfile_rotate() New log started.</span></p>

<p><span>&nbsp;</span></p>

<p><span>The
conf/autoload_configs/cdr-csv.conf.xml shows:</span></p>

<p><span>&nbsp;</span></p>

<p><span>&nbsp;</span><span>&lt;</span><span>configuration </span><span>name</span><span>=<span>"cdr_csv.conf"</span><span> </span><span>description</span>=<span>"CDR CSV Format"</span><span>&gt;</span><span></span></span></p>

<p><span>&nbsp;&nbsp;</span><span>&nbsp; <span>&lt;settings&gt;</span><span></span></span></p>

<p><span>&nbsp;</span><span>&nbsp;&nbsp;&nbsp; <span>&lt;param
</span><span>name</span>=<span>"default-template"</span><span> </span><span>value</span>=<span>"sql"</span><span>/&gt;</span><span></span></span></p>

<p><span>&nbsp;</span><span>&nbsp;&nbsp;&nbsp; <span>&lt;param
</span><span>name</span>=<span>"rotate-on-hup"</span><span> </span><span>value</span>=<span>"true"</span><span>/&gt;</span><span></span></span></p>

<p><span>&nbsp;</span><span>&nbsp;&nbsp;&nbsp; <span>&lt;param
</span><span>name</span>=<span>"legs"</span><span> </span><span>value</span>=<span>"a"</span><span>/&gt;</span><span></span></span></p>

<p><span>&nbsp;&nbsp;</span><span>&nbsp; <span>&lt;/settings&gt;</span><span></span></span></p>

<p><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &hellip;</span></p>

<p><span>&nbsp;</span></p>

<p><span>What
am I doing wrong here?</span></p>

<p><span>&nbsp;</span></p>

<p><span>Thanks,
Lars</span></p>

</div>

</div>

<br>_______________________________________________<br>
Freeswitch-users mailing list<br><a href="mailto:Freeswitch-users@...">Freeswitch-users <at> lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><br>
</blockquote>
</div>
<br>
</div>
Jason White | 1 Jun 2009 03:57

Re: Problem about play wav file in conference

zhaoxxqq <zhaoxxqq@...> wrote:
> I use event socket to send command to FS conference. 
> I send " conference testconf play /root/test.wav" in console. It worked ok. 
> I send "api conference testconf play /record/test.wav" by event socket. and the response
is"Disconneted, Good bye.See you at ClueCon..".  
> I changed the wav file to www root. the same problem. can you help me?

It worked fine for me over the event socket.

api conference 3300-192.168.0.2 play /tmp/msg.wav

Content-Type: api/response
Content-Length: 33

(play) Playing file /tmp/msg.wav

and I can hear the file that is being played.

be sure to check the permissions not only of the file, but of all parent
directories, to ensure that the FreeSWITCH process has access.

My test is with rev. 13523.

Jason White | 1 Jun 2009 04:29

Re: Problem about play wav file in conference

I should post the full session:

jason <at> jdc:~$ telnet localhost 8021
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Content-Type: auth/request

auth ClueCon

Content-Type: command/reply
Reply-Text: +OK accepted

api conference 3300-192.168.0.2 play /tmp/msg.wav

Content-Type: api/response
Content-Length: 33

(play) Playing file /tmp/msg.wav
exit

Content-Type: command/reply
Reply-Text: +OK bye

Content-Type: text/disconnect-notice
Content-Length: 67

Disconnected, goodbye.
See you at ClueCon! http://www.cluecon.com/
Connection closed by foreign host.
jason <at> jdc:~$ exit

I hope that helps.

Jim Burke | 1 Jun 2009 06:06

Re: g729 support

Hey Brian,

I assume this is not appropriate in the wiki also.  Let me know and I
can remove.

http://wiki.freeswitch.org/wiki/Mod_g729

Regards,

On Mon, Jun 1, 2009 at 1:40 AM, Brian West <brian@...> wrote:
> I'm going to say this one last time.  DO NOT POST links to g729 on the
> list.  You'll be happy to know that there aren't any places that the
> codec isn't patented even these so called patent free zones are iffy
> and putting the code on the list like this puts the project in a
> serious position.  Please do not post them again.
>
> Thanks,
> Brian
>
> On May 31, 2009, at 2:05 AM, Mindaugas Kezys wrote:
>
>> If you live in patent-free country, you can try this:
>> http://github.com/Deepwalker/fs_itu_g729/tree/master
>>
>> Regards,
>> Mindaugas Kezys
>> http://www.kolmisoft.com
>> VoIP Billing and Routing Solutions
>
> Brian West
> brian@...
>
> -- Meet us at ClueCon!  http://www.cluecon.com
>
>
>
>
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users@...
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>

Ken Rice | 1 Jun 2009 06:14
Favicon

Re: g729 support

The problem is the project is trying to license G729 so we can do 2 things
1) have a legit supported G729 option and 2) keep the patent lawyers at
bay... This type of thing makes it look like the project supports violating
their IP rights... This is no different from someone stealing your GPLd code
and putting it in their software and not abiding by the license...

> From: Jim Burke <jim@...>
> Reply-To: <freeswitch-users@...>
> Date: Mon, 1 Jun 2009 14:06:10 +1000
> To: <freeswitch-users@...>
> Subject: Re: [Freeswitch-users] g729 support
> 
> Hey Brian,
> 
> I assume this is not appropriate in the wiki also.  Let me know and I
> can remove.
> 
> http://wiki.freeswitch.org/wiki/Mod_g729
> 
> Regards,
> 
> On Mon, Jun 1, 2009 at 1:40 AM, Brian West <brian@...> wrote:
>> I'm going to say this one last time.  DO NOT POST links to g729 on the
>> list.  You'll be happy to know that there aren't any places that the
>> codec isn't patented even these so called patent free zones are iffy
>> and putting the code on the list like this puts the project in a
>> serious position.  Please do not post them again.
>> 
>> Thanks,
>> Brian
>> 
>> On May 31, 2009, at 2:05 AM, Mindaugas Kezys wrote:
>> 
>>> If you live in patent-free country, you can try this:
>>> http://github.com/Deepwalker/fs_itu_g729/tree/master
>>> 
>>> Regards,
>>> Mindaugas Kezys
>>> http://www.kolmisoft.com
>>> VoIP Billing and Routing Solutions
>> 
>> Brian West
>> brian@...
>> 
>> -- Meet us at ClueCon!  http://www.cluecon.com
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Freeswitch-users mailing list
>> Freeswitch-users@...
>> 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@...
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

Brian West | 1 Jun 2009 06:19
Favicon

Re: g729 support

Jim,
Thats a million times WORSE than posting it on the mailing list.  We are working on a legal G729.  So please Help us prepare for the coming storm!  ;)

I have removed the info and protected the wiki page.

/b


On May 31, 2009, at 11:06 PM, Jim Burke wrote:

Hey Brian,

I assume this is not appropriate in the wiki also.  Let me know and I
can remove.

http://wiki.freeswitch.org/wiki/Mod_g729

Regards,


<div>Jim,<div>
<span class="Apple-tab-span">	</span>Thats a million times WORSE than posting it on the mailing list. &nbsp;We are working on a legal G729. &nbsp;So please Help us prepare for the coming storm! &nbsp;;)</div>
<div><br></div>
<div>I have removed the info and protected the wiki page.</div>
<div><br></div>
<div>/b</div>
<div><br></div>
<div>
<br><div>
<div>On May 31, 2009, at 11:06 PM, Jim Burke wrote:</div>
<br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span">Hey Brian,<br><br>I assume this is not appropriate in the wiki also. &nbsp;Let me know and I<br>can remove.<br><br><a href="http://wiki.freeswitch.org/wiki/Mod_g729">http://wiki.freeswitch.org/wiki/Mod_g729</a><br><br>Regards,</span></blockquote>
</div>
<br><div apple-content-edited="true"> <span class="Apple-style-span"><div>
<span class="Apple-style-span"><div>
<span class="Apple-style-span"><div>
<div>Brian West</div>
<div><a href="mailto:brian@...">brian@...</a></div>
<div><br></div>
</div></span>-- Meet us at ClueCon! &nbsp;<a href="http://www.cluecon.com/">http://www.cluecon.com</a><br><div><br></div>
</div></span><br class="Apple-interchange-newline">
</div></span><br class="Apple-interchange-newline">
</div>
<br>
</div>
</div>
Brian West | 1 Jun 2009 06:21
Favicon

Re: Help with lua and channel variable processing

Nope those aren't expanded there.  Can you not post process this?

/b

On May 31, 2009, at 11:50 AM, Larry Marshall wrote:

Do I change the sql template below to …, ${lua(billsec)}, …?


<div>Nope those aren't expanded there. &nbsp;Can you not post process this?<div><br></div>
<div>/b</div>
<div>
<br><div>
<div>On May 31, 2009, at 11:50 AM, Larry Marshall wrote:</div>
<br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span"><span class="Apple-style-span"><span>Do I change the sql template below to<span class="Apple-converted-space">&nbsp;</span></span><span>&hellip;, ${lua(billsec)}, &hellip;</span><span>?</span></span></span></blockquote>
</div>
<br><div apple-content-edited="true"> <span class="Apple-style-span"><div>
<span class="Apple-style-span"><div>
<span class="Apple-style-span"><div>
<div>Brian West</div>
<div><a href="mailto:brian@...">brian@...</a></div>
<div><br></div>
</div></span>-- Meet us at ClueCon! &nbsp;<a href="http://www.cluecon.com/">http://www.cluecon.com</a><br><div><br></div>
</div></span><br class="Apple-interchange-newline">
</div></span><br class="Apple-interchange-newline">
</div>
<br>
</div>
</div>
Jim Burke | 1 Jun 2009 07:18

Re: g729 support

Hi Brian,

I hope you realise that I did not put it up, just the reporting that
it was there.

Regards

On Mon, Jun 1, 2009 at 2:19 PM, Brian West <brian@...> wrote:
> Jim,
> Thats a million times WORSE than posting it on the mailing list.  We are
> working on a legal G729.  So please Help us prepare for the coming storm!
>  ;)
> I have removed the info and protected the wiki page.
> /b
>
> On May 31, 2009, at 11:06 PM, Jim Burke wrote:
>
> Hey Brian,
>
> I assume this is not appropriate in the wiki also.  Let me know and I
> can remove.
>
> http://wiki.freeswitch.org/wiki/Mod_g729
>
> Regards,
>
> Brian West
> brian@...
> -- Meet us at ClueCon!  http://www.cluecon.com
>
>
>
>
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users@...
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>


Gmane