[Freeswitch-users] Restart a single PRI line with 'sangoma_isdn' library

Deepika Agarwal deepika.agarwal at eng.knowlarity.com
Wed Mar 5 10:47:03 MSK 2014


Raised http://jira.freeswitch.org/browse/OPENZAP-227 .


On Wed, Mar 5, 2014 at 11:45 AM, Ken Rice <krice at freeswitch.org> wrote:

>  You should open a ticket on http://jira.freeswitch.org/ for this and
> please include the patch. This way the developers can track this patch and
> consider it for inclusion.
>
>
> On 3/5/14 12:00 AM, "Deepika Agarwal" <deepika.agarwal at eng.knowlarity.com>
> wrote:
>
> Hello All,
>
> 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.
> 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.
>
> 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().
> You can take a look at the code snippet here:
> http://pastebin.com/cmQxLbtM
> The changes have been tested extensively and working fine as of now.
> Please let me know if you see any potential negative impact of this fix in
> FreeSwitch.
>
> Thanks
> Deepika
>
> On Tue, Feb 25, 2014 at 1:47 PM, Deepika Agarwal <
> deepika.agarwal at eng.knowlarity.com> wrote:
>
> Hello Guys,
>
> 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.
> But I didn't see any option for restarting a particular PRI line with
> sangoma isdn.
>
>
>
>
>
> *freeswitch at internal> ftdm sangoma_isdn Usage:     ftdm sangoma_isdn trace
> <q921|q931> <span name>     ftdm sangoma_isdn l1_stats <span name>     ftdm
> sangoma_isdn show_spans [<span name>] *
> However, If I use libpri for signalling, it does provide an option of
> restarting a particular PRI line :
>
>
>
>
>
>
> *freeswitch at internal> ftdm libpri Usage: libpri kill <span> libpri reset
> <span> libpri restart <span> <channel/all> *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.
>
> Thanks
> Deepika
>
>
>
> ------------------------------
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
> --
> Ken
>
>
>
> *http://www.FreeSWITCH.org <http://www.FreeSWITCH.org>
> http://www.ClueCon.com <http://www.ClueCon.com> http://www.OSTAG.org
> <http://www.OSTAG.org> *irc.freenode.net #freeswitch
> Twitter: @FreeSWITCH
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140305/c91846b6/attachment.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list