The only thing that changed from a fully working environment to now is Asterisk upgrade from 1.6 to 1.8 and dahdi update.
Using SIP debug from asterisk cli, the very first SIP packet that sends to the phone when the extension is dialed shows anonymous as the SIP from address.
As you can see below, the first SIP packet has:
From: “Anonymous” sip:Anonymous@anonymous.invalid;tag=as51ee470f
[quote] – Executing [s@macro-user-callerid:24] Set(“DAHDI/i1/4445556666-a”, “CALLERID(number)=4445556666”) in new stack
– Executing [s@macro-user-callerid:25] Set(“DAHDI/i1/4445556666-a”, “CALLERID(name)=”) in new stack
– Executing [s@macro-user-callerid:26] Set(“DAHDI/i1/4445556666-a”, “CHANNEL(language)=en”) in new stack
– Executing [s@macro-exten-vm:2] Set(“DAHDI/i1/4445556666-a”, “RingGroupMethod=none”) in new stack
– Executing [s@macro-exten-vm:3] Set(“DAHDI/i1/4445556666-a”, “__EXTTOCALL=1399”) in new stack
– Executing [s@macro-exten-vm:4] Set(“DAHDI/i1/4445556666-a”, “__PICKUPMARK=1399”) in new stack
– Executing [s@macro-exten-vm:5] Set(“DAHDI/i1/4445556666-a”, “RT=”) in new stack
– Executing [s@macro-exten-vm:6] Macro(“DAHDI/i1/4445556666-a”, “record-enable,1399,IN”) in new stack
– Executing [s@macro-record-enable:1] GotoIf(“DAHDI/i1/4445556666-a”, “1?check”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [s@macro-record-enable:4] ExecIf(“DAHDI/i1/4445556666-a”, “0?MacroExit()”) in new stack
– Executing [s@macro-record-enable:5] GotoIf(“DAHDI/i1/4445556666-a”, “0?Group:OUT”) in new stack
– Goto (macro-record-enable,s,14)
– Executing [s@macro-record-enable:14] GotoIf(“DAHDI/i1/4445556666-a”, “1?IN”) in new stack
– Goto (macro-record-enable,s,18)
– Executing [s@macro-record-enable:18] ExecIf(“DAHDI/i1/4445556666-a”, “1?MacroExit()”) in new stack
– Executing [s@macro-exten-vm:7] GotoIf(“DAHDI/i1/4445556666-a”, “1?macrodial”) in new stack
– Goto (macro-exten-vm,s,13)
– Executing [s@macro-exten-vm:13] GosubIf(“DAHDI/i1/4445556666-a”, “0?clrheader,1”) in new stack
– Executing [s@macro-exten-vm:14] Macro(“DAHDI/i1/4445556666-a”, “dial-one,tr,1399”) in new stack
– Executing [s@macro-dial-one:1] Set(“DAHDI/i1/4445556666-a”, “DEXTEN=1399”) in new stack
– Executing [s@macro-dial-one:2] Set(“DAHDI/i1/4445556666-a”, “DIALSTATUS_CW=”) in new stack
– Executing [s@macro-dial-one:3] GosubIf(“DAHDI/i1/4445556666-a”, “0?screen,1”) in new stack
– Executing [s@macro-dial-one:4] GosubIf(“DAHDI/i1/4445556666-a”, “0?cf,1”) in new stack
– Executing [s@macro-dial-one:5] GotoIf(“DAHDI/i1/4445556666-a”, “1?skip1”) in new stack
– Goto (macro-dial-one,s,8)
– Executing [s@macro-dial-one:8] GotoIf(“DAHDI/i1/4445556666-a”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:9] GotoIf(“DAHDI/i1/4445556666-a”, “0?continue”) in new stack
– Executing [s@macro-dial-one:10] Set(“DAHDI/i1/4445556666-a”, “EXTHASCW=ENABLED”) in new stack
– Executing [s@macro-dial-one:11] GotoIf(“DAHDI/i1/4445556666-a”, “0?next1:cwinusebusy”) in new stack
– Goto (macro-dial-one,s,23)
– Executing [s@macro-dial-one:23] GotoIf(“DAHDI/i1/4445556666-a”, “1?next3:continue”) in new stack
– Goto (macro-dial-one,s,24)
– Executing [s@macro-dial-one:24] ExecIf(“DAHDI/i1/4445556666-a”, “0?Set(DIALSTATUS_CW=BUSY)”) in new stack
– Executing [s@macro-dial-one:25] GotoIf(“DAHDI/i1/4445556666-a”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:26] GosubIf(“DAHDI/i1/4445556666-a”, “1?dstring,1:dlocal,1”) in new stack
– Executing [dstring@macro-dial-one:1] Set(“DAHDI/i1/4445556666-a”, “DSTRING=”) in new stack
– Executing [dstring@macro-dial-one:2] Set(“DAHDI/i1/4445556666-a”, “DEVICES=1399”) in new stack
– Executing [dstring@macro-dial-one:3] ExecIf(“DAHDI/i1/4445556666-a”, “0?Return()”) in new stack
– Executing [dstring@macro-dial-one:4] ExecIf(“DAHDI/i1/4445556666-a”, “0?Set(DEVICES=399)”) in new stack
– Executing [dstring@macro-dial-one:5] Set(“DAHDI/i1/4445556666-a”, “LOOPCNT=1”) in new stack
– Executing [dstring@macro-dial-one:6] Set(“DAHDI/i1/4445556666-a”, “ITER=1”) in new stack
– Executing [dstring@macro-dial-one:7] Set(“DAHDI/i1/4445556666-a”, “THISDIAL=SIP/1399”) in new stack
– Executing [dstring@macro-dial-one:8] GosubIf(“DAHDI/i1/4445556666-a”, “1?zap2dahdi,1”) in new stack
– Executing [zap2dahdi@macro-dial-one:1] ExecIf(“DAHDI/i1/4445556666-a”, “0?Return()”) in new stack
– Executing [zap2dahdi@macro-dial-one:2] Set(“DAHDI/i1/4445556666-a”, “NEWDIAL=”) in new stack
– Executing [zap2dahdi@macro-dial-one:3] Set(“DAHDI/i1/4445556666-a”, “LOOPCNT2=1”) in new stack
– Executing [zap2dahdi@macro-dial-one:4] Set(“DAHDI/i1/4445556666-a”, “ITER2=1”) in new stack
– Executing [zap2dahdi@macro-dial-one:5] Set(“DAHDI/i1/4445556666-a”, “THISPART2=SIP/1399”) in new stack
– Executing [zap2dahdi@macro-dial-one:6] ExecIf(“DAHDI/i1/4445556666-a”, “0?Set(THISPART2=DAHDI/1399)”) in new stack
– Executing [zap2dahdi@macro-dial-one:7] Set(“DAHDI/i1/4445556666-a”, “NEWDIAL=SIP/1399&”) in new stack
– Executing [zap2dahdi@macro-dial-one:8] Set(“DAHDI/i1/4445556666-a”, “ITER2=2”) in new stack
– Executing [zap2dahdi@macro-dial-one:9] GotoIf(“DAHDI/i1/4445556666-a”, “0?begin2”) in new stack
– Executing [zap2dahdi@macro-dial-one:10] Set(“DAHDI/i1/4445556666-a”, “THISDIAL=SIP/1399”) in new stack
– Executing [zap2dahdi@macro-dial-one:11] Return(“DAHDI/i1/4445556666-a”, “”) in new stack
– Executing [dstring@macro-dial-one:9] Set(“DAHDI/i1/4445556666-a”, “DSTRING=SIP/1399&”) in new stack
– Executing [dstring@macro-dial-one:10] Set(“DAHDI/i1/4445556666-a”, “ITER=2”) in new stack
– Executing [dstring@macro-dial-one:11] GotoIf(“DAHDI/i1/4445556666-a”, “0?begin”) in new stack
– Executing [dstring@macro-dial-one:12] Set(“DAHDI/i1/4445556666-a”, “DSTRING=SIP/1399”) in new stack
– Executing [dstring@macro-dial-one:13] Return(“DAHDI/i1/4445556666-a”, “”) in new stack
– Executing [s@macro-dial-one:27] GotoIf(“DAHDI/i1/4445556666-a”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:28] GotoIf(“DAHDI/i1/4445556666-a”, “1?skiptrace”) in new stack
– Goto (macro-dial-one,s,30)
– Executing [s@macro-dial-one:30] Set(“DAHDI/i1/4445556666-a”, “D_OPTIONS=tr”) in new stack
– Executing [s@macro-dial-one:31] ExecIf(“DAHDI/i1/4445556666-a”, “0?SIPAddHeader(Alert-Info: )”) in new stack
– Executing [s@macro-dial-one:32] ExecIf(“DAHDI/i1/4445556666-a”, “0?SIPAddHeader()”) in new stack
– Executing [s@macro-dial-one:33] ExecIf(“DAHDI/i1/4445556666-a”, “0?Set(CHANNEL(musicclass)=)”) in new stack
– Executing [s@macro-dial-one:34] GosubIf(“DAHDI/i1/4445556666-a”, “0?qwait,1”) in new stack
– Executing [s@macro-dial-one:35] Set(“DAHDI/i1/4445556666-a”, “__CWIGNORE=”) in new stack
– Executing [s@macro-dial-one:36] Set(“DAHDI/i1/4445556666-a”, “__KEEPCID=TRUE”) in new stack
– Executing [s@macro-dial-one:37] GotoIf(“DAHDI/i1/4445556666-a”, “0?usegoto,1”) in new stack
– Executing [s@macro-dial-one:38] GotoIf(“DAHDI/i1/4445556666-a”, “0?godial”) in new stack
– Executing [s@macro-dial-one:39] Set(“DAHDI/i1/4445556666-a”, “CONNECTEDLINE(name,i)=Wes - Test”) in new stack
– Executing [s@macro-dial-one:40] Set(“DAHDI/i1/4445556666-a”, “CONNECTEDLINE(num)=1399”) in new stack
– Executing [s@macro-dial-one:41] Set(“DAHDI/i1/4445556666-a”, “D_OPTIONS=trI”) in new stack
– Executing [s@macro-dial-one:42] Dial(“DAHDI/i1/4445556666-a”, “SIP/1399,trI”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
Audio is at 5060
Adding codec 0x4 (ulaw) to SDP
Adding codec 0x8 (alaw) to SDP
Adding codec 0x2 (gsm) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (no NAT) to 172.16.21.37:5060:
INVITE sip:1399@172.16.21.37:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 192.168.13.8:5060;branch=z9hG4bK5336d0fe
Max-Forwards: 70
From: “Anonymous” sip:Anonymous@anonymous.invalid;tag=as51ee470f
To: sip:1399@172.16.21.37:5060;transport=udp
Contact: sip:Anonymous@192.168.13.8:5060
Call-ID: 4470d49579ddaecd4eb62d2324342391@192.168.13.8:5060
CSeq: 102 INVITE
User-Agent: FPBX-2.9.0(1.8.7.1)
Date: Wed, 23 Nov 2011 20:48:00 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 281
v=0
o=root 179812376 179812376 IN IP4 192.168.13.8
s=Asterisk PBX 1.8.7.1
c=IN IP4 192.168.13.8
t=0 0
m=audio 14092 RTP/AVP 0 8 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
-- Called SIP/1399[/quote]