[Freeswitch-users] openzap Failure opening channel error

lakshmanan ganapathy lakindia89 at gmail.com
Thu Oct 8 02:41:08 PDT 2009


Hi I tried with the following openzap.conf
[span zt PRI_1]
trunk_type => e1
b-channel => 1:1-15,17-31
d-channel => 1:16

openzap.conf.xml
<configuration name="openzap.conf" description="OpenZAP Configuration">
        <settings>
                <param name="debug" value="7"/>
        </settings>
        <libpri_spans>
                <span name="PRI_1">
                        <param name="node" value="cpe"/>
                        <param name="switch" value="euroisdn"/>
                        <param name="dialplan" value="XML"/>
                        <param name="context" value="default"/>
                </span>
        </libpri_spans>
</configuration>

But as soon as I start the freeswitch I got the following error

2009-10-08 15:08:35.496270 [DEBUG] ozmod_libpri.c:885 Event Failure! 1
2009-10-08 15:08:37.601135 [DEBUG] ozmod_libpri.c:817 EVENT [ONHOOK][1][1:1]
STATE [DOWN]
2009-10-08 15:08:37.701176 [DEBUG] ozmod_libpri.c:885 Event Failure! 1
2009-10-08 15:08:39.802004 [DEBUG] ozmod_libpri.c:817 EVENT [DTMF][0][1:1]
STATE [DOWN]
2009-10-08 15:08:39.902034 [DEBUG] ozmod_libpri.c:885 Event Failure! 1
2009-10-08 15:08:42.010983 [DEBUG] ozmod_libpri.c:885 Event Failure! 1
2009-10-08 15:08:44.115874 [DEBUG] ozmod_libpri.c:817 EVENT [ONHOOK][1][1:1]
STATE [DOWN]
2009-10-08 15:08:44.215915 [DEBUG] ozmod_libpri.c:885 Event Failure! 1
2009-10-08 15:08:46.312748 [DEBUG] ozmod_libpri.c:885 Event Failure! 1
2009-10-08 15:08:48.417552 [DEBUG] ozmod_libpri.c:817 EVENT [DTMF][0][1:1]
STATE [DOWN]
2009-10-08 15:08:48.517587 [DEBUG] ozmod_libpri.c:885 Event Failure! 1
2009-10-08 15:08:50.626485 [DEBUG] ozmod_libpri.c:885 Event Failure! 1
2009-10-08 15:08:52.735325 [DEBUG] ozmod_libpri.c:817 EVENT [ONHOOK][1][1:1]
STATE [DOWN]
2009-10-08 15:08:52.835357 [DEBUG] ozmod_libpri.c:885 Event Failure! 1
2009-10-08 15:08:54.944190 [DEBUG] ozmod_libpri.c:885 Event Failure! 1
2009-10-08 15:08:57.049109 [DEBUG] ozmod_libpri.c:817 EVENT [DTMF][0][1:1]
STATE [DOWN]
2009-10-08 15:08:57.149148 [DEBUG] ozmod_libpri.c:885 Event Failure! 1
2009-10-08 15:08:59.253979 [DEBUG] ozmod_libpri.c:885 Event Failure! 1

I also got the below error in the middle

2009-10-08 15:09:48.992613 [CRIT] lpwrap_pri.c:154 span 1 D-WRITE FAIL! []
2009-10-08 15:09:48.992613 [ERR] ozmod_libpri.c:88 Short write: -1/5
(Invalid or incomplete multibyte or wide character)

Please help.

On Wed, Oct 7, 2009 at 9:19 PM, Michael Collins <msc at freeswitch.org> wrote:

>
>
> On Wed, Oct 7, 2009 at 3:34 AM, lakshmanan ganapathy <lakindia89 at gmail.com
> > wrote:
>
>> Hi,
>> Again I was struck in a problem, Here is the scenario.
>>
>> On incomming call, I just call an event outboud socket. But what happens
>> is, for the first 15 call, it is working fine. But from the 16th call to
>> 30th call, it says the below error.
>>
>> 2009-10-07 15:07:48.201846 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:17 (ignored)
>> 2009-10-07 15:07:55.381861 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:18 (ignored)
>> 2009-10-07 15:07:58.569774 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:19 (ignored)
>> 2009-10-07 15:08:01.37824 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:20 (ignored)
>> 2009-10-07 15:08:03.129846 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:21 (ignored)
>> 2009-10-07 15:08:04.825851 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:22 (ignored)
>> 2009-10-07 15:08:06.289977 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:23 (ignored)
>> 2009-10-07 15:08:07.761961 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:24 (ignored)
>> 2009-10-07 15:08:09.737944 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:25 (ignored)
>> 2009-10-07 15:08:11.462018 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:26 (ignored)
>> 2009-10-07 15:08:13.566024 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:27 (ignored)
>> 2009-10-07 15:08:15.430163 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:28 (ignored)
>> 2009-10-07 15:08:17.446103 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:29 (ignored)
>> 2009-10-07 15:08:19.430118 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:30 (ignored)
>> 2009-10-07 15:08:21.358121 [WARNING] ozmod_libpri.c:761 --Failure opening
>> channel 1:31 (ignored)
>>
>>
>> But for the next call, when it is opening channel 1:1, it is executing my
>> dial plans.
>> I don't know why it failed when it is choosing 1:17-1:31. Any one has any
>> idea.
>>
>> Below are my configuration details:
>>
>> openzap.conf
>> [span zt PRI_1]
>> trunk_type => e1
>> b-channel => 1:1-15
>> d-channel=> 1:16
>> b-channel => 1:17-31
>>
>
> Just a hunch, but could you try this in openzap.conf:
> b-channel => 1:1-15,17-31
> d-channel => 1:16
>
> I want to see what happens. I don't have an E1 setup to test with right now
> otherwise I'd do it myself. Please report back. Thanks,
> MC
>
>
>>
>> openzap.conf.xml
>> <configuration name="openzap.conf" description="OpenZAP Configuration">
>>         <settings>
>>                 <param name="debug" value="7"/>
>>         </settings>
>>         <libpri_spans>
>>                 <span name="PRI_1">
>>                         <param name="node" value="cpe"/>
>>                         <param name="switch" value="euroisdn"/>
>>                         <param name="dialplan" value="XML"/>
>>                         <param name="context" value="default"/>
>>                 </span>
>>         </libpri_spans>
>> </configuration>
>>
>> zaptel.conf
>>
>> span=1,1,0,ccs,hdb3
>> bchan=1-15,17-31
>> dchan=16
>>
>> loadzone        = us
>> defaultzone     = us
>>
>> oz list
>>
>> span: 1 (PRI_1)
>> type: isdn
>> chan_count: 47
>> dialplan: XML
>> context: default
>> dial_regex:
>> fail_dial_regex:
>> hold_music:
>> analog_options none
>>
>>
>> _______________________________________________
>> 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
>>
>>
>
> _______________________________________________
> 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/20091008/ae9b0f9b/attachment-0002.html 


More information about the FreeSWITCH-users mailing list