YMartin
asked on
Asterisk/Elastix/FreePBX - replace caller ID using custom context
I followed the instructions here: article in order to remove the incoming Caller ID. The manager wants the calls to be unknown so that annoying customers are not avoided by the staff. They have 2 lines which are answered differently so they want to know which line was called in on. They are using an FXO card.
I edited /etc/asterisk/extensions_c ustom.conf to include:
ls.conf to:
After amportal restart incoming calls are terminated with the following:
Any help fixing the context so it does not fail but rather replaces the caller ID as it should would be appreciated.
Thanks.
I edited /etc/asterisk/extensions_c
[from-zaptel-callline1]
exten => _X!.1.Set(CALLERID(num)=Line1)
exten => _X!,n,Goto(from-zaptel,${EXTEN},1)
[from-zaptel-callline2]
exten => _X!.1.Set(CALLERID(num)=Line2)
exten => _X!,n,Goto(from-zaptel,${EXTEN},1)
I then set the context in /etc/asterisk/dahdi-channe;;; line="2 OPVXA1200/12/1 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-zaptel-callline1
channel => 2
callerid=
group=
context=default
;;; line="3 OPVXA1200/12/2 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-zaptel-callline2
channel => 3
callerid=
group=
context=default
After amportal restart incoming calls are terminated with the following:
-- Starting simple switch on 'DAHDI/4-1'
== Starting DAHDI/4-1 at from-zaptel-callline1,s,1 failed so falling back to exten 's'
== Starting DAHDI/4-1 at from-zaptel-callline1,s,1 still failed so falling back to context 'default'
-- Executing [s@default:1] Playback("DAHDI/4-1", "vm-goodbye") in new stack
Any help fixing the context so it does not fail but rather replaces the caller ID as it should would be appreciated.
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That was one problem. the other problem was periods instead of commas and also since I didn't need to match numbers changed it to this and its now working. This code now blocks the caller ID name and number. That's how they want it.
exten => s,1,Set(CALLERID(all)=Line 1 <0>)
exten => s,n,Goto(from-zaptel,${EXT EN},1)
exten => s,1,Set(CALLERID(all)=Line
exten => s,n,Goto(from-zaptel,${EXT
ASKER
I think that is the problem. I have tried to schedule a test of the new code with the client but he has been too busy. I will let you know but I am pretty sure this was the problem.