Have you thought of making it a patch to add a new API interface so that modules can register chat dialplans, similar to how mod_dialplan_xml works?<br><br>-Steve<br><br><br><br><div class="gmail_quote">On 4 July 2011 00:49, Kurtis Heimerl <span dir="ltr">&lt;<a href="mailto:kheimerl@cs.berkeley.edu">kheimerl@cs.berkeley.edu</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello Freeswitch-dev!<br>
<br>
I&#39;ve recently begin modifying Sofia to support a chat &quot;dialplan&quot;, very<br>
similar to the voice dialplan. Basically, a chat/sms will come in at a<br>
certain number/address and be routed via the dialplan. My current plan<br>
for doing this is as follows:<br>
<br>
1) Add message events to sofia: I want sofia (and eventually all chat<br>
clients) to send message events through FS&#39;s event framework when an<br>
event arrives.<br>
2) Remove message routing from Soa: Sofia should not be routing<br>
messages itself. Instead, it should just generate the event saying a<br>
message has arrived and someone else should do the routing (namely my<br>
dialplan)<br>
3) Implement a simple chat dialplan module that listens for message<br>
events and routes them according to an XML dialplan.<br>
<br>
I have some questions for the FS developer community.<br>
<br>
First, building my own module is conceptually simple. Modifying Sofia<br>
is not. What&#39;s the best way to go about making these changes? I could<br>
submit extension tickets (e.g., a configuration variable that adds<br>
messages and one that removes routing), or submit patches, or both. I<br>
think this could be broadly useful, and I want to try to contribute to<br>
the community.<br>
<br>
Secondly,  I&#39;m having a little difficulty finding the place where<br>
messages are routed in sofia. That&#39;s probably the place to insert both<br>
1 &amp; 2. Any pointers would be appreciated.<br>
<br>
Thanks!<br>
<br>
_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">

</div>