[Freeswitch-users] media problem afet 302

Miha miha at softnet.si
Tue Dec 11 21:33:19 MSK 2012


Hi Michael,

thank you very much for your help.

I manage to figure it out.

First I did <action application="export"
data="nolocal:sip_renegotiate_codec_on_reinvite=true" />

and this did not work. Then I did:

<action application="bridge"
data="{sip_renegotiate_codec_on_reinvite=true}sofia/export/......"
/>

and this happens to work. After 302 is made, PBX sends to
FS new sdp invite on g711a and fs change codec. I do not
get error codec any more.

As I read on wiki this nolocal or if I put variable in to
the bridge {} is should be the same but I guess in this
case is not the same.

http://wiki.freeswitch.org/wiki/Codec_negotiation#Early_Negotiation_parameters

Thanks Mihael again!!!

BR,
Miha

On Tue, 11 Dec 2012 09:23:14 -0800
 Michael Collins <msc at freeswitch.org> wrote:
> Miha,
> 
> Can you turn off sofia debugging. That's just too much
> noise and it doesn't
> help you. Create a new pastebin without the the sofia
> debug. Leave the sip
> trace on. ("sofia global siptrace on")
> 
> I'm probably not the person who is most qualified to help
> you figure this
> out but I will definitely take a look.
> 
> -MC
> 
> On Mon, Dec 10, 2012 at 11:26 PM, Miha <miha at softnet.si>
> wrote:
> 
> >  Hi Michael,
> >
> > thanks for your reply.
> >
> > http://pastebin.freeswitch.com/20318
> >
> > In pastebin I post full debug log from FS.
> >
> > xxx.xxx.xxx.xxx is FS, yyy.yyy.yyy.yyy is SBC,
> aaa.aaa.aaa.aaa is SBC
> > media.
> >
> > From phone (linksys) is called number 074901690, number
> is matched in
> > dialplan, naptr look up is made and  on FS is checked
> if number is on FS,
> > if not than number with 386+ nrn code (enum prefix) is
> send to sbc.
> > Sbc send call to a PBX where call is pick up (IVR, call
> is set up with
> > g711u). On other side (innovaphone pbx) ivr tells you
> which number to use
> > so that you will be redirected to different group of
> people.
> >
> > I dial 1, which do in pbx 302 redirect and send phone
> call to outside
> > (mobile carrier). When this is made pbx send new sdp
> invite to FS, to
> > change codect to g711a, which FS refuse and send not
> acceptable.
> >
> > Michael I also send you on private trace which was mad
> od FS and on SBC. I
> > can send it also to someone, but I will prefer not to
> post it to user group
> > as recently we are dealing with a loot of sip attacks.
> >
> > BR,
> >
> > Miha
> >
> > Dne 12/10/2012 10:10 PM, piše Michael Collins:
> >
> > I highly doubt this is a bug in FreeSWITCH. It looks
> like you're having
> > codec mismatch problems. I can see a call starting with
> just PCMU and also
> > a call starting with just PCMA enabled. See lines 160
> and 280, respectively.
> >
> > I doubt anyone can help without a full console debug
> log of all the calls
> > involved. We also would need to see an explanation of
> what each call leg is
> > supposed to be doing. Lastly it would be helpful to
> know where the pcap was
> > taken from, i.e. from FS or the SBC so that we know the
> perspective of each
> > point in the chart. I know you're trying to obfuscate
> away IP addresses,
> > however in doing so you've also made it really hard for
> us to help you
> > because we don't always know what is what.
> >
> > -MC
> >
> > On Mon, Dec 10, 2012 at 12:49 PM, Miha
> <miha at softnet.si> wrote:
> >
> >> Hi,
> >>
> >> can some pls help me:)
> >>
> >> Is this maybe a bug and I should post to jira?
> >>
> >> BR,
> >> Miha
> >>
> >> On Mon, 10 Dec 2012 15:13:04 +0100
> >>  Miha <miha at softnet.si> wrote:
> >> > HI,
> >> >
> >> > here is a sip trace from FS.
> >> >
> >> > http://pastebin.freeswitch.org/20305
> >> >
> >> > xxx.xxx.xxx.xxx is FS, yyy.yyy.yyy.yyy is SBC,
> >> > aaa.aaa.aaa.aaa SBC media :)
> >> >
> >> > thanks for help!
> >> >
> >> > Miha
> >> >
> >>  > Dne 12/10/2012 10:52 AM, pis(e Avi Marcus:
> >> > >
> >> > > Uploading the actual wirrshark file (don't attach)
> will
> >> > likely help someone diagnose this easier.
> >> > >
> >> > > -Avi
> >> > >
> >> > >> On Dec 10, 2012 11:24 AM, "Miha" <miha at softnet.si
> >>  > <mailto:miha at softnet.si>> wrote:
> >> > >>
> >> > >> Hi,
> >> > >>
> >> > >> Scenario:
> >> > >>
> >> > >> fs ----> SBC---> innovaphone pbx
> >> > >>
> >> > >> calls goes throught and media is ok (g711u). When
> on
> >> > other side (innovaphone pbx) someone do a 302
> redirect
> >> > innovaphone sends a sdb request in which prepose
> g711u,
> >> > FS trys with g711u and send back not accabtable and
> media
> >> > does not work.
> >> > >>
> >> > >> In attachment I am sending jpg of wireshark.
> >> > >>
> >> > >> >From left to right: FS, SBC, SBC MEDIA (on
> different
> >> > ip than sbc).
> >> > >>
> >> > >> How to deal with this?
> >> > >>
> >> > >> Thanks!
> >> > >> Miha
> >> > >>
> >> > >>
> >> >
> >>
>
_________________________________________________________________________
> >> > >> Professional FreeSWITCH Consulting Services:
> >> > >> consulting at freeswitch.org
> >>  > <mailto:consulting at freeswitch.org>
> >> > >> http://www.freeswitchsolutions.com
> >> > >>
> >> > >> FreeSWITCH-powered IP PBX: The CudaTel
> Communication
> >> > Server
> >> > >> 
> >> > >>
> >> > >> 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
> >>  > <mailto: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
> >> > >>
> >> > >
> >> > >
> >> > >
> >> >
> >>
>
_________________________________________________________________________
> >> > > Professional FreeSWITCH Consulting Services:
> >> > > consulting at freeswitch.org
> >> > > http://www.freeswitchsolutions.com
> >> > >
> >> > > FreeSWITCH-powered IP PBX: The CudaTel
> Communication
> >> > Server
> >> > > 
> >> > >
> >> > > 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
> >> >
> >>
> >>
> >>
>
_________________________________________________________________________
> >> Professional FreeSWITCH Consulting Services:
> >> consulting at freeswitch.org
> >> http://www.freeswitchsolutions.com
> >>
> >> FreeSWITCH-powered IP PBX: The CudaTel Communication
> Server
> >> 
> >>
> >> 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
> >>
> >
> >
> >
> > --
> > Michael S Collins
> > Twitter: @mercutioviz
> > http://www.FreeSWITCH.org
> > http://www.ClueCon.com
> > http://www.OSTAG.org
> >
> >
> >
> >
> >
>
_________________________________________________________________________
> > Professional FreeSWITCH Consulting
>
Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com
> >
> > FreeSWITCH-powered IP PBX: The CudaTel Communication
> Server
> >
> > Official FreeSWITCH
>
Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
> >
> > FreeSWITCH-users mailing
>
listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> >
>
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org
> >
> >
> >
> >
>
_________________________________________________________________________
> > Professional FreeSWITCH Consulting Services:
> > consulting at freeswitch.org
> > http://www.freeswitchsolutions.com
> >
> > FreeSWITCH-powered IP PBX: The CudaTel Communication
> Server
> > 
> >
> > 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
> >
> >
> 
> 
> -- 
> Michael S Collins
> Twitter: @mercutioviz
> http://www.FreeSWITCH.org
> http://www.ClueCon.com
> http://www.OSTAG.org



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list