Callforward external number

Hi all,

I hope somebody can help me.
I’m using PBX Version:15.0.17.9
PBX Distro:12.7.8-2008-1.sng7
Asterisk Version: 16.13.0
Yealink W52 handset

When i’m settingup a callforward the call will forward to local.
I want to forward the call to an external mobile phone.
How can i setup this?
I think this rule from the asterisk logfile is the problem.
5015 [2021-01-06 16:15:33] VERBOSE[19386][C-00000c5e] pbx.c: Executing [3163xxxxxxx@from-internal:6] Wait(“Local/3163xxxxxxx@from-internal-00000015;2”, “1”) in new stack

The full logfile is below.
Thanks for the help!

4889 [2021-01-06 16:15:26] ERROR[19370][C-00000c5e] pbx_functions.c: Function PJSIP_HEADER not registered
4890 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-exten-vm:18] Gosub(“SIP/TRUNK1-00000076”, “sub-record-check,s,1(exten,1002,dontcare)”) in new stack
4891 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@sub-record-check:1] GotoIf(“SIP/TRUNK1-00000076”, “11?initialized”) in new stack
4892 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx_builtins.c: Goto (sub-record-check,s,10)
4893 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@sub-record-check:10] NoOp(“SIP/TRUNK1-00000076”, “Recordings initialized”) in new stack
4894 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@sub-record-check:11] ExecIf(“SIP/TRUNK1-00000076”, “0?Set(ARG3=dontcare)”) in new stack
4895 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@sub-record-check:12] Set(“SIP/TRUNK1-00000076”, “REC_POLICY_MODE_SAVE=”) in new stack
4896 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@sub-record-check:13] ExecIf(“SIP/TRUNK1-00000076”, “0?Set(REC_STATUS=NO)”) in new stack
4897 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@sub-record-check:14] GotoIf(“SIP/TRUNK1-00000076”, “5?checkaction”) in new stack
4898 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx_builtins.c: Goto (sub-record-check,s,17)
4899 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@sub-record-check:17] GotoIf(“SIP/TRUNK1-00000076”, “1?sub-record-check,exten,1”) in new stack
4900 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx_builtins.c: Goto (sub-record-check,exten,1)
4901 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [exten@sub-record-check:1] NoOp(“SIP/TRUNK1-00000076”, “Exten Recording Check between 316xxxxxxxx and 1002”) in new stack
4902 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [exten@sub-record-check:2] Set(“SIP/TRUNK1-00000076”, “CALLTYPE=external”) in new stack
4903 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [exten@sub-record-check:3] ExecIf(“SIP/TRUNK1-00000076”, “0?Set(CALLTYPE=)”) in new stack
4904 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [exten@sub-record-check:4] Set(“SIP/TRUNK1-00000076”, “CALLEE=dontcare”) in new stack
4905 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [exten@sub-record-check:5] ExecIf(“SIP/TRUNK1-00000076”, “0?Set(CALLEE=dontcare)”) in new stack
4906 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [exten@sub-record-check:6] GotoIf(“SIP/TRUNK1-00000076”, “1?callee”) in new stack
4907 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx_builtins.c: Goto (sub-record-check,exten,11)
4908 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [exten@sub-record-check:11] Gosub(“SIP/TRUNK1-00000076”, “recordcheck,1(dontcare,external,1002)”) in new stack
4909 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [recordcheck@sub-record-check:1] NoOp(“SIP/TRUNK1-00000076”, “Starting recording check against dontcare”) in new stack
4910 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [recordcheck@sub-record-check:2] Goto(“SIP/TRUNK1-00000076”, “dontcare”) in new stack
4911 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx_builtins.c: Goto (sub-record-check,recordcheck,3)
4912 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [recordcheck@sub-record-check:3] Return(“SIP/TRUNK1-00000076”, “”) in new stack
4913 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [exten@sub-record-check:12] Return(“SIP/TRUNK1-00000076”, “”) in new stack
4914 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-exten-vm:19] GotoIf(“SIP/TRUNK1-00000076”, “1?macrodial”) in new stack
4915 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx_builtins.c: Goto (macro-exten-vm,s,25)
4916 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-exten-vm:25] GosubIf(“SIP/TRUNK1-00000076”, “0?clrheader,1()”) in new stack
4917 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-exten-vm:26] Macro(“SIP/TRUNK1-00000076”, “dial-one,HhTtr,1002”) in new stack
4918 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:1] Set(“SIP/TRUNK1-00000076”, “DEXTEN=1002”) in new stack
4919 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:2] Set(“SIP/TRUNK1-00000076”, “__CRM_SOURCE=316xxxxxxxx”) in new stack
4920 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:3] ExecIf(“SIP/TRUNK1-00000076”, “0?Set(__EXTTOCALL=1002)”) in new stack
4921 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:4] Set(“SIP/TRUNK1-00000076”, “DIALSTATUS_CW=”) in new stack
4922 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:5] GosubIf(“SIP/TRUNK1-00000076”, “0?screen,1()”) in new stack
4923 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:6] GosubIf(“SIP/TRUNK1-00000076”, “0?cf,1()”) in new stack
4924 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:7] GotoIf(“SIP/TRUNK1-00000076”, “1?skip1”) in new stack
4925 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx_builtins.c: Goto (macro-dial-one,s,10)
4926 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:10] GotoIf(“SIP/TRUNK1-00000076”, “0?nodial”) in new stack
4927 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:11] GotoIf(“SIP/TRUNK1-00000076”, “0?continue”) in new stack
4928 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:12] Set(“SIP/TRUNK1-00000076”, “EXTHASCW=ENABLED”) in new stack
4929 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:13] GotoIf(“SIP/TRUNK1-00000076”, “0?next1:cwinusebusy”) in new stack
4930 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx_builtins.c: Goto (macro-dial-one,s,25)
4931 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:25] GotoIf(“SIP/TRUNK1-00000076”, “0?next3:continue”) in new stack
4932 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx_builtins.c: Goto (macro-dial-one,s,27)
4933 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:27] GotoIf(“SIP/TRUNK1-00000076”, “0?nodial”) in new stack
4934 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:28] GosubIf(“SIP/TRUNK1-00000076”, “1?dstring,1():dlocal,1()”) in new stack
4935 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [dstring@macro-dial-one:1] Set(“SIP/TRUNK1-00000076”, “DSTRING=”) in new stack
4936 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [dstring@macro-dial-one:2] Set(“SIP/TRUNK1-00000076”, “DEVICES=1002”) in new stack
4937 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [dstring@macro-dial-one:3] ExecIf(“SIP/TRUNK1-00000076”, “0?Return()”) in new stack
4938 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [dstring@macro-dial-one:4] ExecIf(“SIP/TRUNK1-00000076”, “0?Set(DEVICES=002)”) in new stack
4939 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [dstring@macro-dial-one:5] Set(“SIP/TRUNK1-00000076”, “LOOPCNT=1”) in new stack
4940 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [dstring@macro-dial-one:6] Set(“SIP/TRUNK1-00000076”, “ITER=1”) in new stack
4941 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [dstring@macro-dial-one:7] Set(“SIP/TRUNK1-00000076”, “THISDIAL=SIP/1002”) in new stack
4942 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [dstring@macro-dial-one:8] GotoIf(“SIP/TRUNK1-00000076”, “1?docheck”) in new stack
4943 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx_builtins.c: Goto (macro-dial-one,dstring,14)
4944 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [dstring@macro-dial-one:14] GotoIf(“SIP/TRUNK1-00000076”, “0?skipset”) in new stack
4945 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [dstring@macro-dial-one:15] Set(“SIP/TRUNK1-00000076”, “DSTRING=SIP/1002&”) in new stack
4946 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [dstring@macro-dial-one:16] Set(“SIP/TRUNK1-00000076”, “ITER=2”) in new stack
4947 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [dstring@macro-dial-one:17] GotoIf(“SIP/TRUNK1-00000076”, “0?begin”) in new stack
4948 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [dstring@macro-dial-one:18] ExecIf(“SIP/TRUNK1-00000076”, “0?Return()”) in new stack
4949 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [dstring@macro-dial-one:19] Set(“SIP/TRUNK1-00000076”, “DSTRING=SIP/1002”) in new stack
4950 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [dstring@macro-dial-one:20] Return(“SIP/TRUNK1-00000076”, “”) in new stack
4951 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:29] GotoIf(“SIP/TRUNK1-00000076”, “0?nodial”) in new stack
4952 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:30] GotoIf(“SIP/TRUNK1-00000076”, “0?skiptrace”) in new stack
4953 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:31] GosubIf(“SIP/TRUNK1-00000076”, “1?ctset,1():ctclear,1()”) in new stack
4954 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [ctset@macro-dial-one:1] Set(“SIP/TRUNK1-00000076”, “DB(CALLTRACE/1002)=316xxxxxxxx”) in new stack
4955 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [ctset@macro-dial-one:2] Return(“SIP/TRUNK1-00000076”, “”) in new stack
4956 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:32] Set(“SIP/TRUNK1-00000076”, “D_OPTIONS=HhTtr”) in new stack
4957 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:33] GosubIf(“SIP/TRUNK1-00000076”, “0?func-set-sipheader,s,1(Alert-Info,)”) in new stack
4958 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:34] NoOp(“SIP/TRUNK1-00000076”, "Blind Transfer: , Attended Transfer: , User: , Alert Info: ") in new stack
4959 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:35] ExecIf(“SIP/TRUNK1-00000076”, “0?Set(ALERT_INFO=)”) in new stack
4960 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:36] ExecIf(“SIP/TRUNK1-00000076”, “0?Set(ALERT_INFO=)”) in new stack
4961 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:37] ExecIf(“SIP/TRUNK1-00000076”, “0?Set(ALERT_INFO=)”) in new stack
4962 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:38] ExecIf(“SIP/TRUNK1-00000076”, “0?Set(ALERT_INFO=Normal;volume=)”) in new stack
4963 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:39] ExecIf(“SIP/TRUNK1-00000076”, “0?Set(ALERT_INFO=Normal;volume=)”) in new stack
4964 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:40] GosubIf(“SIP/TRUNK1-00000076”, “0?func-set-sipheader,s,1(Alert-Info,)”) in new stack
4965 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:41] ExecIf(“SIP/TRUNK1-00000076”, “0?Set(CHANNEL(musicclass)=)”) in new stack
4966 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:42] GosubIf(“SIP/TRUNK1-00000076”, “0?qwait,1()”) in new stack
4967 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:43] Set(“SIP/TRUNK1-00000076”, “__CWIGNORE=”) in new stack
4968 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:44] Set(“SIP/TRUNK1-00000076”, “__KEEPCID=TRUE”) in new stack
4969 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:45] GotoIf(“SIP/TRUNK1-00000076”, “0?usegoto,1”) in new stack
4970 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:46] GotoIf(“SIP/TRUNK1-00000076”, “1?godial”) in new stack
4971 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx_builtins.c: Goto (macro-dial-one,s,51)
4972 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:51] Macro(“SIP/TRUNK1-00000076”, “dialout-one-predial-hook,”) in new stack
4973 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dialout-one-predial-hook:1] MacroExit(“SIP/TRUNK1-00000076”, “”) in new stack
4974 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:52] ExecIf(“SIP/TRUNK1-00000076”, “1?Set(D_OPTIONS=HhtrI)”) in new stack
4975 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:53] ExecIf(“SIP/TRUNK1-00000076”, “0?Set(CWRING=r(callwaiting)):Set(CWRING=)”) in new stack
4976 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:54] NoOp(“SIP/TRUNK1-00000076”, “”) in new stack
4977 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:55] ExecIf(“SIP/TRUNK1-00000076”, “0?Set(D_OPTIONS=HhtrIg)”) in new stack
4978 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:56] Dial(“SIP/TRUNK1-00000076”, “SIP/1002,HhtrIb(func-apply-sipheaders^s^1)”) in new stack
4979 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] netsock2.c: Using SIP RTP TOS bits 184
4980 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] netsock2.c: Using SIP RTP CoS mark 5
4981 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] app_stack.c: SIP/1002-00000077 Internal Gosub(func-apply-sipheaders,s,1) start
4982 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@func-apply-sipheaders:1] ExecIf(“SIP/1002-00000077”, “1?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
4983 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@func-apply-sipheaders:2] NoOp(“SIP/1002-00000077”, “Applying SIP Headers to channel SIP/1002-00000077”) in new stack
4984 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@func-apply-sipheaders:3] Set(“SIP/1002-00000077”, “TECH=SIP”) in new stack
4985 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@func-apply-sipheaders:4] Set(“SIP/1002-00000077”, “SIPHEADERKEYS=”) in new stack
4986 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@func-apply-sipheaders:5] While(“SIP/1002-00000077”, “0”) in new stack
4987 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] app_while.c: Jumping to priority 13
4988 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@func-apply-sipheaders:14] Return(“SIP/1002-00000077”, “”) in new stack
4989 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] app_stack.c: Spawn extension (from-internal, 1002, 1) exited non-zero on ‘SIP/1002-00000077’
4990 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] app_stack.c: SIP/1002-00000077 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
4991 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] app_dial.c: Called SIP/1002
4992 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] app_dial.c: Connected line update to SIP/TRUNK1-00000076 prevented.
4993 [2021-01-06 16:15:26] VERBOSE[2085][C-00000c5e] chan_sip.c: Got SIP response 302 “Moved Temporarily” back from 46.231.86.146:41540
4994 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] app_dial.c: Now forwarding SIP/TRUNK1-00000076 to ‘Local/003163xxxxxxx@from-internal’ (thanks to SIP/1002-00000077)
4995 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] app_dial.c: Not accepting call completion offers from call-forward recipient Local/3163xxxxxxx@from-internal-00000015;1
4996 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] app_stack.c: SIP/1002-00000077 Internal Gosub(crm-hangup,s,1) start
4997 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@crm-hangup:1] NoOp(“SIP/1002-00000077”, “Sending Hangup to CRM”) in new stack
4998 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@crm-hangup:2] NoOp(“SIP/1002-00000077”, “HANGUP CAUSE: 16”) in new stack
4999 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@crm-hangup:3] ExecIf(“SIP/1002-00000077”, “0?Set(__CRM_VOICEMAIL=)”) in new stack
5000 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@crm-hangup:4] NoOp(“SIP/1002-00000077”, “MASTER CHANNEL: 1609946126.161 = 1609946126.160”) in new stack
5001 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@crm-hangup:5] GotoIf(“SIP/1002-00000077”, “1?return”) in new stack
5002 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx_builtins.c: Goto (crm-hangup,s,8)
5003 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@crm-hangup:8] Return(“SIP/1002-00000077”, “”) in new stack
5004 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] app_stack.c: Spawn extension (from-internal, 1002, 1) exited non-zero on ‘SIP/1002-00000077’
5005 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] app_stack.c: SIP/1002-00000077 Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=
5006 [2021-01-06 16:15:26] VERBOSE[19386][C-00000c5e] pbx.c: Executing [3163xxxxxxx@from-internal:1] ResetCDR(“Local/3163xxxxxxx@from-internal-00000015;2”, “”) in new stack
5007 [2021-01-06 16:15:26] VERBOSE[19386][C-00000c5e] pbx.c: Executing [3163xxxxxxx@from-internal:2] NoCDR(“Local/3163xxxxxxx@from-internal-00000015;2”, “”) in new stack
5008 [2021-01-06 16:15:26] VERBOSE[19386][C-00000c5e] pbx.c: Executing [3163xxxxxxx@from-internal:3] Progress(“Local/3163xxxxxxx@from-internal-00000015;2”, “”) in new stack
5009 [2021-01-06 16:15:26] VERBOSE[19386][C-00000c5e] pbx.c: Executing [3163xxxxxxx@from-internal:4] Wait(“Local/3163xxxxxxx@from-internal-00000015;2”, “1”) in new stack
5010 [2021-01-06 16:15:26] VERBOSE[19370][C-00000c5e] app_dial.c: Local/3163xxxxxxx@from-internal-00000015;1 is making progress passing it to SIP/TRUNK1-00000076
5011 [2021-01-06 16:15:27] VERBOSE[19386][C-00000c5e] pbx.c: Executing [3163xxxxxxx@from-internal:5] Playback(“Local/3163xxxxxxx@from-internal-00000015;2”, “silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer”) in new stack
5012 [2021-01-06 16:15:27] VERBOSE[19386][C-00000c5e] file.c: <Local/3163xxxxxxx@from-internal-00000015;2> Playing ‘silence/1.ulaw’ (language ‘en’)
5013 [2021-01-06 16:15:28] VERBOSE[19386][C-00000c5e] file.c: <Local/3163xxxxxxx@from-internal-00000015;2> Playing ‘cannot-complete-as-dialed.ulaw’ (language ‘en’)
5014 [2021-01-06 16:15:31] VERBOSE[19386][C-00000c5e] file.c: <Local/3163xxxxxxx@from-internal-00000015;2> Playing ‘check-number-dial-again.ulaw’ (language ‘en’)
5015 [2021-01-06 16:15:33] VERBOSE[19386][C-00000c5e] pbx.c: Executing [3163xxxxxxx@from-internal:6] Wait(“Local/3163xxxxxxx@from-internal-00000015;2”, “1”) in new stack
5016 [2021-01-06 16:15:34] VERBOSE[19386][C-00000c5e] pbx.c: Executing [3163xxxxxxx@from-internal:7] Congestion(“Local/3163xxxxxxx@from-internal-00000015;2”, “20”) in new stack
5017 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] app_dial.c: Local/3163xxxxxxx@from-internal-00000015;1 is circuit-busy
5018 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] app_dial.c: Everyone is busy/congested at this time (1:0/1/0)
5019 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:57] ExecIf(“SIP/TRUNK1-00000076”, “0?MacroExit()”) in new stack
5020 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:58] ExecIf(“SIP/TRUNK1-00000076”, “0?Set(DIALSTATUS=)”) in new stack
5021 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:59] GosubIf(“SIP/TRUNK1-00000076”, “0?s-CONGESTION,1()”) in new stack
5022 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-dial-one:60] MacroExit(“SIP/TRUNK1-00000076”, “”) in new stack
5023 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-exten-vm:27] Set(“SIP/TRUNK1-00000076”, “SV_DIALSTATUS=CONGESTION”) in new stack
5024 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-exten-vm:28] GosubIf(“SIP/TRUNK1-00000076”, “0?docfu,1()”) in new stack
5025 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-exten-vm:29] GosubIf(“SIP/TRUNK1-00000076”, “0?docfb,1()”) in new stack
5026 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-exten-vm:30] Set(“SIP/TRUNK1-00000076”, “DIALSTATUS=CONGESTION”) in new stack
5027 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-exten-vm:31] ExecIf(“SIP/TRUNK1-00000076”, “0?MacroExit()”) in new stack
5028 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-exten-vm:32] GotoIf(“SIP/TRUNK1-00000076”, “1?s-CONGESTION,1”) in new stack
5029 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx_builtins.c: Goto (macro-exten-vm,s-CONGESTION,1)
5030 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s-CONGESTION@macro-exten-vm:1] GotoIf(“SIP/TRUNK1-00000076”, “0?exit,1”) in new stack
5031 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s-CONGESTION@macro-exten-vm:2] PlayTones(“SIP/TRUNK1-00000076”, “congestion”) in new stack
5032 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s-CONGESTION@macro-exten-vm:3] Congestion(“SIP/TRUNK1-00000076”, “10”) in new stack
5033 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] app_macro.c: Spawn extension (macro-exten-vm, s-CONGESTION, 3) exited non-zero on ‘SIP/TRUNK1-00000076’ in macro ‘exten-vm’
5034 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx.c: Spawn extension (ext-local, 1002, 3) exited non-zero on ‘SIP/TRUNK1-00000076’
5035 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx.c: Executing [h@ext-local:1] Macro(“SIP/TRUNK1-00000076”, “hangupcall,”) in new stack
5036 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-hangupcall:1] GotoIf(“SIP/TRUNK1-00000076”, “1?theend”) in new stack
5037 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx_builtins.c: Goto (macro-hangupcall,s,3)
5038 [2021-01-06 16:15:34] VERBOSE[19386][C-00000c5e] pbx.c: Spawn extension (from-internal, 3163xxxxxxx, 7) exited non-zero on ‘Local/3163xxxxxxx@from-internal-00000015;2’
5039 [2021-01-06 16:15:34] VERBOSE[19386][C-00000c5e] pbx.c: Executing [h@from-internal:1] Macro(“Local/3163xxxxxxx@from-internal-00000015;2”, “hangupcall”) in new stack
5040 [2021-01-06 16:15:34] VERBOSE[19386][C-00000c5e] pbx.c: Executing [s@macro-hangupcall:1] GotoIf(“Local/3163xxxxxxx@from-internal-00000015;2”, “1?theend”) in new stack
5041 [2021-01-06 16:15:34] VERBOSE[19386][C-00000c5e] pbx_builtins.c: Goto (macro-hangupcall,s,3)
5042 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-hangupcall:3] ExecIf(“SIP/TRUNK1-00000076”, “0?Set(CDR(recordingfile)=)”) in new stack
5043 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-hangupcall:4] NoOp(“SIP/TRUNK1-00000076”, " montior file= ") in new stack
5044 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-hangupcall:5] GotoIf(“SIP/TRUNK1-00000076”, “1?skipagi”) in new stack
5045 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx_builtins.c: Goto (macro-hangupcall,s,7)
5046 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@macro-hangupcall:7] Hangup(“SIP/TRUNK1-00000076”, “”) in new stack
5047 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] app_macro.c: Spawn extension (macro-hangupcall, s, 7) exited non-zero on ‘SIP/TRUNK1-00000076’ in macro ‘hangupcall’
5048 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx.c: Spawn extension (ext-local, h, 1) exited non-zero on ‘SIP/TRUNK1-00000076’
5049 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] app_stack.c: SIP/TRUNK1-00000076 Internal Gosub(crm-hangup,s,1) start
5050 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@crm-hangup:1] NoOp(“SIP/TRUNK1-00000076”, “Sending Hangup to CRM”) in new stack
5051 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@crm-hangup:2] NoOp(“SIP/TRUNK1-00000076”, “HANGUP CAUSE: 34”) in new stack
5052 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@crm-hangup:3] ExecIf(“SIP/TRUNK1-00000076”, “0?Set(__CRM_VOICEMAIL=)”) in new stack
5053 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@crm-hangup:4] NoOp(“SIP/TRUNK1-00000076”, “MASTER CHANNEL: 1609946126.160 = 1609946126.160”) in new stack
5054 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@crm-hangup:5] GotoIf(“SIP/TRUNK1-00000076”, “0?return”) in new stack
5055 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@crm-hangup:6] Set(“SIP/TRUNK1-00000076”, “__CRM_HANGUP=1”) in new stack
5056 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@crm-hangup:7] AGI(“SIP/TRUNK1-00000076”, “agi://127.0.0.1/sangomacrm.agi”) in new stack
5057 [2021-01-06 16:15:34] VERBOSE[19386][C-00000c5e] pbx.c: Executing [s@macro-hangupcall:3] ExecIf(“Local/3163xxxxxxx@from-internal-00000015;2”, “0?Set(CDR(recordingfile)=)”) in new stack
5058 [2021-01-06 16:15:34] VERBOSE[19386][C-00000c5e] pbx.c: Executing [s@macro-hangupcall:4] NoOp(“Local/3163xxxxxxx@from-internal-00000015;2”, " montior file= ") in new stack
5059 [2021-01-06 16:15:34] VERBOSE[19386][C-00000c5e] pbx.c: Executing [s@macro-hangupcall:5] GotoIf(“Local/3163xxxxxxx@from-internal-00000015;2”, “1?skipagi”) in new stack
5060 [2021-01-06 16:15:34] VERBOSE[19386][C-00000c5e] pbx_builtins.c: Goto (macro-hangupcall,s,7)
5061 [2021-01-06 16:15:34] VERBOSE[19386][C-00000c5e] pbx.c: Executing [s@macro-hangupcall:7] Hangup(“Local/3163xxxxxxx@from-internal-00000015;2”, “”) in new stack
5062 [2021-01-06 16:15:34] VERBOSE[19386][C-00000c5e] app_macro.c: Spawn extension (macro-hangupcall, s, 7) exited non-zero on ‘Local/3163xxxxxxx@from-internal-00000015;2’ in macro ‘hangupcall’
5063 [2021-01-06 16:15:34] VERBOSE[19386][C-00000c5e] pbx.c: Spawn extension (from-internal, h, 1) exited non-zero on ‘Local/3163xxxxxxx@from-internal-00000015;2’
5064 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] res_agi.c: <SIP/TRUNK1-00000076>AGI Script agi://127.0.0.1/sangomacrm.agi completed, returning 0
5065 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] pbx.c: Executing [s@crm-hangup:8] Return(“SIP/TRUNK1-00000076”, “”) in new stack
5066 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] app_stack.c: Spawn extension (ext-local, h, 1) exited non-zero on ‘SIP/TRUNK1-00000076’
5067 [2021-01-06 16:15:34] VERBOSE[19370][C-00000c5e] app_stack.c: SIP/TRUNK1-00000076 Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=

Use FMFM using the cell phone number and put a “#” at the end of it. Ensure you have an outbound route that will allow calls to this dial pattern.

https://wiki.freepbx.org/display/FPG/Follow+Me+User+Guide

Also make sure that when you compose the cell number you use all the digits you need to complete the call. With people moving and keeping their original cell number, not all calls will be “local”. I’ve had this one bite me once or twice.

I once heard something like “Tell me the person’s cell phone number and I’ll tell you where they lived, 10 years ago…”

Jay

1 Like

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