[Freeswitch-users] freeswitch changes c= to FS's IP with bypass_media=true

Juan Backson juanbackson at gmail.com
Tue Dec 1 07:08:12 PST 2009


In the following trace,    102 is FS IP, 104 is calling party and 13 is
called party.

with bypass_media, FS still changes    c=IN IP4 192.168.1.102

Any idea why?


freeswitch at localhost.localdomain> recv 951 bytes from
udp/[192.168.1.104]:5060 at 22:56:33.782715:
   ------------------------------------------------------------------------
   INVITE sip:90964111 at 192.168.1.102 <sip%3A90964111 at 192.168.1.102> SIP/2.0
   Via: SIP/2.0/UDP 192.168.1.104:5060
;branch=z9hG4bK003c8e1bf8dcde11a854001a805656a5;rport
   From: <sip:PhonerLite at 192.168.1.102 <sip%3APhonerLite at 192.168.1.102>
>;tag=786224322
   To: <sip:90964111 at 192.168.1.102 <sip%3A90964111 at 192.168.1.102>>
   Call-ID: 003C8E1B-F8DC-DE11-A853-001A805656A5 at 192.168.1.104
   CSeq: 37 INVITE
   Contact: <sip:PhonerLite at 192.168.1.104:5060>
   Content-Type: application/sdp
   Allow: INVITE, OPTIONS, ACK, BYE, CANCEL, INFO, NOTIFY, MESSAGE, UPDATE
   Max-Forwards: 70
   Supported: 100rel, replaces
   User-Agent: SIPPER for PhonerLite
   Content-Length:   397

   v=0
   o=- 3393406017 0 IN IP4 192.168.1.104
   s=SIPPER for PhonerLite
   c=IN IP4 192.168.1.104
   t=0 0
   m=audio 5062 RTP/AVP 8 0 2 3 97 110 111 9 101
   a=rtpmap:8 PCMA/8000
   a=rtpmap:0 PCMU/8000
   a=rtpmap:2 G726-32/8000
   a=rtpmap:3 GSM/8000
   a=rtpmap:97 iLBC/8000
   a=rtpmap:110 speex/8000
   a=rtpmap:111 speex/16000
   a=rtpmap:9 G722/8000
   a=rtpmap:101 telephone-event/8000
   a=fmtp:101 0-16
   a=sendrecv
   ------------------------------------------------------------------------
send 350 bytes to udp/[192.168.1.104]:5060 at 22:56:33.783145:
   ------------------------------------------------------------------------
   SIP/2.0 100 Trying
   Via: SIP/2.0/UDP 192.168.1.104:5060
;branch=z9hG4bK003c8e1bf8dcde11a854001a805656a5;rport=5060
   From: <sip:PhonerLite at 192.168.1.102 <sip%3APhonerLite at 192.168.1.102>
>;tag=786224322
   To: <sip:90964111 at 192.168.1.102 <sip%3A90964111 at 192.168.1.102>>
   Call-ID: 003C8E1B-F8DC-DE11-A853-001A805656A5 at 192.168.1.104
   CSeq: 37 INVITE
   User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-15095
   Content-Length: 0

   ------------------------------------------------------------------------
2009-12-02 06:56:33.783162 [NOTICE] switch_channel.c:613 New Channel
sofia/internal/PhonerLite at 192.168.1.102[d4233c9a-ee3b-40d4-910d-3b1579f9a273]
2009-12-02 06:56:33.783162 [DEBUG] sofia.c:3359 Channel sofia/internal/
PhonerLite at 192.168.1.102 entering state [received][100]
2009-12-02 06:56:33.783162 [DEBUG] sofia.c:3366 Remote SDP:
v=0
o=- 3393406017 0 IN IP4 192.168.1.104
s=SIPPER for PhonerLite
c=IN IP4 192.168.1.104
t=0 0
m=audio 5062 RTP/AVP 8 0 2 3 97 110 111 9 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:2 G726-32/8000
a=rtpmap:3 GSM/8000
a=rtpmap:97 iLBC/8000
a=rtpmap:110 speex/8000
a=rtpmap:111 speex/16000
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16


