Jalal Vetran
Joined: April 24 2006 Location: Iran Posts: 188
|
Posted: May 28 2006 at 10:11am | IP Logged
|
|
|
Hi
I tried to connect to Dual Line IVR Sample with SJLab softphone (from www.sjlabs.com) but unfortunately the quality of voices is very bad. I changed the codec with following code :
SetAudioMediaFormat(hSipEngine,PhoneLine,Media_Format_uLaw8k );
SetTxIvrDataType(hIvrTransmit,AUDIO_BW_ULAW_8K);
but the problem did not solve. I also disabled all codecs but Microsoft CCITT G.711 uLaw codec in SJLab Softphone but the problem did not solve.
I also tested my changed software with LanScape's single line softphone sample (set the codec to ulaw) and it worked perfectly correct.
It seems the G.711u (ulaw) implementation of LanScape's Media Engine is different from SJLab's implementation.
Do you have any suggestion?
Here is the log for testing connection with SJLab's softphone:
************* Log Opened (May 28 18:25:45) *************
<<<< RxRxRxRxRxRxRxRxRxRxRxRxRxRxRxRxRxRx (0 Ms, From: 10.10.10.15:1000) <<<<
INVITE sip:10.10.10.15 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:1000;rport;branch=z9hG4bK0a0a0a0f000000604479ba160 000624e000000cf
Content-Length: 213
Contact: <sip:127.0.0.1:1000>
Call-ID: 814FE37C-C450-4CF1-87D4-003956D18A01@10.10.10.15
Content-Type: application/sdp
CSeq: 1 INVITE
From: "unknown"<sip:127.0.0.1>;tag=36136929622706
Max-Forwards: 70
To: <sip:10.10.10.15>
User-Agent: SJphone/1.60.289a (SJ Labs)
v=0
o=- 3357816981 3357816981 IN IP4 127.0.0.1
s=SJphone
c=IN IP4 127.0.0.1
t=0 0
a=direction:active
m=audio 49200 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-11,16
>>>> TxTxTxTxTxTxTxTxTxTxTxTxTxTxTxTxTxTxTx (0 Ms, To: 10.10.10.15:1000) >>>>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 127.0.0.1:1000;received=10.10.10.15:1000;branch=z9hG4bK0a0a0 a0f000000604479ba160000624e000000cf
From: "unknown"<sip:127.0.0.1>;tag=36136929622706
To: <sip:10.10.10.15>
Call-ID: 814FE37C-C450-4CF1-87D4-003956D18A01@10.10.10.15
CSeq: 1 INVITE
User-Agent: LanScape VOIP Media Engine/5.11.0205 (www.LanScapeCorp.com - This is a trial version not for general deployment)
Content-Length: 0
>>>> TxTxTxTxTxTxTxTxTxTxTxTxTxTxTxTxTxTxTx (31 Ms, To: 10.10.10.15:1000) >>>>
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 127.0.0.1:1000;received=10.10.10.15:1000;branch=z9hG4bK0a0a0 a0f000000604479ba160000624e000000cf
From: "unknown"<sip:127.0.0.1>;tag=36136929622706
To: <sip:10.10.10.15>;tag=158a58e7
Call-ID: 814FE37C-C450-4CF1-87D4-003956D18A01@10.10.10.15
CSeq: 1 INVITE
User-Agent: LanScape VOIP Media Engine/5.11.0205 (www.LanScapeCorp.com - This is a trial version not for general deployment)
Content-Length: 0
<<<< RxRxRxRxRxRxRxRxRxRxRxRxRxRxRxRxRxRx (500 Ms, From: 10.10.10.15:1000) <<<<
INVITE sip:10.10.10.15 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:1000;rport;branch=z9hG4bK0a0a0a0f000000604479ba160 000624e000000cf
Content-Length: 213
Contact: <sip:127.0.0.1:1000>
Call-ID: 814FE37C-C450-4CF1-87D4-003956D18A01@10.10.10.15
Content-Type: application/sdp
CSeq: 1 INVITE
From: "unknown"<sip:127.0.0.1>;tag=36136929622706
Max-Forwards: 70
To: <sip:10.10.10.15>
User-Agent: SJphone/1.60.289a (SJ Labs)
v=0
o=- 3357816981 3357816981 IN IP4 127.0.0.1
s=SJphone
c=IN IP4 127.0.0.1
t=0 0
a=direction:active
m=audio 49200 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-11,16
>>>> TxTxTxTxTxTxTxTxTxTxTxTxTxTxTxTxTxTxTx (547 Ms, To: 10.10.10.15:1000) >>>>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 127.0.0.1:1000;received=10.10.10.15:1000;branch=z9hG4bK0a0a0 a0f000000604479ba160000624e000000cf
From: "unknown"<sip:127.0.0.1>;tag=36136929622706
To: <sip:10.10.10.15>;tag=158a58e7
Call-Id: 814FE37C-C450-4CF1-87D4-003956D18A01@10.10.10.15
CSeq: 1 INVITE
Contact: <sip:CTRun@10.10.10.15:5060>
Allow: INVITE, ACK, OPTIONS, BYE, CANCEL, SUBSCRIBE, NOTIFY
User-Agent: LanScape VOIP Media Engine/5.11.0205 (www.LanScapeCorp.com - This is a trial version not for general deployment)
Content-Length: 159
Content-Type: application/sdp
v=0
o=LanScape 3357816983 3357816983 IN IP4 10.10.10.15
s=LanScape
c=IN IP4 10.10.10.15
t=0 0
m=audio 8000 RTP/AVP 0
a=rtpmap:0 PCMU/8000/1
a=ptime:20
<<<< RxRxRxRxRxRxRxRxRxRxRxRxRxRxRxRxRxRx (188 Ms, From: 10.10.10.15:1000) <<<<
ACK sip:CTRun@10.10.10.15:5060 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:1000;rport;branch=z9hG4bK0a0a0a0f000000604479ba170 0007e88000000d3
Content-Length: 0
Call-ID: 814FE37C-C450-4CF1-87D4-003956D18A01@10.10.10.15
CSeq: 1 ACK
From: "unknown"<sip:127.0.0.1>;tag=36136929622706
Max-Forwards: 70
To: <sip:10.10.10.15>;tag=158a58e7
User-Agent: SJphone/1.60.289a (SJ Labs)
<<<< RxRxRxRxRxRxRxRxRxRxRxRxRxRxRxRxRxRx (812 Ms, From: 10.10.10.15:1000) <<<<
INVITE sip:10.10.10.15 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:1000;rport;branch=z9hG4bK0a0a0a0f000000604479ba160 000624e000000cf
Content-Length: 213
Contact: <sip:127.0.0.1:1000>
Call-ID: 814FE37C-C450-4CF1-87D4-003956D18A01@10.10.10.15
Content-Type: application/sdp
CSeq: 1 INVITE
From: "unknown"<sip:127.0.0.1>;tag=36136929622706
Max-Forwards: 70
To: <sip:10.10.10.15>
User-Agent: SJphone/1.60.289a (SJ Labs)
v=0
o=- 3357816981 3357816981 IN IP4 127.0.0.1
s=SJphone
c=IN IP4 127.0.0.1
t=0 0
a=direction:active
m=audio 49200 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-11,16
<<<< RxRxRxRxRxRxRxRxRxRxRxRxRxRxRxRxRxRx (2000 Ms, From: 10.10.10.15:1000) <<<<
INVITE sip:10.10.10.15 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:1000;rport;branch=z9hG4bK0a0a0a0f000000604479ba160 000624e000000cf
Content-Length: 213
Contact: <sip:127.0.0.1:1000>
Call-ID: 814FE37C-C450-4CF1-87D4-003956D18A01@10.10.10.15
Content-Type: application/sdp
CSeq: 1 INVITE
From: "unknown"<sip:127.0.0.1>;tag=36136929622706
Max-Forwards: 70
To: <sip:10.10.10.15>
User-Agent: SJphone/1.60.289a (SJ Labs)
v=0
o=- 3357816981 3357816981 IN IP4 127.0.0.1
s=SJphone
c=IN IP4 127.0.0.1
t=0 0
a=direction:active
m=audio 49200 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-11,16
<<<< RxRxRxRxRxRxRxRxRxRxRxRxRxRxRxRxRxRx (4000 Ms, From: 10.10.10.15:1000) <<<<
INVITE sip:10.10.10.15 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:1000;rport;branch=z9hG4bK0a0a0a0f000000604479ba160 000624e000000cf
Content-Length: 213
Contact: <sip:127.0.0.1:1000>
Call-ID: 814FE37C-C450-4CF1-87D4-003956D18A01@10.10.10.15
Content-Type: application/sdp
CSeq: 1 INVITE
From: "unknown"<sip:127.0.0.1>;tag=36136929622706
Max-Forwards: 70
To: <sip:10.10.10.15>
User-Agent: SJphone/1.60.289a (SJ Labs)
v=0
o=- 3357816981 3357816981 IN IP4 127.0.0.1
s=SJphone
c=IN IP4 127.0.0.1
t=0 0
a=direction:active
m=audio 49200 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-11,16
>>>> TxTxTxTxTxTxTxTxTxTxTxTxTxTxTxTxTxTxTx (13157 Ms, To: 127.0.0.1:1000) >>>>
BYE sip:127.0.0.1:1000 SIP/2.0
Via: SIP/2.0/UDP 10.10.10.15:5060
From: <sip:10.10.10.15>;tag=158a58e7
To: "unknown"<sip:127.0.0.1>;tag=36136929622706
Call-Id: 814FE37C-C450-4CF1-87D4-003956D18A01@10.10.10.15
CSeq: 361409891 BYE
Max-Forwards: 70
User-Agent: LanScape VOIP Media Engine/5.11.0205 (www.LanScapeCorp.com - This is a trial version not for general deployment)
Content-Length: 0
<<<< RxRxRxRxRxRxRxRxRxRxRxRxRxRxRxRxRxRx (6328 Ms, From: 10.10.10.15:1000) <<<<
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.10.10.15:5060
Content-Length: 0
Call-ID: 814FE37C-C450-4CF1-87D4-003956D18A01@10.10.10.15
CSeq: 361409891 BYE
From: <sip:10.10.10.15>;tag=158a58e7
Server: SJphone/1.60.289a (SJ Labs)
To: "unknown"<sip:127.0.0.1>;tag=36136929622706
<<<< RxRxRxRxRxRxRxRxRxRxRxRxRxRxRxRxRxRx (1672 Ms, From: 10.10.10.15:1000) <<<<
INVITE sip:10.10.10.15 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:1000;rport;branch=z9hG4bK0a0a0a0f000000604479ba160 000624e000000cf
Content-Length: 213
Contact: <sip:127.0.0.1:1000>
Call-ID: 814FE37C-C450-4CF1-87D4-003956D18A01@10.10.10.15
Content-Type: application/sdp
CSeq: 1 INVITE
From: "unknown"<sip:127.0.0.1>;tag=36136929622706
Max-Forwards: 70
To: <sip:10.10.10.15>
User-Agent: SJphone/1.60.289a (SJ Labs)
v=0
o=- 3357816981 3357816981 IN IP4 127.0.0.1
s=SJphone
c=IN IP4 127.0.0.1
t=0 0
a=direction:active
m=audio 49200 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-11,16
<<<< RxRxRxRxRxRxRxRxRxRxRxRxRxRxRxRxRxRx (16000 Ms, From: 10.10.10.15:1000) <<<<
INVITE sip:10.10.10.15 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:1000;rport;branch=z9hG4bK0a0a0a0f000000604479ba160 000624e000000cf
Content-Length: 213
Contact: <sip:127.0.0.1:1000>
Call-ID: 814FE37C-C450-4CF1-87D4-003956D18A01@10.10.10.15
Content-Type: application/sdp
CSeq: 1 INVITE
From: "unknown"<sip:127.0.0.1>;tag=36136929622706
Max-Forwards: 70
To: <sip:10.10.10.15>
User-Agent: SJphone/1.60.289a (SJ Labs)
v=0
o=- 3357816981 3357816981 IN IP4 127.0.0.1
s=SJphone
c=IN IP4 127.0.0.1
t=0 0
a=direction:active
m=audio 49200 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-11,16
|