<span style='font-family:Verdana'><span style='font-size:12px'>Hi !<br /> 
<br /> 
I originate call from lua script by the following command:<br /> 
<br /> 
<div> 
        local ob_session = freeswitch.Session("{originate_timeout=120,return_ring_ready=true,origination_caller_id_number=" .. calling_id .. ",called_id=" .. called_id .. ",accountcode=" .. accountcode .. ",credit_time=" .. out_credit_time .. ",execute_on_answer=lua b_answer.lua}" .. out_called_id,session)<br /> 
        <br /> 
        My iface IP is 2.2.2.2, origination_caller_id_number is my calling ID (55555) and out_called_id =&nbsp;sofia/internal/1212121212@1.1.1.1<br /> 
        <br /> 
        Leg B setup and bridging goes normally, when remote party disconnects, we receive:<br /> 
        <br /> 
        <div> 
                <span style="color:#000000;"><span style="background-color:#ffffff;">tport_wakeup_pri(0x81c1a0): events IN</span></span></div> 
        <div> 
                <span style="color:#000000;"><span style="background-color:#ffffff;">tport_recv_event(0x81c1a0)</span></span></div> 
        <div> 
                <span style="color:#000000;"><span style="background-color:#ffffff;">tport_recv_iovec(0x81c1a0) msg 0x7f28386348a0 from (udp/</span></span><a href="http://78.46.44.138:5060/" style="color: rgb(64, 100, 128); " target="_blank"><span style="color:#000000;"><span style="background-color:#ffffff;">2.2.2.2:5060</span></span></a><span style="color:#000000;"><span style="background-color:#ffffff;">) has 425 bytes, veclen = 1</span></span></div> 
        <div> 
                <span style="color:#000000;"><span style="background-color:#ffffff;">tport_deliver(0x81c1a0): msg 0x7f28386348a0 (425 bytes) from udp/</span></span><a href="http://193.104.107.7:5060/sip" style="color: rgb(64, 100, 128); " target="_blank"><span style="color:#000000;"><span style="background-color:#ffffff;">1.1.1.1:5060/sip</span></span></a><span style="color:#000000;"><span style="background-color:#ffffff;">&nbsp;next=(nil)</span></span></div> 
        <div> 
                <span style="color:#000000;"><span style="background-color:#ffffff;">nta: received BYE&nbsp;</span></span><strong><a href="http://sip:mod_sofia@78.46.44.138:5060/" style="color: rgb(64, 100, 128); " target="_blank"><span style="color:#000000;"><span style="background-color:#ccffcc;">sip:mod_sofia@2.2.2.2:</span></span></a></strong><a href="http://sip:mod_sofia@78.46.44.138:5060/" style="color: rgb(64, 100, 128); " target="_blank"><wbr></wbr></a><strong><a href="http://sip:mod_sofia@78.46.44.138:5060/" style="color: rgb(64, 100, 128); " target="_blank"><span style="color:#000000;"><span style="background-color:#ccffcc;">5060</span></span></a></strong><span style="color:#000000;"><span style="background-color:#ffffff;">&nbsp;SIP/2.0 (CSeq 48765)</span></span></div> 
        <wbr><wbr> 
        <div> 
                <span style="color:#000000;"><span style="background-color:#ffffff;">nta: canonizing&nbsp;</span></span><a href="http://sip:mod_sofia@78.46.44.138:5060/" style="color: rgb(64, 100, 128); " target="_blank"><span style="color:#000000;"><span style="background-color:#ffffff;">sip:mod_sofia@2.2.2.2:</span></span><wbr><span style="color:#000000;"><span style="background-color:#ffffff;">5060</span></span></wbr></a><span style="color:#000000;"><span style="background-color:#ffffff;">&nbsp;with contact</span></span></div> 
        <wbr><wbr> 
        <div> 
                <span style="color:#000000;"><span style="background-color:#ffffff;">nta: BYE (48765) going to existing leg</span></span></div> 
        <div> 
                <span style="color:#000000;"><span style="background-color:#ffffff;">nua: nua_stack_process_request: entering</span></span></div> 
        <div> 
                <span style="color:#000000;"><span style="background-color:#ffffff;">nua(0x94c4a0): event i_bye 100 Trying</span></span></div> 
        <div> 
                <span style="color:#000000;"><span style="background-color:#ffffff;">nua: nua_application_event: entering</span></span></div> 
        <div> 
                <span style="color:#000000;"><span style="background-color:#ffffff;">2011-10-08 14:54:48.866309 [DEBUG] switch_core_session.c:872 Send signal sofia/internal/</span></span><a href="mailto:841266482056@193.104.107.7" style="color: rgb(64, 100, 128); " target="_blank"><span style="color: rgb(0, 0, 0); "><span style="background-color:#ffffff;">1212121212@</span></span><wbr><span style="color: rgb(0, 0, 0); "><span style="background-color:#ffffff;">1</span></span></wbr></a>.1.1.1<span style="color:#000000;"><span style="background-color:#ffffff;">&nbsp;[BREAK]</span></span></div> 
        <wbr><wbr> 
        <div> 
                <span style="color:#000000;"><span style="background-color:#ffffff;">nua: nua_handle_magic: entering</span></span></div> 
        <div> 
                <span style="color:#000000;"><span style="background-color:#ffffff;">2011-10-08 14:54:48.886307 [DEBUG] switch_channel.c:2800 (sofia/internal/</span></span><a href="mailto:841266482056@193.104.107.7" style="color: rgb(64, 100, 128); " target="_blank"><span style="color: rgb(0, 0, 0); "><span style="background-color:#ffffff;">1212121212@</span></span><wbr><span style="color: rgb(0, 0, 0); "><span style="background-color:#ffffff;">1</span></span></wbr></a>.1.1.1<span style="color:#000000;"><span style="background-color:#ffffff;">) Callstate Change ACTIVE -&gt; HANGUP<br /> 
                <br /> 
                (normal bye handshake follows...)<br /> 
                <br /> 
                Should remote party see me as sip:55555@2.2.2.2 and not as sip:mod_sofia@2.2.2.2 ? What info should I include into session originate to acheive that?<br /> 
                <br /> 
                Thanks / Mike</span></span><br /> 
                <br /> 
                Ā </div> 
        </wbr></wbr></wbr></wbr></wbr></wbr></div> 
</span></span>