EXECUTE sofia/internal/PhonerLite at 192.168.1.102 info()
2009-12-02 06:56:33.825198 [INFO] mod_dptools.c:955 CHANNEL_DATA:
Channel-State: [CS_EXECUTE]
Channel-State-Number: [4]
Channel-Name: [sofia/internal/PhonerLite at 192.168.1.102]
Unique-ID: [d4233c9a-ee3b-40d4-910d-3b1579f9a273]
Call-Direction: [inbound]
Presence-Call-Direction: [inbound]
Answer-State: [ringing]
Caller-Username: [PhonerLite]
Caller-Dialplan: [class4]
Caller-Caller-ID-Name: [PhonerLite]
Caller-Caller-ID-Number: [PhonerLite]
Caller-Network-Addr: [192.168.1.104]
Caller-Destination-Number: [90964111]
Caller-Unique-ID: [d4233c9a-ee3b-40d4-910d-3b1579f9a273]
Caller-Source: [mod_sofia]
Caller-Context: [default]
Caller-Channel-Name: [sofia/internal/PhonerLite at 192.168.1.102]
Caller-Profile-Index: [1]
Caller-Profile-Created-Time: [1259708193783162]
Caller-Channel-Created-Time: [1259708193783162]
Caller-Channel-Answered-Time: [0]
Caller-Channel-Progress-Time: [0]
Caller-Channel-Progress-Media-Time: [0]
Caller-Channel-Hangup-Time: [0]
Caller-Channel-Transfer-Time: [0]
Caller-Screen-Bit: [true]
Caller-Privacy-Hide-Name: [false]
Caller-Privacy-Hide-Number: [false]
variable_sip_received_ip: [192.168.1.104]
variable_sip_received_port: [5060]
variable_sip_via_protocol: [udp]
variable_sip_from_user: [PhonerLite]
variable_sip_from_uri: [PhonerLite at 192.168.1.102]
variable_sip_from_host: [192.168.1.102]
variable_sip_from_user_stripped: [PhonerLite]
variable_sip_from_tag: [786224322]
variable_sofia_profile_name: [internal]
variable_sip_req_user: [90964111]
variable_sip_req_uri: [90964111 at 192.168.1.102]
variable_sip_req_host: [192.168.1.102]
variable_sip_to_user: [90964111]
variable_sip_to_uri: [90964111 at 192.168.1.102]
variable_sip_to_host: [192.168.1.102]
variable_sip_contact_port: [5060]
variable_sip_contact_uri: [PhonerLite at 192.168.1.104:5060]
variable_sip_contact_host: [192.168.1.104]
variable_channel_name: [sofia/internal/PhonerLite at 192.168.1.102]
variable_sip_call_id: [003C8E1B-F8DC-DE11-A853-001A805656A5 at 192.168.1.104]
variable_sip_user_agent: [SIPPER for PhonerLite]
variable_sip_via_host: [192.168.1.104]
variable_sip_via_port: [5060]
variable_bypass_media: [true]
variable_proxy_media: [true]
variable_sip_via_rport: [5060]
variable_max_forwards: [70]
variable_switch_r_sdp: [v=0
o=- 3393406017 0 IN IP4 192.168.1.104
s=SIPPER for PhonerLite
c=IN IP4 192.168.1.104
t=0 0
m=audio 5062 RTP/AVP 8 0 2 3 97 110 111 9 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:2 G726-32/8000
a=rtpmap:3 GSM/8000
a=rtpmap:97 iLBC/8000
a=rtpmap:110 speex/8000
a=rtpmap:111 speex/16000
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
]
variable_ep_codec_string: [PCMA at 8000h,PCMU at 8000h]
variable_endpoint_disposition: [RECEIVED_NOMEDIA]
variable_effective_caller_id_number: [PhonerLite]
variable_effective_caller_id_name: [PhonerLite]
variable_<![CDATA[sip_h_Remote-Party-ID: [PhonerLite><sip:]
variable_routing_digit: [90964111]
variable_continue_on_fail: [true]
variable_hangup_after_bridge: [true]
variable_sip_contact_user: [PhonerLite]


2009-12-02 06:56:33.842639 [DEBUG] sofia_glue.c:1322 sofia/internal/
90964111 at 192.168.1.116:9390 Patched SDP
---
v=0
o=- 3393406017 0 IN IP4 192.168.1.104
s=SIPPER for PhonerLite
c=IN IP4 192.168.1.104
t=0 0
m=audio 5062 RTP/AVP 8 0 2 3 97 110 111 9 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:2 G726-32/8000
a=rtpmap:3 GSM/8000
a=rtpmap:97 iLBC/8000
a=rtpmap:110 speex/8000
a=rtpmap:111 speex/16000
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16

+++
v=0
o=- 3393406017 0 IN IP4 192.168.1.104
s=SIPPER for PhonerLite
c=IN IP4 192.168.1.102
t=0 0
m=audio 34846 RTP/AVP 8 0 2 3 97 110 111 9 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:2 G726-32/8000
a=rtpmap:3 GSM/8000
a=rtpmap:97 iLBC/8000
a=rtpmap:110 speex/8000
a=rtpmap:111 speex/16000
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16

2009-12-02 06:56:33.842639 [DEBUG] mod_sofia.c:111 (sofia/internal/
90964111 at 192.168.1.116:9390) State Change CS_INIT -> CS_ROUTING
2009-12-02 06:56:33.842639 [DEBUG] switch_core_session.c:932 Send signal
sofia/internal/90964111 at 192.168.1.116:9390 [BREAK]
2009-12-02 06:56:33.842639 [DEBUG] switch_core_state_machine.c:330
(sofia/internal/90964111 at 192.168.1.116:9390) State INIT going to sleep
2009-12-02 06:56:33.842639 [DEBUG] switch_core_state_machine.c:306
(sofia/internal/90964111 at 192.168.1.116:9390) Running State Change CS_ROUTING
2009-12-02 06:56:33.842639 [DEBUG] switch_core_state_machine.c:333
(sofia/internal/90964111 at 192.168.1.116:9390) State ROUTING
2009-12-02 06:56:33.842639 [DEBUG] mod_sofia.c:130 sofia/internal/
90964111 at 192.168.1.116:9390 SOFIA ROUTING
2009-12-02 06:56:33.842639 [DEBUG] switch_ivr_originate.c:66
(sofia/internal/90964111 at 192.168.1.116:9390) State Change CS_ROUTING ->
CS_CONSUME_MEDIA
2009-12-02 06:56:33.842639 [DEBUG] switch_core_session.c:932 Send signal
sofia/internal/90964111 at 192.168.1.116:9390 [BREAK]
2009-12-02 06:56:33.842639 [DEBUG] switch_core_state_machine.c:333
(sofia/internal/90964111 at 192.168.1.116:9390) State ROUTING going to sleep
2009-12-02 06:56:33.842639 [DEBUG] switch_core_state_machine.c:306
(sofia/internal/90964111 at 192.168.1.116:9390) Running State Change
CS_CONSUME_MEDIA
2009-12-02 06:56:33.842639 [DEBUG] switch_core_state_machine.c:352
(sofia/internal/90964111 at 192.168.1.116:9390) State CONSUME_MEDIA
2009-12-02 06:56:33.842639 [DEBUG] switch_core_state_machine.c:352
(sofia/internal/90964111 at 192.168.1.116:9390) State CONSUME_MEDIA going to
sleep
send 1159 bytes to udp/[192.168.1.116]:9390 at 22:56:33.843976:
   ------------------------------------------------------------------------
   INVITE sip:90964111 at 192.168.1.116:9390 SIP/2.0
   Via: SIP/2.0/UDP 192.168.1.102;rport;branch=z9hG4bKaNKUU3DjZjB1g
   Max-Forwards: 69
   From: "PhonerLite"
<sip:PhonerLite at 192.168.1.102<sip%3APhonerLite at 192.168.1.102>
>;tag=8tH6Xjt2XaU9F
   To: <sip:90964111 at 192.168.1.116:9390>
   Call-ID: 9d052856-596f-122d-1b98-0022190e9476
   CSeq: 123735760 INVITE
   Contact: <sip:PhonerLite at 192.168.1.102:5060>
   User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-15095
   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO,
REGISTER, REFER, NOTIFY
   Supported: timer, precondition, path, replaces
   Allow-Events: talk, refer
   Content-Type: application/sdp
   Content-Disposition: session
   Content-Length: 404
   Remote-Party-ID: "PhonerLite"
<sip:PhonerLite at 192.168.1.102<sip%3APhonerLite at 192.168.1.102>
>;party=calling;screen=yes;privacy=off

   v=0
   o=- 3393406017 6776849011794265802 IN IP4 192.168.1.104
   s=SIPPER for PhonerLite
   c=IN IP4 192.168.1.102
   t=0 0
   m=audio 34846 RTP/AVP 8 0 2 3 97 110 111 9 101
   a=rtpmap:8 PCMA/8000
   a=rtpmap:0 PCMU/8000
   a=rtpmap:2 G726-32/8000
   a=rtpmap:3 GSM/8000
   a=rtpmap:97 iLBC/8000
   a=rtpmap:110 speex/8000
   a=rtpmap:111 speex/16000
   a=rtpmap:9 G722/8000
   a=rtpmap:101 telephone-event/8000
   a=fmtp:101 0-16
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091201/56510807/attachment-0002.html 


More information about the FreeSWITCH-users mailing list