[Bristuff-users] Cause 34 reproduceable

Olivier oza-4h07 at myamail.com
Wed Sep 10 14:34:30 CEST 2008


Hello Gunnar,

As you might, I'm very interested in that case, to say the least.
Could you elaborate a bit, the process to reproduce the case (see inline) ?

Cheers !

2008/9/10 Gunnar Schaller <linux at nowin.de>

> Hello,
> Again a posting to the "cause 34" problems. I can reproduce my
> problem here. Asterisk with 2 B-channels (Zap/g1)

do you mean, with a single BRI port ?


> :
> - SIP-phone dials out on first channel, all ok (SIP/10 dials
> Zap/g1/xxx)

ok

>
> - another call comes in on second channel, Asterisk tries to connect
> that call to a mobile phone (Zap/2-1 dials Zap/g1/xxxx), but fails
> cause there is no free zap-channel

Do you mean another call was started before this one ?
At that time, I'm counting 1+1=2 calls which should fit with a single BRI
port

You must see "cause 34" message, then, right ?

If one of those 2 previous calls is stopped, do you still get "cause 34"
when you're trying to call again ?


> At this point Asterisk came in trouble. After all channels are hang up
> the two B-channels should be free for another calls. But Zap/2-1
> isn't.
> "zap show channel 2" output: "PRI Flags: Call"
> It is busy for Asterisk. So let's have look to the sources in
> bristuff-0.3.0-PRE-1y-s/asterisk/channels/chan_zap.c around line 2947
> to 2955:
>
>   if (icause == 34 || ....) {
>      if (.....) {
>         p->call = NULL;
>      } else {
>         ast_log(LOG_ERROR, "What is wrong with you? You cannot ....   );
>         icause = 16;
>      }
>   }
>
> I was wondering about the line "p->call = NULL;" and added it after
> "icause = 16;". Recompiled Asterisk and tried again. Now all is
> working fine and Asterisk does not block the second B-channel. Can
> anyone explain that to me? I'm not the expert to Asterisk-internals.
> Is my solution ok or is there a possibility for new problems?
>
>
>
> Best regards,
>  Gunnar Schaller


>
> _______________________________________________
> Bristuff-users mailing list
> Bristuff-users at lists.three-dimensional.net
> http://lists.three-dimensional.net/mailman/listinfo/bristuff-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.three-dimensional.net/pipermail/bristuff-users/attachments/20080910/865de1b3/attachment.htm 


More information about the Bristuff-users mailing list