Adam Kayden
Member
- Joined
- Dec 28, 2013
- Messages
- 53
- Reaction score
- 3
Hi, i would like to remove the country code from an incoming local call. This is not a number in the States. So what and how should i do it?
Thanks
Adam
Thanks
Adam
[custom-inbound]
exten => s,1,ExecIf($[ "${CALLERID(num):0:1}" = "Country Code" & "${LEN(${CALLERID(num)})}" = "8" ]?Set(CALLERID(num)=${CALLERID(num):1}))
exten => s,n,Goto(from-trunk,s,1)
[custom-inbound]
exten => _./_65NXXXXXXX,1,Set(CALLERID(number)=${CALLERID(number):2})
exten => _./_NXXXXXXX,2,Goto(from-pstn,${EXTEN},1)
exten => _.,1,Goto(from-pstn,${EXTEN},1)
exten => s,1,Goto(from-pstn,${EXTEN},1)
VERBOSE[32267][C-000060b5] pbx.c: -- Executing [s@macro-user-callerid:29] Set("SIP/Trunk-8008-00000516", "CALLERID(number)=NXXXXXXX") in new stack
VERBOSE[32267][C-000060b5] pbx.c: -- Executing [s@macro-user-callerid:30] Set("SIP/Trunk-8008-00000516", "CALLERID(name)=65NXXXXXXX") in new stack
VERBOSE[32267][C-000060b5] pbx.c: -- Executing [s@macro-user-callerid:31] Set("SIP/Trunk-8008-00000516", "CDR(cnum)=NXXXXXXX") in new stack
VERBOSE[32267][C-000060b5] pbx.c: -- Executing [s@macro-user-callerid:32] Set("SIP/Trunk-8008-00000516", "CDR(cnam)=65NXXXXXXX") in new stack
[custom-inbound1]
exten => _X!,1,Set(CALLERID(num)=${CALLERID(num):3:10})
exten => _X!,n,Goto(from-trunk,${EXTEN},1)
VERBOSE[1372][C-000060e2] netsock2.c: == Using SIP RTP TOS bits 184
VERBOSE[1372][C-000060e2] netsock2.c: == Using SIP RTP CoS mark 5
NOTICE[1372][C-000060e2] chan_sip.c: Call from 'sip83090' (200.00.000.00:5060) to extension 'sip83090' rejected because extension not found in context 'custom-inbound1'.
Link up your team and customers Phone System Live Chat Video Conferencing
Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.
Check your inbox!
We’ve sent you an email. Click on the button in the email body to verify your email address – (if you can not find it, check your spam folder).
Upon verification you will be directed to the 3CX setup wizard.