CID forwarding problem

Take a look at this, is a sample call I have made from extension 1001 to 1000 it was processed and returned to extension 1001 and after that routed through sohoo66 portal the other extensions .
everything works fine except the caller id. EVERY CALL that come out of my pbx shows up as 1000 .

there is no outbound caller ID


All the calles routed through my pbx show up on my app under the 1000 extension … and the phone number shows as name but only for the last call.

[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:1] NoOp(“SIP/Soho66_1000-00000000”, “MiscDest: 1001”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:2] Goto(“SIP/Soho66_1000-00000000”, “from-internal,1001,1”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx_builtins.c: Goto (from-internal,1001,1)
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:1] Macro(“SIP/Soho66_1000-00000000”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:1] Set(“SIP/Soho66_1000-00000000”, “TOUCH_MONITOR=1581891416.0”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:2] Set(“SIP/Soho66_1000-00000000”, “AMPUSER=1001184314”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:3] Set(“SIP/Soho66_1000-00000000”, “HOTDESCKCHAN=Soho66_1000-00000000”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:4] Set(“SIP/Soho66_1000-00000000”, “HOTDESKEXTEN=Soho66_1000”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:5] Set(“SIP/Soho66_1000-00000000”, “HOTDESKCALL=0”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:6] ExecIf(“SIP/Soho66_1000-00000000”, “0?Set(HOTDESKCALL=1)”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:7] ExecIf(“SIP/Soho66_1000-00000000”, “0?Set(CALLERID(name)=)”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:8] GotoIf(“SIP/Soho66_1000-00000000”, “0?report”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:9] ExecIf(“SIP/Soho66_1000-00000000”, “1?Set(REALCALLERIDNUM=1001184314)”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:10] Set(“SIP/Soho66_1000-00000000”, “AMPUSER=”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:11] GotoIf(“SIP/Soho66_1000-00000000”, “0?limit”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:12] Set(“SIP/Soho66_1000-00000000”, “AMPUSERCIDNAME=”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:13] ExecIf(“SIP/Soho66_1000-00000000”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:14] GotoIf(“SIP/Soho66_1000-00000000”, “1?report”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx_builtins.c: Goto (macro-user-callerid,s,22)
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:22] NoOp(“SIP/Soho66_1000-00000000”, “Macro Depth is 1”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:23] GotoIf(“SIP/Soho66_1000-00000000”, “1?report2:macroerror”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx_builtins.c: Goto (macro-user-callerid,s,24)
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:24] GotoIf(“SIP/Soho66_1000-00000000”, “1?continue”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx_builtins.c: Goto (macro-user-callerid,s,43)
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:43] Set(“SIP/Soho66_1000-00000000”, “CALLERID(number)=1001184314”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:44] Set(“SIP/Soho66_1000-00000000”, “CALLERID(name)=1001184314”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:45] GotoIf(“SIP/Soho66_1000-00000000”, “0?cnum”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:46] Set(“SIP/Soho66_1000-00000000”, “CDR(cnam)=1001184314”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:47] Set(“SIP/Soho66_1000-00000000”, “CDR(cnum)=1001184314”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:48] Set(“SIP/Soho66_1000-00000000”, “CHANNEL(language)=en_GB”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:2] Gosub(“SIP/Soho66_1000-00000000”, “sub-record-check,s,1(out,1001,dontcare)”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:1] GotoIf(“SIP/Soho66_1000-00000000”, “10?initialized”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx_builtins.c: Goto (sub-record-check,s,10)
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:10] NoOp(“SIP/Soho66_1000-00000000”, “Recordings initialized”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:11] ExecIf(“SIP/Soho66_1000-00000000”, “0?Set(ARG3=dontcare)”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:12] Set(“SIP/Soho66_1000-00000000”, “REC_POLICY_MODE_SAVE=”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:13] ExecIf(“SIP/Soho66_1000-00000000”, “0?Set(REC_STATUS=NO)”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:14] GotoIf(“SIP/Soho66_1000-00000000”, “3?checkaction”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx_builtins.c: Goto (sub-record-check,s,17)
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:17] GotoIf(“SIP/Soho66_1000-00000000”, “1?sub-record-check,out,1”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx_builtins.c: Goto (sub-record-check,out,1)
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:1] NoOp(“SIP/Soho66_1000-00000000”, “Outbound Recording Check from 1001184314 to 1001”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:2] Set(“SIP/Soho66_1000-00000000”, “RECMODE=”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:3] ExecIf(“SIP/Soho66_1000-00000000”, “1?Goto(routewins)”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx_builtins.c: Goto (sub-record-check,out,7)
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:7] Gosub(“SIP/Soho66_1000-00000000”, “recordcheck,1(dontcare,out,1001)”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:1] NoOp(“SIP/Soho66_1000-00000000”, “Starting recording check against dontcare”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:2] Goto(“SIP/Soho66_1000-00000000”, “dontcare”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx_builtins.c: Goto (sub-record-check,recordcheck,3)
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:3] Return(“SIP/Soho66_1000-00000000”, “”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:8] Return(“SIP/Soho66_1000-00000000”, “”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:3] ExecIf(“SIP/Soho66_1000-00000000”, “0 ?Set(CDR(accountcode)=)”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:4] Set(“SIP/Soho66_1000-00000000”, “INTRACOMPANYROUTE=YES”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:5] Set(“SIP/Soho66_1000-00000000”, “MOHCLASS=none”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:6] Set(“SIP/Soho66_1000-00000000”, “_NODEST=”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:7] Macro(“SIP/Soho66_1000-00000000”, “dialout-trunk,1,1001,off”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:1] Set(“SIP/Soho66_1000-00000000”, “DIAL_TRUNK=1”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:2] ExecIf(“SIP/Soho66_1000-00000000”, “1?Set(DIAL_OPTIONS=Hhtr)”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:3] GosubIf(“SIP/Soho66_1000-00000000”, “0?sub-pincheck,s,1()”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:4] ExecIf(“SIP/Soho66_1000-00000000”, “0?Set(CALLERID(num)=)”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:5] GotoIf(“SIP/Soho66_1000-00000000”, “0?disabletrunk,1”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:6] Set(“SIP/Soho66_1000-00000000”, “DIAL_NUMBER=1001”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:7] Set(“SIP/Soho66_1000-00000000”, “DIAL_TRUNK_OPTIONS=Hhtr”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:8] Set(“SIP/Soho66_1000-00000000”, “OUTBOUND_GROUP=OUT_1”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:9] Set(“SIP/Soho66_1000-00000000”, “DIAL_TRUNK_OPTIONS=T”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:10] GotoIf(“SIP/Soho66_1000-00000000”, “0?nomax”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:11] GotoIf(“SIP/Soho66_1000-00000000”, “0?chanfull”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:12] GotoIf(“SIP/Soho66_1000-00000000”, “1?skipoutcid”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx_builtins.c: Goto (macro-dialout-trunk,s,14)
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:14] GosubIf(“SIP/Soho66_1000-00000000”, “0?sub-flp-1,s,1()”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:15] Set(“SIP/Soho66_1000-00000000”, “OUTNUM=1001”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:16] Set(“SIP/Soho66_1000-00000000”, “custom=SIP/Soho66_1000”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:17] ExecIf(“SIP/Soho66_1000-00000000”, “1?Set(DIAL_TRUNK_OPTIONS=M(setmusic^none)T)”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:18] ExecIf(“SIP/Soho66_1000-00000000”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^none)TM(confirm))”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:19] Macro(“SIP/Soho66_1000-00000000”, “dialout-trunk-predial-hook,”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:1] MacroExit(“SIP/Soho66_1000-00000000”, “”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:20] GotoIf(“SIP/Soho66_1000-00000000”, “1?skipcrm”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx_builtins.c: Goto (macro-dialout-trunk,s,26)
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:26] NoOp(“SIP/Soho66_1000-00000000”, “CRM Finished”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:27] GotoIf(“SIP/Soho66_1000-00000000”, “0?bypass,1”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:28] ExecIf(“SIP/Soho66_1000-00000000”, “0?Set(CONNECTEDLINE(num,i)=1001)”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:29] ExecIf(“SIP/Soho66_1000-00000000”, “0?Set(CONNECTEDLINE(name,i)=“1001184314)”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:30] ExecIf(“SIP/Soho66_1000-00000000”, “0?Set(CONNECTEDLINE(name,i)=”(Hidden)1001184314)”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:31] GotoIf(“SIP/Soho66_1000-00000000”, “0?customtrunk”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:32] ExecIf(“SIP/Soho66_1000-00000000”, “1?Set(DIAL_TRUNK_OPTIONS=M(setmusic^none))”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:33] Dial(“SIP/Soho66_1000-00000000”, “SIP/Soho66_1000/1001,300,M(setmusic^none)b(func-apply-sipheaders^s^1,(1))”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] netsock2.c: Using SIP RTP TOS bits 184
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] netsock2.c: Using SIP RTP CoS mark 5
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] app_stack.c: SIP/Soho66_1000-00000001 Internal Gosub(func-apply-sipheaders,s,1(1)) start
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:1] ExecIf(“SIP/Soho66_1000-00000001”, “1?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:2] NoOp(“SIP/Soho66_1000-00000001”, “Applying SIP Headers to channel SIP/Soho66_1000-00000001”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:3] Set(“SIP/Soho66_1000-00000001”, “TECH=SIP”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:4] Set(“SIP/Soho66_1000-00000001”, “SIPHEADERKEYS=”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:5] While(“SIP/Soho66_1000-00000001”, “0”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] app_while.c: Jumping to priority 13
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] pbx.c: Executing [[email protected]:14] Return(“SIP/Soho66_1000-00000001”, “”) in new stack
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] app_stack.c: Spawn extension (from-trunk, 1001, 1) exited non-zero on ‘SIP/Soho66_1000-00000001’
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] app_stack.c: SIP/Soho66_1000-00000001 Internal Gosub(func-apply-sipheaders,s,1(1)) complete GOSUB_RETVAL=
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] app_dial.c: Called SIP/Soho66_1000/1001
[2020-02-16 22:17:28] VERBOSE[21259][C-00000001] app_dial.c: SIP/Soho66_1000-00000001 is ringing
[2020-02-16 22:17:29] VERBOSE[21259][C-00000001] app_dial.c: SIP/Soho66_1000-00000001 answered SIP/Soho66_1000-00000000!

Post a human readable log? pastebin?

I’m sorry, I don’t understand what you mean .

https://wiki.freepbx.org/display/SUP/Providing+Great+Debug#ProvidingGreatDebug-AsteriskLogs-PartII

I’m sorry I don’t seem to be able to follow that tutorial

Where are you stuck?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.