Caller ID Problem

Hi All,

I have an asterisk server (Trixbox) connected to another Asterisk server (Standard Asterisk). The problem is that in trixbox I set the CallerID to be a number such as "0755930164" (which is valid in my part of the world). I then make a call to the standard aterisk server using IAX and do a: NoOp(CID: ${CALLERID(all)})

To see what the CallerID of the call is and it comes back with this:

-- Executing [123@group-secure:1] NoOp("IAX2/09502452-144", "CID: "" <09502452>") in new stack

Which is the USERNAME of the call, not the CID.

I’ve looked at the Debug from the asterisk server that the call is being passed to and it looks ok, it has the CALLING NUMBER as 0755930164 which is correct, its just that when I use the ${CALLERID(all)} variable I don’t get that number, I get the Username…?

This looks like it might be because of CALLING PRESNTN being set to “0” , which i’m guessing means that the calling presentation from one side or another is being set to “No, don’t allow”. Is this correct? I can’t find any information on CALLING PRESNTN , if so, how do I allow it over IAX and on what side?

VERSION : 2
CALLED NUMBER : 123
CODEC_PREFS : (gsm)
CALLING NUMBER : 0755930164
CALLING PRESNTN : 0
CALLING TYPEOFN : 0
CALLING TRANSIT : 0
CALLING NAME : Chris
LANGUAGE : en
USERNAME : 09502452
FORMAT : 2
CAPABILITY : 63490
ADSICPE : 2
DATE TIME : 2008-03-12 10:42:34

Thanks.
Chris.

Anyone at all have any ideas?

Hi

Is the problem Trix -> Asterisk and Asterisk -> Trix or just Trix to Asterisk

If its just when calling from Trix you need ot look at the verbose output and see what it sets the CLI as, As Im sure its sets it for each call.

Ian

I figured it out!

Ok, here goes. In the main Asterisk Install we use Asterisk Realtime, the standard settings were set so that “callerid” would be “blank” or varchar of “” , this caused Asterisk to override all calls going to the box using IAX with a callerID of nothing, which it then replaced when asked for the callerID with the username.

The fix was to set the callerID field in the IAX section of the MySQL database to “NULL” instead of just a blank string.

Hope this helps someone else in the future.

Chris