[asterisk-dev] no audio in chan_sip.c 15187 and above ?

Sharath Chandra k.sharathchandra at gmail.com
Thu Mar 30 03:38:08 MST 2006


 Hi Luigi,

I am experiencing similar problem, i don't know if they are related. I even
tried changing the line in chan_sip.c that you suggested, but it did not
help.
I first noticed this when i was testing on Asterisk SVN-trunk-r15187  to use
the PARKEDAT variable feature.

 - I park the call using ParkAndAnnounce
- plays moh.
- accept the call using ParkedCall

The following errors are coming on the console and there is oneway audio -
no audio after Music-On-Hold at caller's side. I am testing using cisco 7902
phones and using cisco 2800 router. Codec is g711ulaw

Could you find any solution for the oneway audio ??

thanks,
Sharath Chandra
================================================================

-- Executing ParkedCall("SIP/192.168.50.2-09cbd610", "366")
    -- Channel SIP/192.168.50.2-09cbd610 connected to parked call 366
Mar 29 17:59:16 WARNING[13774]: chan_sip.c:2692 sip_write: Asked to transmit
frame type 64, while native formats is 4 (read/write = 4/4)
Mar 29 17:59:16 WARNING[13774]: chan_sip.c:2692 sip_write: Asked to transmit
frame type 64, while native formats is 4 (read/write = 4/4)
Mar 29 17:59:16 WARNING[13774]: chan_sip.c:2692 sip_write: Asked to transmit
frame type 64, while native formats is 4 (read/write = 4/4)
Mar 29 17:59:16 WARNING[13774]: chan_sip.c:2692 sip_write: Asked to transmit
frame type 64, while native formats is 4 (read/write = 4/4)
Mar 29 17:59:17 WARNING[13774]: chan_sip.c:2692 sip_write: Asked to transmit
frame type 64, while native formats is 4 (read/write = 4/4)
Mar 29 17:59:17 WARNING[13774]: chan_sip.c:2692 sip_write: Asked to transmit
frame type 64, while native formats is 4 (read/write = 4/4)








On 3/29/06, Luigi Rizzo <rizzo at icir.org> wrote:
>
> bug found: for the original version that introduced
> the problem, the patch is below.
>
> Index: channels/chan_sip.c
> ===================================================================
> --- channels/chan_sip.c (revision 15187)
> +++ channels/chan_sip.c (working copy)
> @@ -7244,7 +7244,7 @@
>                }
>                if (!(res = check_auth(p, req, user->name, user->secret,
> user->md5secret, sipmethod, uri, reliable, ignore))) {
>                        sip_cancel_destroy(p);
> -                       ast_copy_flags(&p->flags[0], &user->flags[1],
> SIP_FLAGS_TO_COPY);
> +                       ast_copy_flags(&p->flags[0], &user->flags[0],
> SIP_FLAGS_TO_COPY);
>                        ast_copy_flags(&p->flags[1], &user->flags[1],
> SIP_PAGE2_FLAGS_TO_COPY);
>                        /* Copy SIP extensions profile from INVITE */
>                        if (p->sipoptions)
>
> On Tue, Mar 28, 2006 at 08:46:03AM -0800, Luigi Rizzo wrote:
> > not sure if there is something local that is not handled
> > properly, but in the transition from SVN 15186 -> 15187
> > (a large change to chan_sip.c) i have lost the audio
> > at least on SIP calls, and apparently newer versions
> > of chan_sip.c (up to 15610 which is HEAD now) don't fix the problem.
> >
> > On the other hand, everything at SVN15610 and chan_sip.c.15186
> > gives me the audio so the bug must be there.
> >
> > I am pretty sure it is something trivial;
> > however, probably who made that change might have
> > a more clear idea of what is going on ?
> >
> > Are others seeing this too ?
> >
> >       thanks
> >       luigi
> > _______________________________________________
> > --Bandwidth and Colocation provided by Easynews.com
> <http://easynews.com/>--
> >
> > asterisk-dev mailing list
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-dev
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com <http://easynews.com/>--
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20060330/604c58cb/attachment.htm


More information about the asterisk-dev mailing list