[Asterisk-Users] Re: Bristuffed Asterisk: Hangup problems

Jeroen Zwarts bdjeroen at xs4all.nl
Thu May 18 05:05:32 MST 2006


Looks like you're on the right track with this.
I have just diffed the 'i' version with the 'p' version and found the same
line as you found below.

I've changed the 'peercallstate' line in the 'p' version with the
'ourcallstate' one and compiled.

I tested the outbound and inbound dialling over BRI, and * hangs up when it
needs to!
I will have to test some more to see if this little patch doesn't break
anything else, but so far so good.

Thanks for the tip!

Jeroen


> We had the exact same problem. It started happening for us starting at
> the 'k' release of bristuff (i mailed a msg on it in february i think
> to junghanns).
>
> So, the 'i' release worked fine, while 'k' has the problem as described.
>
> A quick diff of 'i' vs. 'k' showed me this (among other things):
>
> diff -U0 -r -x '*.o' -x '*.so'
> bristuff-0.3.0-PRE-1i/libpri-1.2.2/q931.c
> bristuff-0.3.0-PRE-1k/libpri-1.2.2/q931.c
> --- bristuff-0.3.0-PRE-1i/libpri-1.2.2/q931.c   2006-05-17
> 19:54:51.000000000 +0200
> +++ bristuff-0.3.0-PRE-1k/libpri-1.2.2/q931.c   2006-05-17
> 20:04:07.000000000 +0200
> @@ -4428,3 +4428,3 @@
> -               if (c->ourcallstate != c->sugcallstate) {
> -                   pri_error(pri, "updating callstate, ourcallstate
> %d to %d\n", c->ourcallstate, c->sugcallstate);
> -                   c->ourcallstate = c->sugcallstate;
> +               if (c->peercallstate != c->sugcallstate) {
> +                   pri_error(pri, "updating callstate, peercallstate
> %d to %d\n", c->peercallstate, c->sugcallstate);
> +                   c->peercallstate = c->sugcallstate;
>
> This was such a close match, that i reversed that change in the 'k'
> release and voila! problem disappeared.
> Now, i have no clue what kind of side-effects this has, if any, nor if
> this is the proper solution, but it made the problem disappear for us.
>
> I haven't tried to apply the same to later bristuff releases (all
> releases up to 'p' give us the same hangup problem)
>
> Hope this helps.
>
> marcel
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>




More information about the asterisk-users mailing list