found it on wiki - it's sip_contact_user variable

 

----- Original Message -----

From: Mi Ke

Sent: 10/08/11 09:33 PM

To: Freeswitch Users

Subject: [Freeswitch-users] mod_sofia@


Hi !

I originate call from lua script by the following command:


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)

My iface IP is 2.2.2.2, origination_caller_id_number is my calling ID (55555) and out_called_id = sofia/internal/1212121212@1.1.1.1

Leg B setup and bridging goes normally, when remote party disconnects, we receive:


tport_wakeup_pri(0x81c1a0): events IN
tport_recv_event(0x81c1a0)
tport_recv_iovec(0x81c1a0) msg 0x7f28386348a0 from (udp/2.2.2.2:5060) has 425 bytes, veclen = 1
tport_deliver(0x81c1a0): msg 0x7f28386348a0 (425 bytes) from udp/1.1.1.1:5060/sip next=(nil)
nta: received BYE sip:mod_sofia@2.2.2.2:5060 SIP/2.0 (CSeq 48765)
nta: canonizing sip:mod_sofia@2.2.2.2:5060 with contact
nta: BYE (48765) going to existing leg
nua: nua_stack_process_request: entering
nua(0x94c4a0): event i_bye 100 Trying
nua: nua_application_event: entering
2011-10-08 14:54:48.866309 [DEBUG] switch_core_session.c:872 Send signal sofia/internal/1212121212@1.1.1.1 [BREAK]
nua: nua_handle_magic: entering
2011-10-08 14:54:48.886307 [DEBUG] switch_channel.c:2800 (sofia/internal/1212121212@1.1.1.1) Callstate Change ACTIVE -> HANGUP

(normal bye handshake follows...)

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?

Thanks / Mike