<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><SPAN><VAR id=yui-ie-cursor></VAR><BR class=yui-cursor></SPAN></div>
<div><BR></div>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<DIV dir=ltr><FONT size=2 face=Arial>
<DIV style="BORDER-BOTTOM: #ccc 1px solid; BORDER-LEFT: #ccc 1px solid; PADDING-BOTTOM: 0px; LINE-HEIGHT: 0; MARGIN: 5px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; HEIGHT: 0px; FONT-SIZE: 0px; BORDER-TOP: #ccc 1px solid; BORDER-RIGHT: #ccc 1px solid; PADDING-TOP: 0px" class=hr contentEditable=false readonly="true"></DIV><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Warren Lin <wlin121443@yahoo.com><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> "freeswitch-dev@lists.freeswitch.org" <freeswitch-dev@lists.freeswitch.org> <BR><B><SPAN style="FONT-WEIGHT: bold">Cc:</SPAN></B> Anthony Minessale <anthony.minessale@gmail.com> <BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Saturday, February 25, 2012 11:58 AM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: Testing mod_sms<BR></FONT></DIV><BR>
<META content=off http-equiv=x-dns-prefetch-control>
<DIV id=yiv585801374>
<DIV>
<DIV style="BACKGROUND-COLOR: #fff; FONT-FAMILY: times new roman, new york, times, serif; COLOR: #000; FONT-SIZE: 12pt">
<DIV><SPAN>Hi, Anthony,</SPAN></DIV>
<DIV><SPAN></SPAN> </DIV>
<DIV><SPAN> Sorry for the late reply, I can only do the test over weekend... </SPAN></DIV>
<DIV><SPAN></SPAN> </DIV>
<DIV><SPAN> to re-cap, I was testing "a message was sent while target cell phone was off" , hopefully to get a notice </SPAN><SPAN>when such non-delivery happens. Or someway , somehow </SPAN></DIV>
<DIV><SPAN> to tell if a message was successfuly sent to target cell phone or not (not to the freeswitch).</SPAN></DIV>
<DIV><SPAN> </SPAN></DIV>
<DIV><SPAN> it looks like your patch did send out an event in this situation. but that causes another problem. freeswitch is trying to re-send the message again and</SPAN></DIV>
<DIV><SPAN> again without any waiting in between....that took over whole CPU and hung my machine....</SPAN></DIV>
<DIV><SPAN></SPAN> </DIV>
<DIV><SPAN> I would like to make following suggestion with my narrow view scope (I am using ESL) . see if it can be used to fit a broader scope.</SPAN></DIV>
<DIV><SPAN></SPAN> </DIV>
<DIV><SPAN> (1) mod_sms is mostly used by external programs such java client or php.... Is that possible let the application programer to decide to do the "re-send" or not.</SPAN></DIV>
<DIV><SPAN> in the case of progammer decide to do the re-send, they should be able to define the re-send frequency and how many time it re-sends. At the end of </SPAN></DIV>
<DIV><SPAN> re-trying. there will be an event to tell the re-try fail or not.</SPAN></DIV>
<DIV><SPAN></SPAN> </DIV>
<DIV><SPAN> Or make life easier, just leave the logic to the application programmer. "do not re-send at all". but do issue an Event. (this event needs some id, pls see #2</SPAN></DIV>
<DIV><SPAN></SPAN><SPAN> as follows..</SPAN></DIV>
<DIV><SPAN></SPAN> </DIV>
<DIV><SPAN> (2) I could not examine the detail of the event you send back for the non-delivery ( since my machine hung, need to reboot. lost all the message on the console).</SPAN></DIV>
<DIV><SPAN> but anyhow, in the event, hopefully there is some correlation-id. to help programmer to see which message was sent sucessfully which one is not....</SPAN></DIV>
<DIV><SPAN> in this case, there will be one id to return from two different places. one id return right on the call</SPAN></DIV>
<DIV><SPAN></SPAN> </DIV>
<DIV><SPAN> returnEvt=con.sendEvent(evt);</SPAN></DIV>
<DIV><SPAN></SPAN> </DIV>
<DIV><SPAN> the other is when you generates non-delivery event. so that they can be related.</SPAN></DIV>
<DIV><SPAN></SPAN> </DIV>
<DIV><SPAN> Hmm....I briefly traced the code. this implemention "might" need big surgery on existing code...(just maybe since I don't know too well about the code...)</SPAN></DIV>
<DIV><SPAN> </SPAN></DIV>
<DIV><SPAN> but least, on the non-delivery event, if you can keep ORIGINAL "to" "from" "event-timestamp" in the header. so a programmer can co-relate back the original msg.</SPAN></DIV>
<DIV><SPAN></SPAN> </DIV>
<DIV><SPAN></SPAN> </DIV>
<DIV><SPAN>this is just my 2 cents.</SPAN></DIV>
<DIV><SPAN></SPAN> </DIV>
<DIV><SPAN> BTW, I am also looking into "clustering" freeswtich without using <A href="http://iptel.org/" target=_blank>iptel.org</A>. could you give me some heads-up. since I google this topic. but not many good</SPAN></DIV>
<DIV><SPAN>solutions...</SPAN></DIV>
<DIV><SPAN></SPAN> </DIV>
<DIV><SPAN>Thanks</SPAN></DIV>
<DIV><SPAN></SPAN> </DIV>
<DIV><SPAN>Warren</SPAN></DIV>
<DIV><SPAN> </SPAN></DIV>
<DIV><SPAN></SPAN> </DIV>
<DIV><SPAN> </SPAN></DIV>
<DIV><BR></DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<DIV dir=ltr><FONT size=2 face=Arial>
<DIV style="BORDER-BOTTOM: #ccc 1px solid; BORDER-LEFT: #ccc 1px solid; PADDING-BOTTOM: 0px; LINE-HEIGHT: 0; MARGIN: 5px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; HEIGHT: 0px; FONT-SIZE: 0px; BORDER-TOP: #ccc 1px solid; BORDER-RIGHT: #ccc 1px solid; PADDING-TOP: 0px" class=yiv585801374hr></DIV><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Anthony Minessale <anthony.minessale@gmail.com><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Warren Lin <wlin121443@yahoo.com> <BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Tuesday, February 21, 2012 11:01 AM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: Testing mod_sms<BR></FONT></DIV><BR>hi you can find out how to use the lists at http://lists.freeswitch.org<BR><BR>try latest GIT, i put in a patch to fire the events with the heder<BR>Failed-Delivery true<BR>if you are listening for MESSAGE events you should catch them.<BR><BR><BR>On Mon, Feb 20, 2012 at 10:25 PM,
Warren Lin <<A href="mailto:wlin121443@yahoo.com" rel=nofollow target=_blank ymailto="mailto:wlin121443@yahoo.com">wlin121443@yahoo.com</A>> wrote:<BR>> Hi Anthony,<BR>><BR>> Found your e-mail address on the one of freeswitch discussion thread. do<BR>> not know how to post a msg there.<BR>> so, I send this mail. hopefully you can get this.<BR>><BR>> I have used you mod_sms with ESL and Xlite, that works very well. but it<BR>> looks like<BR>> there is no way to get the message delivery confirmation back from<BR>> freeswitch.<BR>><BR>> on this senario, a message were sent out while target cell phone was off.<BR>><BR>> I used ESL in java to test this senario. I do see something from the log...<BR>><BR>> ....<BR>> 2012-02-20 16:55:03.144870 [WARNING] sofia_presence.c:194 Not sending to<BR>> local<BR>> box for <A href="mailto:2001@xxx.xxx.xxx"
rel=nofollow target=_blank ymailto="mailto:2001@xxx.xxx.xxx">2001@xxx.xxx.xxx</A><BR>> 2012-02-20 16:55:03.144870 [ERR] sofia_presence.c:243 Chat proto [global]<BR>> ....<BR>> ...<BR>> Nobody to send to: Profile internal<BR>> ...<BR>> but ESL can not see any "Event" for this non-delivery... Is there any way<BR>> to trap this event on ESL side?<BR>><BR>> Warren<BR>><BR><BR><BR><BR>-- <BR>Anthony Minessale II<BR><BR>FreeSWITCH http://www.freeswitch.org/<BR>ClueCon http://www.cluecon.com/<BR>Twitter: http://twitter.com/FreeSWITCH_wire<BR><BR>AIM: anthm<BR>MSN:<A href="mailto:anthony_minessale@hotmail.com" rel=nofollow target=_blank ymailto="mailto:anthony_minessale@hotmail.com">anthony_minessale@hotmail.com</A><BR>GTALK/JABBER/PAYPAL:<A href="mailto:anthony.minessale@gmail.com" rel=nofollow target=_blank ymailto="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</A><BR>IRC: <A
href="http://irc.freenode.net/" rel=nofollow target=_blank>irc.freenode.net</A> #freeswitch<BR><BR>FreeSWITCH Developer Conference<BR>sip:<A href="mailto:888@conference.freeswitch.org" rel=nofollow target=_blank ymailto="mailto:888@conference.freeswitch.org">888@conference.freeswitch.org</A><BR>googletalk:conf+<A href="mailto:888@conference.freeswitch.org" rel=nofollow target=_blank ymailto="mailto:888@conference.freeswitch.org">888@conference.freeswitch.org</A><BR>pstn:+19193869900<BR><BR><BR></DIV></DIV></DIV></DIV></DIV>
<META content=on http-equiv=x-dns-prefetch-control><BR><BR></DIV></DIV></div></body></html>