If the endpoint does not correctly follow the sdp o/a model its not going to work.  This is not a "problem" with the sofia library, this is intended behavior and what we are supposed to do.  What is the device?

Mike

On Feb 22, 2010, at 7:48 AM, ivdreg ivdreg wrote:

Hi All,

Actually while seeking the solution in internet I see some people having this problem with sofia library. I'm not sure that SIP reply in this case contains a valid SDP (I think that teminating endpoint is broken) but in my opinion if we have at least one valid media type in SDP (video, audio, image ...) call must be established. Can someone comment and/or help me with this issue.

Regards.

2010/2/19 ivdreg ivdreg <ivdreg@gmail.com>
Hi all,

Dose someone have a problem that if there T.38 in coming from gateway FreeSwitch drops the call because of media error ? As I see from log only T.38 port is zero and SDP has also media port. Is it possible to configure FS to do not break a call but if media is OK.

2010-02-19 12:26:14.305244 [NOTICE] switch_channel.c:666 New Channel sofia/backend/XXXXXXXXXX@10.10.1.110:7065 [6cd9f634-411d-df11-99ca-003048bb99cc]
2010-02-19 12:26:14.305244 [DEBUG] mod_sofia.c:3369 (sofia/backend/XXXXXXXXXX@10.10.1.110:7065) State Change CS_NEW -> CS_INIT
2010-02-19 12:26:14.305244 [DEBUG] switch_core_session.c:1018 Send signal sofia/backend/XXXXXXXXXX@10.10.1.110:7065 [BREAK]
2010-02-19 12:26:14.305244 [DEBUG] switch_core_state_machine.c:314 (sofia/backend/XXXXXXXXXX@10.10.1.110:7065) Running State Change CS_INIT
2010-02-19 12:26:14.305244 [DEBUG] switch_core_state_machine.c:338 (sofia/backend/XXXXXXXXXX@10.10.1.110:7065) State INIT
2010-02-19 12:26:14.305244 [DEBUG] mod_sofia.c:83 sofia/backend/XXXXXXXXXX@10.10.1.110:7065 SOFIA INIT
2010-02-19 12:26:14.305244 [DEBUG] sofia_glue.c:1377 sofia/backend/XXXXXXXXXX@10.10.1.110:7065 Patched SDP
---
v=0
o=- 3779949069 5166785777234550622 IN IP4 206.132.232.212
s=session
t=0 0
m=audio 21108 RTP/AVP 18 4 8 0
c=IN IP4 10.10.1.110
a=rtpmap:18 G729/8000
a=rtpmap:4 G723/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
m=image 21108 udptl t38
c=IN IP4 10.10.1.110
a=T38FaxVersion:0
a=T38MaxBitRate:14400
a=T38FaxUdpEC:t38UDPRedundancy
a=T38FaxRateManagement:transferredTCF

+++
v=0
o=- 3779949069 5166785777234550622 IN IP4 206.132.232.212
s=session
t=0 0
m=audio 17058 RTP/AVP 18 4 8 0
c=IN IP4 10.10.1.100
a=rtpmap:18 G729/8000
a=rtpmap:4 G723/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
m=image 17058 udptl t38
c=IN IP4 10.10.1.100
a=T38FaxVersion:0
a=T38MaxBitRate:14400
a=T38FaxUdpEC:t38UDPRedundancy
a=T38FaxRateManagement:transferredTCF

2010-02-19 12:26:14.305244 [DEBUG] mod_sofia.c:117 (sofia/backend/XXXXXXXXXX@10.10.1.110:7065) State Change CS_INIT -> CS_ROUTING
......
2010-02-19 12:26:21.255201 [DEBUG] sofia.c:4135 Remote SDP:
v=0
o=FreeSWITCH 1266548331 1266548332 IN IP4 10.10.1.110
s=FreeSWITCH
c=IN IP4 10.10.1.110
t=0 0
m=audio 26850 RTP/AVP 8
a=rtpmap:8 PCMA/8000
a=silenceSupp:off - - - -
a=ptime:20
m=image 0 udptl 19

