Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Asterisk/Elastix/FreePBX - replace caller ID using custom context

Posted on 2014-10-20
3
971 Views
Last Modified: 2014-11-07
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_custom.conf to include:
[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)

Open in new window

I then set the context in /etc/asterisk/dahdi-channels.conf to:
;;; 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

Open in new window


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

Open in new window


Any help fixing the context so it does not fail but rather replaces the caller ID as it should would be appreciated.

Thanks.
0
Comment
Question by:YMartin
  • 2
3 Comments
 
LVL 15

Accepted Solution

by:
Phonebuff earned 500 total points
ID: 40394521
Well,

      You set set the Verbosity and debug levels up in your CLI, but I suspect that your "=Line1" is not a valid numeric variable and that your use of it as the right side of your assignment is incorrect.    

http://www.voip-info.org/wiki/view/Setting+Callerid

     ============
0
 
LVL 1

Author Comment

by:YMartin
ID: 40406502
Thanks Phonebuff,

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.
0
 
LVL 1

Author Comment

by:YMartin
ID: 40429277
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)=Line1 <0>)
exten => s,n,Goto(from-zaptel,${EXTEN},1)
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Implementing Avaya's One-X portal is pretty painless, until you want to deploy this to the Android and iPhone clients when these clients are outside of your network. The clients will also work within your local network. Here is our experience and so…
If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question