Plan d'adressage IP et versions ------------------------------- ST2030 1.58 Asterisk 1.4.17 avec patch dispo sur le site de Thomson Telephone 11 = 10.0.0.111 Telephone 35 = 10.0.0.135 Telephone 37 = 10.0.0.137 Asterisk = 10.0.1.76 Scenario -------- Le poste 37 appelle le poste 35 et je fais un pickup de l'appel depuis le poste 11 en appuyant sur la touche de fonction correspondant au poste 35 qui clignote. Resultats --------- Ca marche ! tcpdump entre asterisk et le poste 11 ------------------------------------- 13:07 root@asterisk /etc/asterisk# tcpdump -n -A -s 65535 host 10.0.0.111 and port 5060 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes 13:07:53.366088 IP 10.0.1.76.5060 > 10.0.0.111.5060: SIP, length: 649 E...[x..@..^ ..L ..o.......]NOTIFY sip:11@10.0.0.111:5060;user=phone SIP/2.0 Via: SIP/2.0/UDP 10.0.1.76:5060;branch=z9hG4bK5afa74ed;rport From: ;tag=as2eb2c27a To: ;tag=c0a80101-243e Contact: Call-ID: 16a08-c0a80101-d-a@10.0.0.111 CSeq: 340 NOTIFY User-Agent: Asterisk PBX Max-Forwards: 70 Event: dialog Content-Type: application/dialog-info+xml Subscription-State: active Content-Length: 204 confirmed 13:07:53.366206 IP 10.0.1.76.5060 > 10.0.0.111.5060: SIP, length: 926 E...[y..@..H ..L ..o.......rNOTIFY sip:11@10.0.0.111:5060;user=phone SIP/2.0 Via: SIP/2.0/UDP 10.0.1.76:5060;branch=z9hG4bK1cd9d210;rport From: ;tag=as2c83a8b2 To: ;tag=c0a80101-243d Contact: Call-ID: 145ca-c0a80101-d-9@10.0.0.111 CSeq: 337 NOTIFY User-Agent: Asterisk PBX Max-Forwards: 70 Event: dialog Content-Type: application/dialog-info+xml Subscription-State: active Content-Length: 481 early sip:11@10.0.1.76:5060 sip:*835@10.0.1.76:5060 13:07:53.371732 IP 10.0.0.111.5060 > 10.0.1.76.5060: SIP, length: 250 E.......@... ..o ..L.......zSIP/2.0 200 OK Via: SIP/2.0/UDP 10.0.1.76:5060;branch=z9hG4bK5afa74ed;rport From: ;tag=as2eb2c27a To: ;tag=c0a80101-243e Call-ID: 16a08-c0a80101-d-a@10.0.0.111 CSeq: 340 NOTIFY Content-Length: 0 13:07:53.381264 IP 10.0.0.111.5060 > 10.0.1.76.5060: SIP, length: 250 E.......@... ..o ..L........SIP/2.0 200 OK Via: SIP/2.0/UDP 10.0.1.76:5060;branch=z9hG4bK1cd9d210;rport From: ;tag=as2c83a8b2 To: ;tag=c0a80101-243d Call-ID: 145ca-c0a80101-d-9@10.0.0.111 CSeq: 337 NOTIFY Content-Length: 0 <<<<< A cet instant : PICKUP depuis le 11 >>>>>> 13:07:57.006744 IP 10.0.0.111.5060 > 10.0.1.76.5060: SIP, length: 887 E.......@..< ..o ..L......{.INVITE sip:*835@10.0.1.76:5060;user=phone SIP/2.0 Via: SIP/2.0/UDP 10.0.0.111:5060;branch=z9hG4bK3296474214203198209-189193599 From: "Alexis de Lattre";tag=c0a80101-b46dd7e To: Call-ID: fa50fdb1-c0a80101-0-3233@10.0.0.111 CSeq: 1 INVITE Max-Forwards: 70 Supported: timer, replaces Session-Expires: 1800 Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,PRACK,SUBSCRIBE,NOTIFY,UPDATE,REFER,REGISTER,INFO Contact: User-Agent: THOMSON ST2030 hw3 fw1.58 00-0E-50-4E-89-89 Allow-Events: refer,dialog,message-summary,check-sync,talk,hold Content-Type: application/sdp Content-Length: 194 v=0 o=11 189193599 189193599 IN IP4 10.0.0.111 s=- c=IN IP4 10.0.0.111 t=0 0 m=audio 41000 RTP/AVP 8 97 a=rtpmap:8 PCMA/8000 a=rtpmap:97 telephone-event/8000 a=fmtp:97 0-15 a=sendrecv 13:07:57.006967 IP 10.0.1.76.5060 > 10.0.0.111.5060: SIP, length: 555 E..G[z..@... ..L ..o.....3..SIP/2.0 407 Proxy Authentication Required Via: SIP/2.0/UDP 10.0.0.111:5060;branch=z9hG4bK3296474214203198209-189193599;received=10.0.0.111 From: "Alexis de Lattre";tag=c0a80101-b46dd7e To: ;tag=as0345dd03 Call-ID: fa50fdb1-c0a80101-0-3233@10.0.0.111 CSeq: 1 INVITE User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY Supported: replaces Proxy-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="5c995bed" Content-Length: 0 13:07:57.027527 IP 10.0.0.111.5060 > 10.0.1.76.5060: SIP, length: 484 E.......@... ..o ..L......?.ACK sip:*835@10.0.1.76:5060;user=phone SIP/2.0 Via: SIP/2.0/UDP 10.0.0.111:5060;branch=z9hG4bK3296474214203198209-189193599 From: "Alexis de Lattre";tag=c0a80101-b46dd7e To: ;tag=as0345dd03 Call-ID: fa50fdb1-c0a80101-0-3233@10.0.0.111 CSeq: 1 ACK Max-Forwards: 70 Allow-Events: refer,dialog,message-summary,check-sync,talk,hold User-Agent: THOMSON ST2030 hw3 fw1.58 00-0E-50-4E-89-89 Content-Length: 0 13:07:57.029048 IP 10.0.0.111.5060 > 10.0.1.76.5060: SIP, length: 1068 E..H....@... ..o ..L.....4..INVITE sip:*835@10.0.1.76:5060;user=phone SIP/2.0 Via: SIP/2.0/UDP 10.0.0.111:5060;branch=z9hG4bK4747925369769203710-189193609 From: "Alexis de Lattre";tag=c0a80101-b46dd7e To: Call-ID: fa50fdb1-c0a80101-0-3233@10.0.0.111 CSeq: 2 INVITE Max-Forwards: 70 Supported: timer, replaces Session-Expires: 1800 Proxy-Authorization: Digest username="11", realm="asterisk", nonce="5c995bed", uri="sip:*835@10.0.1.76:5060;user=phone", response="1d030a501cddb087b655a1264ad4a04f", algorithm=MD5 Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,PRACK,SUBSCRIBE,NOTIFY,UPDATE,REFER,REGISTER,INFO Contact: User-Agent: THOMSON ST2030 hw3 fw1.58 00-0E-50-4E-89-89 Allow-Events: refer,dialog,message-summary,check-sync,talk,hold Content-Type: application/sdp Content-Length: 194 v=0 o=11 189193599 189193599 IN IP4 10.0.0.111 s=- c=IN IP4 10.0.0.111 t=0 0 m=audio 41000 RTP/AVP 8 97 a=rtpmap:8 PCMA/8000 a=rtpmap:97 telephone-event/8000 a=fmtp:97 0-15 a=sendrecv 13:07:57.029255 IP 10.0.1.76.5060 > 10.0.0.111.5060: SIP, length: 470 E...[{..@... ..L ..o........SIP/2.0 100 Trying Via: SIP/2.0/UDP 10.0.0.111:5060;branch=z9hG4bK4747925369769203710-189193609;received=10.0.0.111 From: "Alexis de Lattre";tag=c0a80101-b46dd7e To: Call-ID: fa50fdb1-c0a80101-0-3233@10.0.0.111 CSeq: 2 INVITE User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY Supported: replaces Contact: Content-Length: 0 13:07:57.029576 IP 10.0.1.76.5060 > 10.0.0.111.5060: SIP, length: 743 E...[|..@... ..L ..o........SIP/2.0 200 OK Via: SIP/2.0/UDP 10.0.0.111:5060;branch=z9hG4bK4747925369769203710-189193609;received=10.0.0.111 From: "Alexis de Lattre";tag=c0a80101-b46dd7e To: ;tag=as632aa367 Call-ID: fa50fdb1-c0a80101-0-3233@10.0.0.111 CSeq: 2 INVITE User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY Supported: replaces Contact: Content-Type: application/sdp Content-Length: 229 v=0 o=root 3285 3285 IN IP4 10.0.1.76 s=session c=IN IP4 10.0.1.76 t=0 0 m=audio 18624 RTP/AVP 8 97 a=rtpmap:8 PCMA/8000 a=rtpmap:97 telephone-event/8000 a=fmtp:97 0-16 a=silenceSupp:off - - - - a=ptime:20 a=sendrecv 13:07:57.031729 IP 10.0.1.76.5060 > 10.0.0.111.5060: SIP, length: 650 E...[}..@..X ..L ..o.......^NOTIFY sip:11@10.0.0.111:5060;user=phone SIP/2.0 Via: SIP/2.0/UDP 10.0.1.76:5060;branch=z9hG4bK71494c13;rport From: ;tag=as2c83a8b2 To: ;tag=c0a80101-243d Contact: Call-ID: 145ca-c0a80101-d-9@10.0.0.111 CSeq: 338 NOTIFY User-Agent: Asterisk PBX Max-Forwards: 70 Event: dialog Content-Type: application/dialog-info+xml Subscription-State: active Content-Length: 205 terminated 13:07:57.054754 IP 10.0.0.111.5060 > 10.0.1.76.5060: SIP, length: 655 E.......@..! ..o ..L......3.ACK sip:*835@10.0.1.76;user=phone SIP/2.0 Via: SIP/2.0/UDP 10.0.0.111:5060;branch=z9hG4bK9252471914214764265-189193619 From: "Alexis de Lattre";tag=c0a80101-b46dd7e To: ;tag=as632aa367 Call-ID: fa50fdb1-c0a80101-0-3233@10.0.0.111 CSeq: 2 ACK Max-Forwards: 70 Allow-Events: refer,dialog,message-summary,check-sync,talk,hold Proxy-Authorization: Digest username="11", realm="asterisk", nonce="5c995bed", uri="sip:*835@10.0.1.76;user=phone", response="0b9e5903a2c1e014f210f96f869d3625", algorithm=MD5 User-Agent: THOMSON ST2030 hw3 fw1.58 00-0E-50-4E-89-89 Content-Length: 0 13:07:57.064217 IP 10.0.0.111.5060 > 10.0.1.76.5060: SIP, length: 250 E.......@... ..o ..L......$.SIP/2.0 200 OK Via: SIP/2.0/UDP 10.0.1.76:5060;branch=z9hG4bK71494c13;rport From: ;tag=as2c83a8b2 To: ;tag=c0a80101-243d Call-ID: 145ca-c0a80101-d-9@10.0.0.111 CSeq: 338 NOTIFY Content-Length: 0 <<<<<<< SUCCES : le pickup a marché : le poste 37 parle avec le 11 >>>>>>> Site Web -------- http://people.via.ecp.fr/~alexis/asterisk/