<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I'll write up some quick and dirty documentation for it and send it to
you (I'm gottafixthat on irc).&nbsp; Its quite useful when combined with
curl.<br>
<br>
There are a total of 8 session:ready() checks in the script, at least
one in each loop, often two because I'm paranoid.&nbsp; It is my first time
programming in lua, so its entirely possible I botched it.<br>
<br>
Thanks, I'll send you a couple files later today.<br>
<br>
&nbsp;- Marc<br>
<br>
<br>
Anthony Minessale wrote:
<blockquote
 cite="mid:191c3a030810271131m6dcbb6c0j6385f24ea30e2488@mail.gmail.com"
 type="cite">we can give you a folder in contrib or check it in for you
if you wish<br>
we may also be able to find some issue in the script if we see it.<br>
  <br>
are you using session:ready in all your loops to avoid a death spiral?<br>
  <br>
  <br>
  <div class="gmail_quote">On Mon, Oct 27, 2008 at 1:22 PM, Marc Lewis <span
 dir="ltr">&lt;<a moz-do-not-send="true" href="mailto:marc@avvatel.com">marc@avvatel.com</a>&gt;</span>
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div bgcolor="#ffffff" text="#000000">I'll send the files the next
time it happens.<br>
    <br>
As for my builds, I'm building fresh each time using a script I wrote
to create RPM files.&nbsp; I do an 'svn update' then a './bootstrap.sh' and
then run my script.&nbsp; My script creates a tarball from the checked out
files and creates RPM files from that tarball.<br>
    <br>
The only other thing I can think that might be causing this since I
haven't read about anyone else having this problem is a lua script that
I wrote.&nbsp; The script is for creating auto attendants dynamically out of
the XML dialplan pulled from curl.&nbsp; The channels don't show that the
script itself is running, but it is transferred to voicemail from the
script.<br>
    <br>
The lua code that transfers to voicemail looks like this:<br>
    <br>
&nbsp;&nbsp;&nbsp; elseif (action == "voicemail") then<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; session:execute("voicemail", "default ".. aaDomain .." ".. target)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; session:hangup()<br>
    <br>
Where the aaDomain and target are set from the XML dialplan.<br>
    <br>
I'm happy to share the auto attendant lua script with anyone that
thinks it might be useful to them.&nbsp; Its not well documented yet, though.<br>
    <br>
&nbsp;- Marc<br>
    <br>
Anthony Minessale wrote:
    <blockquote type="cite">
      <div>
      <div class="Wj3C7c">next time it happens<br>
go into another shell<br>
      <br>
and enter <br>
      <br>
gcore -o dump `cat /usr/local/freeswitch/log/freeswitch.pid`<br>
      <br>
then<br>
      <br>
gdb /usr/local/bin/freeswitch/bin/freeswitch dump.* <br>
      <br>
then enter these 3 commands:<br>
      <br>
set pagination off<br>
thread apply all bt<br>
thread apply all pt full<br>
      <br>
and send me the entire output<br>
      <br>
also are you updating with "make current" to avoid build skew?<br>
      <br>
      <div class="gmail_quote">On Mon, Oct 27, 2008 at 12:32 PM, Marc
Lewis <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:marc@avvatel.com" target="_blank">marc@avvatel.com</a>&gt;</span>
wrote:<br>
      <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
I have a strange problem that I've been dealing with for the last week<br>
or two. &nbsp;Once or twice a day, Freeswitch will "wedge", in what appears<br>
to be voicemail. &nbsp;The switch is sort of still responding, meaning I can<br>
issue various commands at the console, but no new sofia channels will be<br>
handled, registrations start failing on the internal profile and no new<br>
calls can come in from the external profile.<br>
        <br>
When it happens, existing channels stay up, but once they are completed,<br>
no new channels can be created. &nbsp;There is always one channel that<br>
remains that looks something like (DID obfuscated):<br>
        <br>
api show channels<br>
        <br>
Content-Type: api/response<br>
Content-Length: 394<br>
        <br>
uuid,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,application,application_data,dialplan,context,read_codec,read_rate,write_codec,write_rate<br>
ea758bcf-25f5-4cde-9f6c-5e3f1226130f,2008-10-27<br>
10:02:27,1225126947,sofia/external/<a moz-do-not-send="true"
 href="mailto:253941xxxx@204.11.200.165" target="_blank">253941xxxx@204.11.200.165</a>,CS_EXECUTE,253941xxxx,253941xxxx,<a
 moz-do-not-send="true" href="http://199.245.214.150" target="_blank">199.245.214.150</a>,328,voicemail,default<br>
        <a moz-do-not-send="true" href="http://pgm.cisvp.com"
 target="_blank">pgm.cisvp.com</a> 246,XML,pgm,PCMU,8000,PCMU,8000<br>
        <br>
1 total.<br>
        <br>
        <br>
I've been updating every weekend with the latest code, this is currently<br>
trunk rev 10146.<br>
        <br>
Anyone have any thoughts on this? &nbsp;Its driving me crazy.<br>
        <br>
&nbsp;- Marc<br>
        <br>
--<br>
Marc Lewis<br>
Avvatel Corporation<br>
        <br>
        <br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
        <a moz-do-not-send="true"
 href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
        <a moz-do-not-send="true"
 href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
 target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
 href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
 target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
        <a moz-do-not-send="true" href="http://www.freeswitch.org"
 target="_blank">http://www.freeswitch.org</a><br>
      </blockquote>
      </div>
      <br>
      <br clear="all">
      <br>
-- <br>
Anthony Minessale II<br>
      <br>
FreeSWITCH <a moz-do-not-send="true" href="http://www.freeswitch.org/"
 target="_blank">http://www.freeswitch.org/</a><br>
ClueCon <a moz-do-not-send="true" href="http://www.cluecon.com/"
 target="_blank">http://www.cluecon.com/</a><br>
      <br>
AIM: anthm<br>
      <a moz-do-not-send="true"
 href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a moz-do-not-send="true"
 href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a moz-do-not-send="true" href="http://irc.freenode.net"
 target="_blank">irc.freenode.net</a>
#freeswitch<br>
      <br>
FreeSWITCH Developer Conference<br>
      <a moz-do-not-send="true"
 href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>
      <a moz-do-not-send="true"
 href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
      <a moz-do-not-send="true"
 href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org"
 target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:213-799-1400<br>
      </div>
      </div>
      <pre><hr size="4" width="90%"><div class="Ih2E3d">
_______________________________________________
Freeswitch-users mailing list
<a moz-do-not-send="true"
 href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a>
<a moz-do-not-send="true"
 href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
 target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a moz-do-not-send="true"
 href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
 target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" href="http://www.freeswitch.org"
 target="_blank">http://www.freeswitch.org</a>
  </div></pre>
    </blockquote>
    <br>
    <br>
    <pre cols="72">-- 
Marc Lewis
Avvatel Corporation
    </pre>
    </div>
    <br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
    <a moz-do-not-send="true"
 href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
    <a moz-do-not-send="true"
 href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
 target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
 href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
 target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
    <a moz-do-not-send="true" href="http://www.freeswitch.org"
 target="_blank">http://www.freeswitch.org</a><br>
    <br>
  </blockquote>
  </div>
  <br>
  <br clear="all">
  <br>
-- <br>
Anthony Minessale II<br>
  <br>
FreeSWITCH <a moz-do-not-send="true" href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>
ClueCon <a moz-do-not-send="true" href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
  <br>
AIM: anthm<br>
  <a moz-do-not-send="true"
 href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a moz-do-not-send="true"
 href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a moz-do-not-send="true" href="http://irc.freenode.net">irc.freenode.net</a>
#freeswitch<br>
  <br>
FreeSWITCH Developer Conference<br>
  <a moz-do-not-send="true"
 href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
  <a moz-do-not-send="true"
 href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
  <a moz-do-not-send="true"
 href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:213-799-1400<br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Freeswitch-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Marc Lewis
Avvatel Corporation
</pre>
</body>
</html>