<HTML>
<HEAD>
<TITLE>Re: [Freeswitch-users] Restart a single PRI line with 'sangoma_isdn' library</TITLE>
</HEAD>
<BODY>
<FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>You should open a ticket on <a href="http://jira.freeswitch.org/">http://jira.freeswitch.org/</a> for this and please include the patch. This way the developers can track this patch and consider it for inclusion. <BR>
<BR>
<BR>
On 3/5/14 12:00 AM, "Deepika Agarwal" <<a href="deepika.agarwal@eng.knowlarity.com">deepika.agarwal@eng.knowlarity.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>Hello All,<BR>
<BR>
As there is no command line option provided with 'sangoma_isdn' library for restarting a single PRI line, we have made some custom changes in 'ftmod_sangoma_isdn.c' in order to achieve that.<BR>
To summarize the changes: It adds a new command line "ftmod sangoma_isdn restart_span" which calls ftdm_sangoma_isdn_stop1( ) and then ftdm_sangoma_isdn_start() to restart the given PRI line.<BR>
<BR>
ftdm_sangoma_isdn_start() was already present in 'ftmod_sangoma_isdn.c' and ftdm_sangoma_isdn_stop1() is a modified version of ftdm_sangoma_isdn_stop().<BR>
You can take a look at the code snippet here:<BR>
<a href="http://pastebin.com/cmQxLbtM">http://pastebin.com/cmQxLbtM</a> <BR>
The changes have been tested extensively and working fine as of now.<BR>
Please let me know if you see any potential negative impact of this fix in FreeSwitch.<BR>
<BR>
Thanks<BR>
Deepika<BR>
<BR>
On Tue, Feb 25, 2014 at 1:47 PM, Deepika Agarwal <<a href="deepika.agarwal@eng.knowlarity.com">deepika.agarwal@eng.knowlarity.com</a>> wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>Hello Guys,<BR>
<BR>
I am facing a problem with some of the PRI lines on my FreeSwitch machine (Version 1.2) and I want to restart those selected PRI lines in case they get stuck.<BR>
But I didn't see any option for restarting a particular PRI line with sangoma isdn.<BR>
<I>freeswitch@internal> ftdm sangoma_isdn<BR>
Usage:<BR>
ftdm sangoma_isdn trace <q921|q931> <span name><BR>
ftdm sangoma_isdn l1_stats <span name><BR>
ftdm sangoma_isdn show_spans [<span name>]<BR>
</I><BR>
However, If I use libpri for signalling, it does provide an option of restarting a particular PRI line :<BR>
<I>freeswitch@internal> ftdm libpri<BR>
Usage:<BR>
libpri kill <span><BR>
libpri reset <span><BR>
<B>libpri restart <span> <channel/all><BR>
</B><BR>
</I>I'm wondering if this support has been provided with sangoma_isdn or if I'm missing something here. Please suggest if there are any workarounds to achieve this with sangoma_isdn.<BR>
<BR>
Thanks<BR>
<FONT COLOR="#888888">Deepika<BR>
<BR>
</FONT></SPAN></FONT></BLOCKQUOTE><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'><BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_________________________________________________________________________<BR>
Professional FreeSWITCH Consulting Services:<BR>
<a href="consulting@freeswitch.org">consulting@freeswitch.org</a><BR>
<a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><BR>
<BR>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<BR>
<a href="http://www.cudatel.com">http://www.cudatel.com</a><BR>
<BR>
Official FreeSWITCH Sites<BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
<a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><BR>
<a href="http://www.cluecon.com">http://www.cluecon.com</a><BR>
<BR>
FreeSWITCH-users mailing list<BR>
<a href="FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
</SPAN></FONT></FONT><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>-- <BR>
Ken<BR>
<FONT COLOR="#0000FF"><U><a href="http://www.FreeSWITCH.org">http://www.FreeSWITCH.org</a><BR>
<a href="http://www.ClueCon.com">http://www.ClueCon.com</a><BR>
<a href="http://www.OSTAG.org">http://www.OSTAG.org</a><BR>
</U></FONT>irc.freenode.net #freeswitch<BR>
Twitter: @FreeSWITCH<BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>