<div dir="ltr"><div><div><div><div><div><div>Hello All,<br><br></div>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>
</div>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().</div>
You can take a look at the code snippet here:<br><a href="http://pastebin.com/cmQxLbtM">http://pastebin.com/cmQxLbtM</a> <br></div><div>The changes have been tested extensively and working fine as of now.<br></div>Please let me know if you see any potential negative impact of this fix in FreeSwitch.<br>
<br></div>Thanks<br></div>Deepika<br><div><div><div><div><div><div><div>
<div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 25, 2014 at 1:47 PM, Deepika Agarwal <span dir="ltr"><<a href="mailto:deepika.agarwal@eng.knowlarity.com" target="_blank">deepika.agarwal@eng.knowlarity.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Hello Guys,<br><br></div>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>
</div>But I didn't see any option for restarting a particular PRI line with sangoma isdn.<br></div><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>]</i><br><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></b><br><br></i></div>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></div>Thanks<span><font color="#888888"><br></font></span></div><span><font color="#888888">Deepika<i><br></i><div><div><div><br></div></div></div></font></span></div>
</blockquote></div><br></div></div></div></div></div></div></div></div></div>