Thanks a lot guys.
I am doing SIP trunking test between Mitel 3300 and Asterisk.
We have our own PBX in between (so there is a SIP trunk between Asterisk and our PBX and there is another SIP trunk between our PBX and Mitel 3300). Our PBX is not anchoring the call (it just routes it, SDP is not changed).
And here is the log (softphone 2408150 off Asterisk calls Mitel phone running Minet, 2258100. Logs are captured from our PBX):
Incoming Ingress Request
INVITE sip:2258100@192.168.80.146:5080 SIP/2.0^M
Via: SIP/2.0/UDP 192.168.80.120:5060;branch=z9hG4bK53c653ea;rport=5060^M
From: "3CX admin" <sip:2408150@192.168.80.120>;tag=as2d832122^M
To: <sip:2258100@192.168.80.146:5080>^M
Contact: <sip:2408150@192.168.80.120>^M
Call-ID: 499274757b8ca33243049f5379eb9d70@192.168.80.120^M
CSeq: 102 INVITE^M
User-Agent: Asterisk PBX^M
Max-Forwards: 70^M
Date: Thu, 16 Jun 2011 18:19:37 GMT^M
Allow: INVITE,ACK,CANCEL,OPTIONS,BYE,REFER,SUBSCRIBE,NOTIFY^M
Content-Type: application/sdp^M
Content-Length: 289^M
^M
v=0^M
o=root 1888 1888 IN IP4 192.168.80.120^M
s=session^M
c=IN IP4 192.168.80.120^M
t=0 0^M
m=audio 12592 RTP/AVP 0 8 18 101^M
a=rtpmap:0 PCMU/8000^M
a=rtpmap:8 PCMA/8000^M
a=rtpmap:18 G729/8000^M
a=fmtp:18 annexb=no^M
a=rtpmap:101 telephone-event/8000^M
a=fmtp:101 0-16^M
a=silenceSupp:off - - - -^M
Outgoing Egress Request
INVITE sip:2258100@mitel1.tango-networks.com:5060;transport=udp;maddr=192.168.80.143 SIP/2.0^M
Via: SIP/2.0/UDP 192.168.80.146:5080;branch=z9hG4bK16409b6ecd0e22515d2d247448c33bf7;rport^M
From: <sip:2408150@system;transport=udp>;tag=TiBriA^M
To: <sip:2258100@mitel1.tango-networks.com;transport=udp>^M
Contact: <sip:192.168.80.146:5080;transport=udp;lr>^M
Call-ID: cf2412c3-f200-4379-a38a-7947b2fc44f6^M
CSeq: 100 INVITE^M
Max-Forwards: 69^M
Date: Thu, 16 Jun 2011 18:19:37 GMT^M
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY^M
Content-Type: application/SDP^M
Content-Length: 289^M
P-Asserted-Identity: <sip:2408150@system;transport=udp>^M
Remote-Party-ID: <sip:2408150@system;transport=udp>;party=calling^M
^M
v=0^M
o=root 1888 1888 IN IP4 192.168.80.120^M
s=session^M
c=IN IP4 192.168.80.120^M
t=0 0^M
m=audio 12592 RTP/AVP 0 8 18 101^M
a=rtpmap:0 PCMU/8000^M
a=rtpmap:8 PCMA/8000^M
a=rtpmap:18 G729/8000^M
a=fmtp:18 annexb=no^M
a=rtpmap:101 telephone-event/8000^M
a=fmtp:101 0-16^M
a=silenceSupp:off - - - -^M
Incoming Egress Response
SIP/2.0 180 Ringing^M
Via: SIP/2.0/UDP 192.168.80.146:5080;branch=z9hG4bK16409b6ecd0e22515d2d247448c33bf7;rport^M
From: <sip:2408150@system;transport=udp>;tag=TiBriA^M
To: <sip:2258100@mitel1.tango-networks.com;transport=udp>;tag=0_590921104-91056377^M
Call-ID: cf2412c3-f200-4379-a38a-7947b2fc44f6^M
CSeq: 100 INVITE^M
Contact: <sip:2258100@192.168.80.143:5060;transport=udp>^M
Server: Mitel-3300-ICP 10.2.0.26_2^M
Content-Length: 0^M
^M
Outgoing Ingress Response
SIP/2.0 180 Ringing^M
Via: SIP/2.0/UDP 192.168.80.120:5060;branch=z9hG4bK53c653ea;rport=5060^M
From: "3CX admin" <sip:2408150@192.168.80.120>;tag=as2d832122^M
To: <sip:2258100@192.168.80.146:5080>;tag=0_590921104-91056377^M
Call-ID: 499274757b8ca33243049f5379eb9d70@192.168.80.120^M
CSeq: 102 INVITE^M
Contact: <sip:192.168.80.146:5080;abrazohostnode=192.168.80.146;transport=udp;lr>^M
Content-Length: 0^M
^M
Incoming Egress Response
SIP/2.0 200 OK^M
Via: SIP/2.0/UDP 192.168.80.146:5080;branch=z9hG4bK16409b6ecd0e22515d2d247448c33bf7;rport^M
From: <sip:2408150@system;transport=udp>;tag=TiBriA^M
To: <sip:2258100@mitel1.tango-networks.com;transport=udp>;tag=0_590921104-91056377^M
Call-ID: cf2412c3-f200-4379-a38a-7947b2fc44f6^M
CSeq: 100 INVITE^M
Contact: <sip:2258100@192.168.80.143:5060;transport=udp>^M
Allow: INVITE,BYE,CANCEL,ACK,INFO,PRACK,OPTIONS,SUBSCRIBE,NOTIFY,REFER,REGISTER,UPDATE^M
Content-Type: application/sdp^M
Server: Mitel-3300-ICP 10.2.0.26_2^M
Content-Length: 170^M
^M
v=0^M
o=- 546 546 IN IP4 192.168.80.235^M
s=-^M
c=IN IP4 192.168.80.235^M
t=0 0^M
m=audio 50082 RTP/AVP 0 101^M
a=rtpmap:101 telephone-event/8000^M
a=fmtp:101 0-15^M
a=ptime:80^M
Outgoing Ingress Response
SIP/2.0 200 OK^M
Via: SIP/2.0/UDP 192.168.80.120:5060;branch=z9hG4bK53c653ea;rport=5060^M
From: "3CX admin" <sip:2408150@192.168.80.120>;tag=as2d832122^M
To: <sip:2258100@192.168.80.146:5080>;tag=0_590921104-91056377^M
Call-ID: 499274757b8ca33243049f5379eb9d70@192.168.80.120^M
CSeq: 102 INVITE^M
Contact: <sip:192.168.80.146:5080;abrazohostnode=192.168.80.146;transport=udp;lr>^M
Allow: REGISTER,REFER,NOTIFY,SUBSCRIBE,OPTIONS,PRACK,INFO,ACK,CANCEL,BYE,INVITE^M
Content-Type: application/SDP^M
Content-Length: 170^M
^M
v=0^M
o=- 546 546 IN IP4 192.168.80.235^M
s=-^M
c=IN IP4 192.168.80.235^M
t=0 0^M
m=audio 50082 RTP/AVP 0 101^M
a=rtpmap:101 telephone-event/8000^M
a=fmtp:101 0-15^M
a=ptime:80^M