CallerID Name to Alcatel PBX

I have been trying to get caller id names to be sent down an E1 link to our Alcatel 4400 PBX but I’m not having much luck.

I can receive names and numbers from the Alcatel no problem.

Our Alcatel engineer has checked and double checked the 4400 settings and he assures me that everything is fine on his end but when he runs a trace he does not see a name being sent from FreePBX, only a number.

I have tried setting intra-company route in the outbound trunk and also modified caller cid against individual extensions etc but it always just sends the number.

Can anyone advise please?

I am using the latest FreePBX 2.10 with all the latest updates.

Well without a trace of the call and also showing us what format you are setting the Caller ID field in FreePBX as not sure how you expect help.

Here are 2 traces. First one is a call from Alcatel to IP. CallerID/Name works fine both directions. The second is a call from IP to Alcatel which does not work. The IP phone receives the name/number from Alcatel and updates fine but the Alcatel only receives the number from FreePBX. the name sent up by

– Accepting call from ‘5007’ to ‘3088’ on channel 0/1, span 1
– Executing [3088@from-zaptel:1] Set(“DAHDI/i1/5007-1045”, “DID=3088”) in new stack
– Executing [3088@from-zaptel:2] Goto(“DAHDI/i1/5007-1045”, “s,1”) in new stack
– Goto (from-zaptel,s,1)
– Executing [s@from-zaptel:1] NoOp(“DAHDI/i1/5007-1045”, “Entering from-dahdi with DID == 3088”) in new stack
– Executing [s@from-zaptel:2] Ringing(“DAHDI/i1/5007-1045”, “”) in new stack
– Executing [s@from-zaptel:3] Set(“DAHDI/i1/5007-1045”, “DID=3088”) in new stack
– Executing [s@from-zaptel:4] NoOp(“DAHDI/i1/5007-1045”, “DID is now 3088”) in new stack
– Executing [s@from-zaptel:5] GotoIf(“DAHDI/i1/5007-1045”, “1?dahdiok:checkzap”) in new stack
– Goto (from-zaptel,s,9)
– Executing [s@from-zaptel:9] NoOp(“DAHDI/i1/5007-1045”, “Is a DAHDi Channel”) in new stack
– Executing [s@from-zaptel:10] Set(“DAHDI/i1/5007-1045”, “CHAN=i1/5007-1045”) in new stack
– Executing [s@from-zaptel:11] Set(“DAHDI/i1/5007-1045”, “CHAN=i1/5007”) in new stack
– Executing [s@from-zaptel:12] Macro(“DAHDI/i1/5007-1045”, “from-dahdi-i1/5007,3088,1”) in new stack
[2012-05-08 16:55:07] WARNING[16794]: app_macro.c:309 _macro_exec: No such context ‘macro-from-dahdi-i1/5007’ for macro ‘from-dahdi-i1/5007’
– Executing [s@from-zaptel:13] NoOp(“DAHDI/i1/5007-1045”, “Returned from Macro from-dahdi-i1/5007”) in new stack
– Executing [s@from-zaptel:14] Goto(“DAHDI/i1/5007-1045”, “from-pstn,3088,1”) in new stack
– Goto (from-pstn,3088,1)
– Executing [3088@from-pstn:1] Set(“DAHDI/i1/5007-1045”, “__FROM_DID=3088”) in new stack
– Executing [3088@from-pstn:2] Gosub(“DAHDI/i1/5007-1045”, “app-blacklist-check,s,1()”) in new stack
– Executing [s@app-blacklist-check:1] GotoIf(“DAHDI/i1/5007-1045”, “0?blacklisted”) in new stack
– Executing [s@app-blacklist-check:2] Set(“DAHDI/i1/5007-1045”, “CALLED_BLACKLIST=1”) in new stack
– Executing [s@app-blacklist-check:3] Return(“DAHDI/i1/5007-1045”, “”) in new stack
– Executing [3088@from-pstn:3] Set(“DAHDI/i1/5007-1045”, “CDR(did)=3088”) in new stack
– Executing [3088@from-pstn:4] ExecIf(“DAHDI/i1/5007-1045”, “0 ?Set(CALLERID(name)=5007)”) in new stack
– Executing [3088@from-pstn:5] Set(“DAHDI/i1/5007-1045”, “__CALLINGPRES_SV=allowed_passed_screen”) in new stack
– Executing [3088@from-pstn:6] Set(“DAHDI/i1/5007-1045”, “CALLERPRES()=allowed_not_screened”) in new stack
– Executing [3088@from-pstn:7] Goto(“DAHDI/i1/5007-1045”, “from-did-direct,3088,1”) in new stack
– Goto (from-did-direct,3088,1)
– Executing [3088@from-did-direct:1] Set(“DAHDI/i1/5007-1045”, “__RINGTIMER=20”) in new stack
– Executing [3088@from-did-direct:2] Macro(“DAHDI/i1/5007-1045”, “exten-vm,novm,3088,0,0,0”) in new stack
– Executing [s@macro-exten-vm:1] Macro(“DAHDI/i1/5007-1045”, “user-callerid,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“DAHDI/i1/5007-1045”, “AMPUSER=5007”) in new stack
– Executing [s@macro-user-callerid:2] GotoIf(“DAHDI/i1/5007-1045”, “0?report”) in new stack
– Executing [s@macro-user-callerid:3] ExecIf(“DAHDI/i1/5007-1045”, “1?Set(REALCALLERIDNUM=5007)”) in new stack
– Executing [s@macro-user-callerid:4] Set(“DAHDI/i1/5007-1045”, “AMPUSER=”) in new stack
– Executing [s@macro-user-callerid:5] Set(“DAHDI/i1/5007-1045”, “AMPUSERCIDNAME=”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“DAHDI/i1/5007-1045”, “1?report”) in new stack
– Goto (macro-user-callerid,s,13)
– Executing [s@macro-user-callerid:13] GotoIf(“DAHDI/i1/5007-1045”, “0?continue”) in new stack
– Executing [s@macro-user-callerid:14] Set(“DAHDI/i1/5007-1045”, “__TTL=64”) in new stack
– Executing [s@macro-user-callerid:15] GotoIf(“DAHDI/i1/5007-1045”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,26)
– Executing [s@macro-user-callerid:26] Set(“DAHDI/i1/5007-1045”, “CALLERID(number)=5007”) in new stack
– Executing [s@macro-user-callerid:27] Set(“DAHDI/i1/5007-1045”, “CALLERID(name)=IT12 5007”) in new stack
– Executing [s@macro-user-callerid:28] Set(“DAHDI/i1/5007-1045”, “CHANNEL(language)=en”) in new stack
– Executing [s@macro-exten-vm:2] Set(“DAHDI/i1/5007-1045”, “RingGroupMethod=none”) in new stack
– Executing [s@macro-exten-vm:3] Set(“DAHDI/i1/5007-1045”, “__EXTTOCALL=3088”) in new stack
– Executing [s@macro-exten-vm:4] Set(“DAHDI/i1/5007-1045”, “__PICKUPMARK=3088”) in new stack
– Executing [s@macro-exten-vm:5] Set(“DAHDI/i1/5007-1045”, “RT=”) in new stack
– Executing [s@macro-exten-vm:6] Gosub(“DAHDI/i1/5007-1045”, “sub-record-check,s,1(exten,3088,)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“DAHDI/i1/5007-1045”, “1?check”) in new stack
– Goto (sub-record-check,s,6)
– Executing [s@sub-record-check:6] Set(“DAHDI/i1/5007-1045”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:7] GotoIf(“DAHDI/i1/5007-1045”, “1?next”) in new stack
– Goto (sub-record-check,s,10)
– Executing [s@sub-record-check:10] ExecIf(“DAHDI/i1/5007-1045”, “0?Return()”) in new stack
– Executing [s@sub-record-check:11] GotoIf(“DAHDI/i1/5007-1045”, “0?exten,1”) in new stack
– Executing [s@sub-record-check:12] Set(“DAHDI/i1/5007-1045”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“DAHDI/i1/5007-1045”, “0?Set(__REC_POLICY_MODE=)”) in new stack
– Executing [s@sub-record-check:14] Set(“DAHDI/i1/5007-1045”, “NOW=1336492507”) in new stack
– Executing [s@sub-record-check:15] Set(“DAHDI/i1/5007-1045”, “__DAY=08”) in new stack
– Executing [s@sub-record-check:16] Set(“DAHDI/i1/5007-1045”, “__MONTH=05”) in new stack
– Executing [s@sub-record-check:17] Set(“DAHDI/i1/5007-1045”, “__YEAR=2012”) in new stack
– Executing [s@sub-record-check:18] Set(“DAHDI/i1/5007-1045”, “__TIMESTR=20120508-165507”) in new stack
– Executing [s@sub-record-check:19] Set(“DAHDI/i1/5007-1045”, “__FROMEXTEN=5007”) in new stack
– Executing [s@sub-record-check:20] Set(“DAHDI/i1/5007-1045”, “__CALLFILENAME=exten-3088-5007-20120508-165507-1336492507.16482”) in new stack
– Executing [s@sub-record-check:21] Goto(“DAHDI/i1/5007-1045”, “exten,1”) in new stack
– Goto (sub-record-check,exten,1)
– Executing [exten@sub-record-check:1] GotoIf(“DAHDI/i1/5007-1045”, “0?callee”) in new stack
– Executing [exten@sub-record-check:2] Set(“DAHDI/i1/5007-1045”, “__REC_POLICY_MODE=dontcare”) in new stack
– Executing [exten@sub-record-check:3] GotoIf(“DAHDI/i1/5007-1045”, “1?caller”) in new stack
– Goto (sub-record-check,exten,10)
– Executing [exten@sub-record-check:10] Set(“DAHDI/i1/5007-1045”, “REC_POLICY_MODE=”) in new stack
– Executing [exten@sub-record-check:11] GosubIf(“DAHDI/i1/5007-1045”, “0?record,1(exten,3088,5007)”) in new stack
– Executing [exten@sub-record-check:12] Return(“DAHDI/i1/5007-1045”, “”) in new stack
– Executing [s@macro-exten-vm:7] Macro(“DAHDI/i1/5007-1045”, “dial-one,trw,3088”) in new stack
– Executing [s@macro-dial-one:1] Set(“DAHDI/i1/5007-1045”, “DEXTEN=3088”) in new stack
– Executing [s@macro-dial-one:2] Set(“DAHDI/i1/5007-1045”, “DIALSTATUS_CW=”) in new stack
– Executing [s@macro-dial-one:3] GosubIf(“DAHDI/i1/5007-1045”, “0?screen,1()”) in new stack
– Executing [s@macro-dial-one:4] GosubIf(“DAHDI/i1/5007-1045”, “0?cf,1()”) in new stack
– Executing [s@macro-dial-one:5] GotoIf(“DAHDI/i1/5007-1045”, “1?skip1”) in new stack
– Goto (macro-dial-one,s,8)
– Executing [s@macro-dial-one:8] GotoIf(“DAHDI/i1/5007-1045”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:9] GotoIf(“DAHDI/i1/5007-1045”, “0?continue”) in new stack
– Executing [s@macro-dial-one:10] Set(“DAHDI/i1/5007-1045”, “EXTHASCW=ENABLED”) in new stack
– Executing [s@macro-dial-one:11] GotoIf(“DAHDI/i1/5007-1045”, “0?next1:cwinusebusy”) in new stack
– Goto (macro-dial-one,s,23)
– Executing [s@macro-dial-one:23] GotoIf(“DAHDI/i1/5007-1045”, “1?next3:continue”) in new stack
– Goto (macro-dial-one,s,24)
– Executing [s@macro-dial-one:24] ExecIf(“DAHDI/i1/5007-1045”, “0?Set(DIALSTATUS_CW=BUSY)”) in new stack
– Executing [s@macro-dial-one:25] GotoIf(“DAHDI/i1/5007-1045”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:26] GosubIf(“DAHDI/i1/5007-1045”, “1?dstring,1():dlocal,1()”) in new stack
– Executing [dstring@macro-dial-one:1] Set(“DAHDI/i1/5007-1045”, “DSTRING=”) in new stack
– Executing [dstring@macro-dial-one:2] Set(“DAHDI/i1/5007-1045”, “DEVICES=3088”) in new stack
– Executing [dstring@macro-dial-one:3] ExecIf(“DAHDI/i1/5007-1045”, “0?Return()”) in new stack
– Executing [dstring@macro-dial-one:4] ExecIf(“DAHDI/i1/5007-1045”, “0?Set(DEVICES=088)”) in new stack
– Executing [dstring@macro-dial-one:5] Set(“DAHDI/i1/5007-1045”, “LOOPCNT=1”) in new stack
– Executing [dstring@macro-dial-one:6] Set(“DAHDI/i1/5007-1045”, “ITER=1”) in new stack
– Executing [dstring@macro-dial-one:7] Set(“DAHDI/i1/5007-1045”, “THISDIAL=SIP/3088”) in new stack
– Executing [dstring@macro-dial-one:8] GosubIf(“DAHDI/i1/5007-1045”, “1?zap2dahdi,1()”) in new stack
– Executing [zap2dahdi@macro-dial-one:1] ExecIf(“DAHDI/i1/5007-1045”, “0?Return()”) in new stack
– Executing [zap2dahdi@macro-dial-one:2] Set(“DAHDI/i1/5007-1045”, “NEWDIAL=”) in new stack
– Executing [zap2dahdi@macro-dial-one:3] Set(“DAHDI/i1/5007-1045”, “LOOPCNT2=1”) in new stack
– Executing [zap2dahdi@macro-dial-one:4] Set(“DAHDI/i1/5007-1045”, “ITER2=1”) in new stack
– Executing [zap2dahdi@macro-dial-one:5] Set(“DAHDI/i1/5007-1045”, “THISPART2=SIP/3088”) in new stack
– Executing [zap2dahdi@macro-dial-one:6] ExecIf(“DAHDI/i1/5007-1045”, “0?Set(THISPART2=DAHDI/3088)”) in new stack
– Executing [zap2dahdi@macro-dial-one:7] Set(“DAHDI/i1/5007-1045”, “NEWDIAL=SIP/3088&”) in new stack
– Executing [zap2dahdi@macro-dial-one:8] Set(“DAHDI/i1/5007-1045”, “ITER2=2”) in new stack
– Executing [zap2dahdi@macro-dial-one:9] GotoIf(“DAHDI/i1/5007-1045”, “0?begin2”) in new stack
– Executing [zap2dahdi@macro-dial-one:10] Set(“DAHDI/i1/5007-1045”, “THISDIAL=SIP/3088”) in new stack
– Executing [zap2dahdi@macro-dial-one:11] Return(“DAHDI/i1/5007-1045”, “”) in new stack
– Executing [dstring@macro-dial-one:9] Set(“DAHDI/i1/5007-1045”, “DSTRING=SIP/3088&”) in new stack
– Executing [dstring@macro-dial-one:10] Set(“DAHDI/i1/5007-1045”, “ITER=2”) in new stack
– Executing [dstring@macro-dial-one:11] GotoIf(“DAHDI/i1/5007-1045”, “0?begin”) in new stack
– Executing [dstring@macro-dial-one:12] Set(“DAHDI/i1/5007-1045”, “DSTRING=SIP/3088”) in new stack
– Executing [dstring@macro-dial-one:13] Return(“DAHDI/i1/5007-1045”, “”) in new stack
– Executing [s@macro-dial-one:27] GotoIf(“DAHDI/i1/5007-1045”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:28] GotoIf(“DAHDI/i1/5007-1045”, “0?skiptrace”) in new stack
– Executing [s@macro-dial-one:29] GosubIf(“DAHDI/i1/5007-1045”, “1?ctset,1():ctclear,1()”) in new stack
– Executing [ctset@macro-dial-one:1] Set(“DAHDI/i1/5007-1045”, “DB(CALLTRACE/3088)=5007”) in new stack
– Executing [ctset@macro-dial-one:2] Return(“DAHDI/i1/5007-1045”, “”) in new stack
– Executing [s@macro-dial-one:30] Set(“DAHDI/i1/5007-1045”, “D_OPTIONS=trw”) in new stack
– Executing [s@macro-dial-one:31] ExecIf(“DAHDI/i1/5007-1045”, “0?SIPAddHeader(Alert-Info: )”) in new stack
– Executing [s@macro-dial-one:32] ExecIf(“DAHDI/i1/5007-1045”, “0?SIPAddHeader()”) in new stack
– Executing [s@macro-dial-one:33] ExecIf(“DAHDI/i1/5007-1045”, “0?Set(CHANNEL(musicclass)=)”) in new stack
– Executing [s@macro-dial-one:34] GosubIf(“DAHDI/i1/5007-1045”, “0?qwait,1()”) in new stack
– Executing [s@macro-dial-one:35] Set(“DAHDI/i1/5007-1045”, “__CWIGNORE=”) in new stack
– Executing [s@macro-dial-one:36] Set(“DAHDI/i1/5007-1045”, “__KEEPCID=TRUE”) in new stack
– Executing [s@macro-dial-one:37] GotoIf(“DAHDI/i1/5007-1045”, “0?usegoto,1”) in new stack
– Executing [s@macro-dial-one:38] GotoIf(“DAHDI/i1/5007-1045”, “1?godial”) in new stack
– Goto (macro-dial-one,s,42)
– Executing [s@macro-dial-one:42] Dial(“DAHDI/i1/5007-1045”, “SIP/3088,trw”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/3088
– SIP/3088-00000ff0 is ringing
– SIP/3088-00000ff0 answered DAHDI/i1/5007-1045
– Executing [h@macro-dial-one:1] Macro(“DAHDI/i1/5007-1045”, “hangupcall,”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“DAHDI/i1/5007-1045”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [s@macro-hangupcall:3] Hangup(“DAHDI/i1/5007-1045”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 3) exited non-zero on ‘DAHDI/i1/5007-1045’ in macro ‘hangupcall’
== Spawn extension (macro-dial-one, h, 1) exited non-zero on ‘DAHDI/i1/5007-1045’
== Spawn extension (macro-dial-one, s, 42) exited non-zero on ‘DAHDI/i1/5007-1045’ in macro ‘dial-one’
== Spawn extension (macro-exten-vm, s, 7) exited non-zero on ‘DAHDI/i1/5007-1045’ in macro ‘exten-vm’
== Spawn extension (from-did-direct, 3088, 2) exited non-zero on ‘DAHDI/i1/5007-1045’
– Hungup ‘DAHDI/i1/5007-1045’

2nd:
Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [5007@from-internal:1] Macro(“SIP/3088-00000ff1”, “user-callerid,LIMIT,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/3088-00000ff1”, “AMPUSER=3088”) in new stack
– Executing [s@macro-user-callerid:2] GotoIf(“SIP/3088-00000ff1”, “0?report”) in new stack
– Executing [s@macro-user-callerid:3] ExecIf(“SIP/3088-00000ff1”, “1?Set(REALCALLERIDNUM=3088)”) in new stack
– Executing [s@macro-user-callerid:4] Set(“SIP/3088-00000ff1”, “AMPUSER=3088”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/3088-00000ff1”, “AMPUSERCIDNAME=TEST”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/3088-00000ff1”, “0?report”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/3088-00000ff1”, “AMPUSERCID=3088”) in new stack
– Executing [s@macro-user-callerid:8] Set(“SIP/3088-00000ff1”, “CALLERID(all)=“TEST” <3088>”) in new stack
– Executing [s@macro-user-callerid:9] GotoIf(“SIP/3088-00000ff1”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:10] ExecIf(“SIP/3088-00000ff1”, “1?Set(GROUP(concurrency_limit)=3088)”) in new stack
– Executing [s@macro-user-callerid:11] GosubIf(“SIP/3088-00000ff1”, “7?sub-ccss,s,1(from-internal,5007)”) in new stack
– Executing [s@sub-ccss:1] ExecIf(“SIP/3088-00000ff1”, “0?Return()”) in new stack
– Executing [s@sub-ccss:2] Set(“SIP/3088-00000ff1”, “CCSS_SETUP=TRUE”) in new stack
– Executing [s@sub-ccss:3] GosubIf(“SIP/3088-00000ff1”, “0?monitor_config,1(from-internal,5007):monitor_default,1(from-internal,5007)”) in new stack
– Executing [monitor_default@sub-ccss:1] GotoIf(“SIP/3088-00000ff1”, “0?is_exten”) in new stack
– Executing [monitor_default@sub-ccss:2] StackPop(“SIP/3088-00000ff1”, “”) in new stack
– Executing [monitor_default@sub-ccss:3] Return(“SIP/3088-00000ff1”, “FALSE”) in new stack
– Executing [s@macro-user-callerid:12] ExecIf(“SIP/3088-00000ff1”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [s@macro-user-callerid:13] GotoIf(“SIP/3088-00000ff1”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,26)
– Executing [s@macro-user-callerid:26] Set(“SIP/3088-00000ff1”, “CALLERID(number)=3088”) in new stack
– Executing [s@macro-user-callerid:27] Set(“SIP/3088-00000ff1”, “CALLERID(name)=TEST”) in new stack
– Executing [s@macro-user-callerid:28] Set(“SIP/3088-00000ff1”, “CHANNEL(language)=en”) in new stack
– Executing [5007@from-internal:2] Set(“SIP/3088-00000ff1”, “INTRACOMPANYROUTE=YES”) in new stack
– Executing [5007@from-internal:3] Set(“SIP/3088-00000ff1”, “MOHCLASS=default”) in new stack
– Executing [5007@from-internal:4] Set(“SIP/3088-00000ff1”, “_NODEST=”) in new stack
– Executing [5007@from-internal:5] Gosub(“SIP/3088-00000ff1”, “sub-record-check,s,1(out,5007,)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“SIP/3088-00000ff1”, “1?check”) in new stack
– Goto (sub-record-check,s,6)
– Executing [s@sub-record-check:6] Set(“SIP/3088-00000ff1”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:7] GotoIf(“SIP/3088-00000ff1”, “1?next”) in new stack
– Goto (sub-record-check,s,10)
– Executing [s@sub-record-check:10] ExecIf(“SIP/3088-00000ff1”, “0?Return()”) in new stack
– Executing [s@sub-record-check:11] GotoIf(“SIP/3088-00000ff1”, “0?out,1”) in new stack
– Executing [s@sub-record-check:12] Set(“SIP/3088-00000ff1”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“SIP/3088-00000ff1”, “0?Set(__REC_POLICY_MODE=)”) in new stack
– Executing [s@sub-record-check:14] Set(“SIP/3088-00000ff1”, “NOW=1336492514”) in new stack
– Executing [s@sub-record-check:15] Set(“SIP/3088-00000ff1”, “__DAY=08”) in new stack
– Executing [s@sub-record-check:16] Set(“SIP/3088-00000ff1”, “__MONTH=05”) in new stack
– Executing [s@sub-record-check:17] Set(“SIP/3088-00000ff1”, “__YEAR=2012”) in new stack
– Executing [s@sub-record-check:18] Set(“SIP/3088-00000ff1”, “__TIMESTR=20120508-165514”) in new stack
– Executing [s@sub-record-check:19] Set(“SIP/3088-00000ff1”, “__FROMEXTEN=3088”) in new stack
– Executing [s@sub-record-check:20] Set(“SIP/3088-00000ff1”, “__CALLFILENAME=out-5007-3088-20120508-165514-1336492514.16484”) in new stack
– Executing [s@sub-record-check:21] Goto(“SIP/3088-00000ff1”, “out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [out@sub-record-check:1] ExecIf(“SIP/3088-00000ff1”, “1?Set(__REC_POLICY_MODE=dontcare)”) in new stack
– Executing [out@sub-record-check:2] GosubIf(“SIP/3088-00000ff1”, “0?record,1(exten,5007,3088)”) in new stack
– Executing [out@sub-record-check:3] Return(“SIP/3088-00000ff1”, “”) in new stack
– Executing [5007@from-internal:6] Macro(“SIP/3088-00000ff1”, “dialout-trunk,1,5007,”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/3088-00000ff1”, “DIAL_TRUNK=1”) in new stack
– Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/3088-00000ff1”, “0?sub-pincheck,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/3088-00000ff1”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“SIP/3088-00000ff1”, “DIAL_NUMBER=5007”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“SIP/3088-00000ff1”, “DIAL_TRUNK_OPTIONS=trw”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/3088-00000ff1”, “OUTBOUND_GROUP=OUT_1”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/3088-00000ff1”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/3088-00000ff1”, “1?skipoutcid”) in new stack
– Goto (macro-dialout-trunk,s,12)
– Executing [s@macro-dialout-trunk:12] GosubIf(“SIP/3088-00000ff1”, “0?sub-flp-1,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:13] Set(“SIP/3088-00000ff1”, “OUTNUM=5007”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“SIP/3088-00000ff1”, “custom=DAHDI/g0”) in new stack
– Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/3088-00000ff1”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)trw)”) in new stack
– Executing [s@macro-dialout-trunk:16] ExecIf(“SIP/3088-00000ff1”, “0?Set(DIAL_TRUNK_OPTIONS=trwM(confirm))”) in new stack
– Executing [s@macro-dialout-trunk:17] Macro(“SIP/3088-00000ff1”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] GotoIf(“SIP/3088-00000ff1”, “0?custom-freepbx-a2billing,5007,1:2”) in new stack
– Goto (macro-dialout-trunk-predial-hook,s,2)
– Executing [s@macro-dialout-trunk-predial-hook:2] MacroExit(“SIP/3088-00000ff1”, “”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/3088-00000ff1”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:19] ExecIf(“SIP/3088-00000ff1”, “1?Set(CONNECTEDLINE(num,i)=5007)”) in new stack
– Executing [s@macro-dialout-trunk:20] ExecIf(“SIP/3088-00000ff1”, “1?Set(CONNECTEDLINE(name,i)=CID:3088)”) in new stack
– Executing [s@macro-dialout-trunk:21] GotoIf(“SIP/3088-00000ff1”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:22] Dial(“SIP/3088-00000ff1”, “DAHDI/g0/5007,300,trw”) in new stack
– Requested transfer capability: 0x00 - SPEECH
– Called DAHDI/g0/5007
– DAHDI/i1/5007-1046 is proceeding passing it to SIP/3088-00000ff1
– DAHDI/i1/5007-1046 is ringing
– DAHDI/i1/5007-1046 is making progress passing it to SIP/3088-00000ff1
– DAHDI/i1/5007-1046 answered SIP/3088-00000ff1
– Span 1: Channel 0/1 got hangup request, cause 16
– Executing [h@macro-dialout-trunk:1] Macro(“SIP/3088-00000ff1”, “hangupcall,”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“SIP/3088-00000ff1”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [s@macro-hangupcall:3] Hangup(“SIP/3088-00000ff1”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 3) exited non-zero on ‘SIP/3088-00000ff1’ in macro ‘hangupcall’
== Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on ‘SIP/3088-00000ff1’
– Hungup ‘DAHDI/i1/5007-1046’
== Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on ‘SIP/3088-00000ff1’ in macro ‘dialout-trunk’
== Spawn extension (from-internal, 5007, 6) exited non-zero on ‘SIP/3088-00000ff1’

Just wondering if anyone has any comments on my query?

Thanks

Been working on this all day and I have now came to the following:

  1. CallerID/Number & Name successfully sent & received both ways when dialling from Alcatel to IP

  2. CallerID Name NOT sent when dialling Alcatel from IP. Only Alcatel ID is displayed on IP phone so the Alcatel is sending the ID back but only the number is shown on the Alcatel phone, it never updates with the name.

I have edited my second post with a better trace and found this on the call that does not work (Alcatel to IP)

Set(CONNECTEDLINE(name,i)=CID:3088)

It’s not sending the name, only the number

Another Update:

On digging in advanced settings I found a few options about CNAM and trunks. Disabling these makes no difference. In my last post the CID: line is for the SIP phone not down the trunk as I found this option as well.

So, final conclusion is that Asterisk is not sending the CallerID Name down the DAHDI trunk, only the number when a call is placed from a SIP phone to the trunk regardless of whether the trunk is intra-company or not.

Can anyone confirm or give me any support or advice please?

Thanks