please set the environment variable TPORT_LOG=1 to log the sip traffic inline.<br>then capture all of the console output reproduce your issue<br>before you try the call, please enter the command "console loglevel debug" at the CLI<br>
<br>also, just to be safe, examine your dialplan for any instances of bypass_media and examine all of your sip profiles for the inbound-bypass-media param.<br><br><br><div class="gmail_quote">On Mon, Apr 21, 2008 at 8:52 AM, kokoska rokoska <<a href="mailto:kokoska.rokoska@post.cz">kokoska.rokoska@post.cz</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Thank you very much, Anthony, for your answer!<br>
<br>
Anthony Minessale napsal(a):<br>
<div class="Ih2E3d">> do you have bypass_media=true set or the inbound-bypass-media sip<br>
> profile option set?<br>
<br>
</div>No, no. I use neither of them (if they are not default :-).<br>
<br>
BTW: I need FreeSWITCH in media path due to four reasons:<br>
1. To handle NATed clients.<br>
2. To kill call without RTP.<br>
2. To process DTMF.<br>
3. To transcode between codecs if needed.<br>
<div class="Ih2E3d"><br>
> This call flow looks to me like proxy mode where the sdp of the inbound<br>
> leg is offered to the remote leg to attempt to<br>
> establish direct communication between caller and gateway.<br>
><br>
<br>
</div>If yes it is (my?) mistake. I don't want proxy mode :-)<br>
<div class="Ih2E3d"><br>
> Since caller has natted IP this may not work so well.<br>
><br>
<br>
</div>I think so.<br>
<div class="Ih2E3d"><br>
> If you are setting bypass_media=true, either remove it or use<br>
> proxy_media=true instead.<br>
><br>
<br>
</div>May be - in the future - i will utilize proxy_media=true too, but now I<br>
need two independant call legs with two independant media streams with<br>
FreeSWITCH between them.<br>
<br>
If you have any suggestion what should I do to eliminate my trouble,<br>
please give me the clue. I'm afraid I have no idea what else I could try<br>
to do :-)<br>
<div class="Ih2E3d"><br>
Thanks in advance, best regards<br>
<br>
kokoska.rokoska<br>
<br>
<br>
</div><div class="Ih2E3d">> On Sun, Apr 20, 2008 at 10:39 AM, kokoska rokoska<br>
</div><div><div></div><div class="Wj3C7c">> <<a href="mailto:kokoska.rokoska@post.cz">kokoska.rokoska@post.cz</a> <mailto:<a href="mailto:kokoska.rokoska@post.cz">kokoska.rokoska@post.cz</a>>> wrote:<br>
><br>
><br>
> My be i have a clue :-)<br>
><br>
> May be FreeSWITCH thinks that offers different IPs because I set<br>
> "ext-rtp-ip" to public IP of my network in SIP profile gateway is in -<br>
> FreeSWITCH runs on devel machine behind NAT...<br>
><br>
> Do you think it could be the reason? And if yes, how to avoid it?<br>
><br>
> Best regards,<br>
><br>
> kokoska.rokoska<br>
><br>
><br>
> kokoska rokoska napsal(a):<br>
> ><br>
> > Brian West napsal(a):<br>
> >> Can you provide a bit more detail? I can only guess what or how<br>
> >> you're trying to use it.<br>
> >><br>
> ><br>
> > Well, here is what I try to do:<br>
> ><br>
> > 1. I have two users defined in directory which are registered with<br>
> > FreeSWITCH. Both are in same SIP profile "default" (FS UA runs at<br>
> port<br>
> > 5065).<br>
> ><br>
> > 2. I have different SIP profile (FS UA runs at port 7001) in which I<br>
> > have defiend gateway to my telco-provider.<br>
> ><br>
> > 3. A make a call from one of users (see 1.) to some PSTN number.<br>
> > FreeSWITCH (UA at port 5065) receives INVITE, ask about<br>
> credentials etc.<br>
> > FreeSWITCH (UA at port 7001) successfuly authorizes against my telco<br>
> > etc. and establish media flow (183,200) from local port, say 1234, IP<br>
</div></div>> > <a href="http://1.2.3.4" target="_blank">1.2.3.4</a> <<a href="http://1.2.3.4" target="_blank">http://1.2.3.4</a>>.<br>
<div class="Ih2E3d">> ><br>
> > 4. Than UA at port 5065 try to establish media flow (183,200) to<br>
> local<br>
> > user, but offers the same IP/port in SDP - <a href="http://1.2.3.4:1234" target="_blank">1.2.3.4:1234</a><br>
</div>> <<a href="http://1.2.3.4:1234" target="_blank">http://1.2.3.4:1234</a>>.<br>
<div><div></div><div class="Wj3C7c">> ><br>
> > 5. Than both legs (my telco and local user) send RTP to same IP:port.<br>
> > IMO it can't work. And, like I think, it don't - both legs hear<br>
> nothing<br>
> > and FreeSWITCH kills call after a while with cause: MEDIA_TIMEOUT.<br>
> ><br>
> ><br>
> >> How are you trying to call a registered user?<br>
> ><br>
> > I'm not sure what you are asking. I call localy registred user by<br>
> > <action application='bridge' data='sofia/default/user%domain'/><br>
> > and it works fine.<br>
> ><br>
> > What don't work (see above) is to call out through gateway:<br>
> > <action application='bridge' data='sofia/gateway/gw_name/number'/><br>
> ><br>
> >> It's perfectly OK to<br>
> >> receive media from two different IP's on the same port<br>
> ><br>
> > Yes, but there is same IP and port...<br>
> ><br>
> >> but I smell a<br>
> >> bug but more so a usage case we haven't tested.<br>
> >><br>
> ><br>
> > Not sure, but it looks like it. Or I miss something important in<br>
> config<br>
> > options.<br>
> ><br>
> >> Provide the sip trace and the console log on pastebin and reply with<br>
> >> the urls.<br>
> >><br>
> ><br>
> > Here is pastebin url:<br>
> > <a href="http://pastebin.freeswitch.org/4273" target="_blank">http://pastebin.freeswitch.org/4273</a><br>
> ><br>
> ><br>
> > Best regards,<br>
> ><br>
> > kokoska.rokoska<br>
> ><br>
> >> /b<br>
> >><br>
> >> On Apr 20, 2008, at 5:42 AM, kokoska rokoska wrote:<br>
> >><br>
> >>> Hi all,<br>
> >>><br>
> >>> I have came into troubles with calling from localy registered user<br>
> >>> through Sofia gateway:<br>
> >>><br>
> >>> FreeSWITCH offers the same RTP port in SDP to both call legs<br>
> and thus<br>
> >>> I'm without audio and FreeSWITCH kills the call after a while with<br>
> >>> cause<br>
> >>> MEDIA_TIMEOUT (this is not really valid cause, because media<br>
> goes to<br>
> >>> FreeSWITCH from both legs, but to the same port :-)<br>
> >>><br>
> >>> When I make call between localy registered users, everything looks<br>
> >>> good.<br>
> >>><br>
> >>> I really don't know what I'm doing wrong, so any clue is very<br>
> >>> appreciated :-)<br>
> >>><br>
> >>> BTW: I have both FreeSWITCH console log and pcap dump if someone<br>
> >>> interested. And, of course, can supply any other required<br>
> informations<br>
> >>> about calls.<br>
> >>><br>
> >>> Thanks in advance, best regards<br>
> >>><br>
> >>> kokoska.rokoska<br>
> >>><br>
> >>><br>
> >>> _______________________________________________<br>
> >>> Freeswitch-users mailing list<br>
> >>> <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
</div></div>> <mailto:<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a>><br>
<div class="Ih2E3d">> >>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> >>><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> >>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> >> Brian West<br>
</div>> >> <a href="mailto:sip%3Abrian@freeswitch.org">sip:brian@freeswitch.org</a> <mailto:<a href="mailto:sip%253Abrian@freeswitch.org">sip%3Abrian@freeswitch.org</a>><br>
<div class="Ih2E3d">> >><br>
> >><br>
> >><br>
> >><br>
> >> _______________________________________________<br>
> >> Freeswitch-users mailing list<br>
> >> <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
</div>> <mailto:<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a>><br>
<div class="Ih2E3d">> >> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> >><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> >> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> >><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Freeswitch-users mailing list<br>
> > <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
</div>> <mailto:<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a>><br>
<div class="Ih2E3d">> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> ><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> ><br>
><br>
><br>
> _______________________________________________<br>
> Freeswitch-users mailing list<br>
> <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
</div>> <mailto:<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a>><br>
<div class="Ih2E3d">> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Anthony Minessale II<br>
><br>
> FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
> ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
><br>
> AIM: anthm<br>
> <a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
</div>> <mailto:<a href="mailto:MSN%253Aanthony_minessale@hotmail.com">MSN%3Aanthony_minessale@hotmail.com</a>><br>
<div class="Ih2E3d">> GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
</div>> <mailto:<a href="mailto:PAYPAL%253Aanthony.minessale@gmail.com">PAYPAL%3Aanthony.minessale@gmail.com</a>><br>
> IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> <<a href="http://irc.freenode.net" target="_blank">http://irc.freenode.net</a>> #freeswitch<br>
<div class="Ih2E3d">><br>
> FreeSWITCH Developer Conference<br>
> <a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
</div>> <mailto:<a href="mailto:sip%253A888@conference.freeswitch.org">sip%3A888@conference.freeswitch.org</a>><br>
<div class="Ih2E3d">> <a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
</div>> <<a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">http://iax:guest@conference.freeswitch.org/888</a>><br>
<div class="Ih2E3d">> <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
</div>> <mailto:<a href="mailto:googletalk%253Aconf%252B888@conference.freeswitch.org">googletalk%3Aconf%2B888@conference.freeswitch.org</a>><br>
> pstn:213-799-1400<br>
><br>
><br>
> ------------------------------------------------------------------------<br>
<div><div></div><div class="Wj3C7c">><br>
> _______________________________________________<br>
> Freeswitch-users mailing list<br>
> <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400