2010-02-19 12:26:21.255201 [DEBUG] sofia.c:4124 Channel sofia/backend/XXXXXXXXXX@10.10.1.110:7065 entering state [ready][200]
2010-02-19 12:26:21.255201 [DEBUG] switch_channel.c:2285 Send signal sofia/backend/YYYYYYYYYY@10.10.1.110 [BREAK]
2010-02-19 12:26:21.255201 [NOTICE] sofia.c:4668 Channel [sofia/backend/XXXXXXXXXX@10.10.1.110:7065] has been answered
2010-02-19 12:26:21.255201 [DEBUG] sofia_glue.c:2288 Set Codec sofia/backend/XXXXXXXXXX@10.10.1.110:7065 PROXY/8000 20 ms 160 samples
2010-02-19 12:26:21.255201 [DEBUG] sofia_glue.c:2571 PROXY AUDIO RTP [sofia/backend/XXXXXXXXXX@10.10.1.110:7065] 10.10.1.100:17058->10.10.1.110:0 codec: 0 ms: 20
2010-02-19 12:26:21.255201 [ERR] sofia_glue.c:2879 AUDIO RTP REPORTS ERROR: [Missing remote port]
2010-02-19 12:26:21.255201 [NOTICE] sofia_glue.c:2880 Hangup sofia/backend/XXXXXXXXXX@10.10.1.110:7065 [CS_CONSUME_MEDIA] [DESTINATION_OUT_OF_ORDER]

2010-02-19 12:26:21.255201 [DEBUG] switch_channel.c:2063 Send signal sofia/backend/XXXXXXXXXX@10.10.1.110:7065 [KILL]
2010-02-19 12:26:21.255201 [DEBUG] switch_core_session.c:1018 Send signal sofia/backend/XXXXXXXXXX@10.10.1.110:7065 [BREAK]
2010-02-19 12:26:21.255201 [DEBUG] switch_core_state_machine.c:314 (sofia/backend/XXXXXXXXXX@10.10.1.110:7065) Running State Change CS_HANGUP
2010-02-19 12:26:21.255201 [DEBUG] switch_core_state_machine.c:499 (sofia/backend/XXXXXXXXXX@10.10.1.110:7065) State HANGUP
2010-02-19 12:26:21.255201 [DEBUG] mod_sofia.c:411 Channel sofia/backend/XXXXXXXXXX@10.10.1.110:7065 hanging up, cause: DESTINATION_OUT_OF_ORDER
2010-02-19 12:26:21.255201 [DEBUG] mod_sofia.c:454 Sending BYE to sofia/backend/XXXXXXXXXX@10.10.1.110:7065
2010-02-19 12:26:21.255201 [DEBUG] switch_core_state_machine.c:46 sofia/backend/XXXXXXXXXX@10.10.1.110:7065 Standard HANGUP, cause: DESTINATION_OUT_OF_ORDER
2010-02-19 12:26:21.255201 [DEBUG] switch_core_state_machine.c:499 (sofia/backend/XXXXXXXXXX@10.10.1.110:7065) State HANGUP going to sleep
2010-02-19 12:26:21.255201 [DEBUG] switch_core_state_machine.c:333 (sofia/backend/XXXXXXXXXX@10.10.1.110:7065) State Change CS_HANGUP -> CS_REPORTING
2010-02-19 12:26:21.255201 [DEBUG] switch_core_session.c:1018 Send signal sofia/backend/XXXXXXXXXX@10.10.1.110:7065 [BREAK]
2010-02-19 12:26:21.255201 [DEBUG] switch_core_state_machine.c:314 (sofia/backend/XXXXXXXXXX@10.10.1.110:7065) Running State Change CS_REPORTING
2010-02-19 12:26:21.255201 [DEBUG] switch_ivr_originate.c:3185 Originate Resulted in Error Cause: 27 [DESTINATION_OUT_OF_ORDER]
2010-02-19 12:26:21.255201 [INFO] mod_dptools.c:2353 Originate Failed.  Cause: DESTINATION_OUT_OF_ORDER
2010-02-19 12:26:21.255201 [DEBUG] switch_core_state_machine.c:590 (sofia/backend/XXXXXXXXXX@10.10.1.110:7065) State REPORTING