First just to put us on the same page.
Which ipbx cloud or a 'home/office' location; has the pbx gone 'Public' facing ; which incrediblepbx version / asterisk version / freepbx GUI version ??
So is that how your provider is sending the call on your DID - to clarify is that one of a or b or c below.
(it's easier to show in [c o d e]# <your text>[/c o d e] tags - but no spaces in 'code'. That is to stop the emojies turning up. )
You may need to examine the logs or examine a sip packet capture.
You can look at what the log says
Bash:
##For the last nominal 500 lines of the log use the following command,
## or omit the '-n 500' for just the last 10 lines
tail -n 500 /var/log/asterisk/full
Asterisk version 16.20
Freepbx Version 15.0.17.55
I looked up the SIP Debug On and the header is: (I Replaced numbers with X)
INVITE sip:
[email protected]:5160 SIP/2.0
Via: SIP/2.0/UDP 64.154.41.158:5060;branch=z9hG4bK57e34254;rport
Max-Forwards: 70
From: “+1402XXXXXXX” sip:
[email protected];tag=as20fb4412
To: sip:
[email protected]:5160
Contact: sip:
[email protected]:5060
Call-ID:
[email protected]:5060
CSeq: 102 INVITE
User-Agent: FPBX-2.11.0(11.6)
Date: Tue, 28 Sep 2021 22:45:59 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 314
Here is where I think it drops it I have removed the actual numbers and replaced them with X
– Executing [s@macro-user-callerid:53] Set(“SIP/ [2945726824-00000003”, “CDR(cnum)=”) in new stack
Here is the full code:
– Launched AGI Script /var/www/html/admin/modules/superfecta/agi/superfecta.agi
== Begin MixMonitor Recording SIP/ [2945726824-00000003
/var/www/html/admin/modules/superfecta/agi/superfecta.agi: Executing Scheme…
/var/www/html/admin/modules/superfecta/agi/superfecta.agi: Scheme Asked is: ALL
/var/www/html/admin/modules/superfecta/agi/superfecta.agi: The DID is: 480XXXXXXX
/var/www/html/admin/modules/superfecta/agi/superfecta.agi: The CNUM is: 402XXXXXXX
/var/www/html/admin/modules/superfecta/agi/superfecta.agi: The CNAME is: +1402XXXXXXX
/var/www/html/admin/modules/superfecta/agi/superfecta.agi:
/var/www/html/admin/modules/superfecta/agi/superfecta.agi: Starting scheme Default
/var/www/html/admin/modules/superfecta/agi/superfecta.agi: Converting result to UTF-8
/var/www/html/admin/modules/superfecta/agi/superfecta.agi: Setting caller id to: Lance M
/var/www/html/admin/modules/superfecta/agi/superfecta.agi: Setting channel variable SUPERFECTA_NEW: Lance M
/var/www/html/admin/modules/superfecta/agi/superfecta.agi: Setting channel variable SUPERFECTA_OLD: +1402XXXXXXX
/var/www/html/admin/modules/superfecta/agi/superfecta.agi: CID Determined to be: ‘Lance M’
/var/www/html/admin/modules/superfecta/agi/superfecta.agi: Attempting to set lookupcid
– <SIP/ [2945726824-00000003>AGI Script /var/www/html/admin/modules/superfecta/agi/superfecta.agi completed, returning 0
– Executing [480XXXXXXX@from-pstn:22] Set(“SIP/ [2945726824-00000003”, “CALLERID(name)=Lance M”) in new stack
– Executing [480XXXXXXX@from-pstn:23] NoOp(“SIP/ [2945726824-00000003”, “CallerID Entry Point”) in new stack
– Executing [480XXXXXXX@from-pstn:24] Set(“SIP/ [2945726824-00000003”, “__CRM_DIRECTION=INBOUND”) in new stack
– Executing [480XXXXXXX@from-pstn:25] Set(“SIP/ [2945726824-00000003”, “__CRM_SOURCE=402XXXXXXX”) in new stack
– Executing [480XXXXXXX@from-pstn:26] Set(“SIP/ [2945726824-00000003”, “__CRM_LINKEDID=1632863567.98”) in new stack
– Executing [480XXXXXXX@from-pstn:27] AGI(“SIP/ [2945726824-00000003”, “sangomacrm.agi,true”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
– <SIP/ [2945726824-00000003>AGI Script sangomacrm.agi completed, returning 0
– Executing [480XXXXXXX@from-pstn:28] ExecIf(“SIP/ [2945726824-00000003”, “1?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
– Executing [480XXXXXXX@from-pstn:29] Goto(“SIP/ [2945726824-00000003”, “ext-queues,300,1”) in new stack
– Goto (ext-queues,300,1)
– Executing [300@ext-queues:1] Macro(“SIP/ [2945726824-00000003”, “user-callerid,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/ [2945726824-00000003”, “TOUCH_MONITOR=1632863567.98”) in new stack
– Executing [s@macro-user-callerid:2] Set(“SIP/ [2945726824-00000003”, “CHANCONTEXT=”) in new stack
– Executing [s@macro-user-callerid:3] Set(“SIP/ [2945726824-00000003”, “CHANCONTEXT=”) in new stack
– Executing [s@macro-user-callerid:4] Set(“SIP/ [2945726824-00000003”, “CHANEXTENCONTEXT= [2945726824-00000003”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/ [2945726824-00000003”, “CHANEXTEN= [2945726824-00000003”) in new stack
– Executing [s@macro-user-callerid:6] Set(“SIP/ [2945726824-00000003”, “CALLERID(number)=”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/ [2945726824-00000003”, “AMPUSER=”) in new stack
– Executing [s@macro-user-callerid:8] Set(“SIP/ [2945726824-00000003”, “HOTDESCKCHAN= [2945726824-00000003”) in new stack
– Executing [s@macro-user-callerid:9] Set(“SIP/ [2945726824-00000003”, “HOTDESKEXTEN= [2945726824”) in new stack
– Executing [s@macro-user-callerid:10] Set(“SIP/ [2945726824-00000003”, “HOTDESKCALL=0”) in new stack
– Executing [s@macro-user-callerid:11] ExecIf(“SIP/ [2945726824-00000003”, “0?Set(HOTDESKCALL=1)”) in new stack
– Executing [s@macro-user-callerid:12] ExecIf(“SIP/ [2945726824-00000003”, “0?Set(CALLERID(name)=)”) in new stack
– Executing [s@macro-user-callerid:13] GotoIf(“SIP/ [2945726824-00000003”, “0?report”) in new stack
– Executing [s@macro-user-callerid:14] ExecIf(“SIP/ [2945726824-00000003”, “1?Set(REALCALLERIDNUM=)”) in new stack
– Executing [s@macro-user-callerid:15] Set(“SIP/ [2945726824-00000003”, “AMPUSER=”) in new stack
– Executing [s@macro-user-callerid:16] GotoIf(“SIP/ [2945726824-00000003”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:17] Set(“SIP/ [2945726824-00000003”, “AMPUSERCIDNAME=”) in new stack
– Executing [s@macro-user-callerid:18] ExecIf(“SIP/ [2945726824-00000003”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [s@macro-user-callerid:19] GotoIf(“SIP/ [2945726824-00000003”, “1?report”) in new stack
– Goto (macro-user-callerid,s,28)
– Executing [s@macro-user-callerid:28] NoOp(“SIP/ [2945726824-00000003”, “Macro Depth is 1”) in new stack
– Executing [s@macro-user-callerid:29] GotoIf(“SIP/ [2945726824-00000003”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,30)
– Executing [s@macro-user-callerid:30] GotoIf(“SIP/ [2945726824-00000003”, “0?continue”) in new stack
– Executing [s@macro-user-callerid:31] ExecIf(“SIP/ [2945726824-00000003”, “1?Set(__CALLEE_ACCOUNCODE=)”) in new stack
– Executing [s@macro-user-callerid:32] Set(“SIP/ [2945726824-00000003”, “__TTL=64”) in new stack
– Executing [s@macro-user-callerid:33] GotoIf(“SIP/ [2945726824-00000003”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,49)
– Executing [s@macro-user-callerid:49] Set(“SIP/ [2945726824-00000003”, “CALLERID(number)=”) in new stack
– Executing [s@macro-user-callerid:50] Set(“SIP/ [2945726824-00000003”, “CALLERID(name)=Lance M”) in new stack
– Executing [s@macro-user-callerid:51] GotoIf(“SIP/ [2945726824-00000003”, “0?cnum”) in new stack
– Executing [s@macro-user-callerid:52] Set(“SIP/ [2945726824-00000003”, “CDR(cnam)=Lance M”) in new stack
– Executing [s@macro-user-callerid:53] Set(“SIP/ [2945726824-00000003”, “CDR(cnum)=”) in new stack
– Executing [s@macro-user-callerid:54] Set(“SIP/ [2945726824-00000003”, “CHANNEL(language)=en_GB”) in new stack
– Executing [300@ext-queues:2] Progress(“SIP/ [2945726824-00000003”, “”) in new stack
– Executing [300@ext-queues:3] Macro(“SIP/ [2945726824-00000003”, “blkvm-set,reset”) in new stack