<p>Most likely its some nat related issue.</p>
<div class="gmail_quote">On Oct 7, 2010 8:19 PM, "Michael Collins" <<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>> wrote:<br type="attribution">> I don't know if it's a bug or not, but I think you probably will need to<br>
> create a dialplan and sample Lua script to demonstrate the behavior. Post<br>> them on pastebin and link to this thread. We will see if we can reproduce<br>> the symptoms and diagnose from there.<br>> <br>> -MC<br>
> <br>> On Thu, Oct 7, 2010 at 7:37 AM, Pete Kelly <<a href="mailto:pkelly@gmail.com">pkelly@gmail.com</a>> wrote:<br>> <br>>> Hi, I posted a question to this list yesterday because I was having<br>>> problems with my calls ending as soon as they were bridged. I was<br>
>> originating 2 outbound calls from a lua script, then bridging them. I<br>>> managed to get round the problem of the calls shutting down immediately by<br>>> initiating calls using the originate command, thusly:<br>
>><br>>> originate sofia/lpmedia/<a href="mailto:2000@10.15.20.122">2000@10.15.20.122</a> '&lua(click2call_call.lua)'<br>>><br>>> This causes the lua script to initiate with a session already present and<br>
>> then a bridge to a new call (legB) completes successfully.<br>>><br>>> Within the lua script I am bridging to leg B like this:<br>>><br>>> session:execute("bridge", "[bypass_media_after_bridge=true]sofia/lpmedia/<br>
>> <a href="mailto:91979197@10.15.20.122">91979197@10.15.20.122</a>")<br>>><br>>> This works, but the reINVITEs which get sent out after legB is established<br>>> contain the wrong sip request URI.<br>
>><br>>> - The SIP URI in the reINVITE to Leg A is to the MEDIA IP of leg B (the SIP<br>>> packet is sent to the correct IP, just the request URI contains the media<br>>> IP)<br>>> - The SIP URI in the reINVITE to Leg B is to the MEDIA IP of leg A... again<br>
>> the SIP packet is sent to the correct IP, it's just the request URI which<br>>> contains the media IP.<br>>><br>>> In some instances the request URI doesn't contain the username either, it<br>
>> is just INVITE sip:<MEDIA_IP><br>>><br>>> I am using the latest sources of freeswitch from git<br>>><br>>> Is this a bug I need to report? It is causing me to receive 404 and 402<br>
>> errors on the reinvite as the request URI is invalid.<br>>><br>>> Pete<br>>><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>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>>> <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
>><br>>><br></div>