Question

Asterisk - Caller ID not displayed.

Asked by: JAY186

I'm building an Asterisk-based VoIP system, and require to ensure that all outbound calls have CallerID (known as CLI here in the UK) information associated with them.

I'm testing this system by using Zoiper on my PC to make calls to my standard mobile phone, and vice versa.

I'm encountering a very strange issue with CallerID. If I set a CallerID in the softphone, regardless of what it's set to (even the word "gibberish"), when the call leaves the Asterisk box, it has my test VoIP number's proper CLI set as specified in extensions.conf, and this appears on my mobile.

But if I clear the CallerID field in Zoiper, then when the call leaves the Asterisk box no CLI is set, the call on my mobile comes up as from "Unknown" and I've verified with the upstream telephone provider who's taking the trunk from Asterisk that no CLI is appearing on those calls.

I'm using IAX to test, but we expect the system to also accept SIP when it's complete.

My IAX user:

[01133326209]
type=friend
host=dynamic
secret=********
context=01133326209

The "to mobiles" (07) outbound part of the user's entry in extensions.conf, from their [01133326209] context:

exten => _07.,1,Set(CALLERID(number)=01133326209)
exten => _07.,2,Set(CALLERID(ANI)=01133326209)
exten => _07.,n,Dial(SIP/toSwitchConnectVoIP/44${EXTEN:1})

When I tail the logs, I can see the Set command being carried out. Nevertheless the call arrives at destination with "unknown" as its CLI.

[2009-04-01 18:40:11] VERBOSE[2652] logger.c: [2009-04-01 18:40:11] -- Accepting AUTHENTICATED call from xxx.xxx.121.65:
> requested format = gsm,
> requested prefs = (),
> actual format = gsm,
> host prefs = (),
> priority = mine
[2009-04-01 18:40:11] DEBUG[9932] pbx.c: Launching 'Set'
[2009-04-01 18:40:11] VERBOSE[9932] logger.c: [2009-04-01 18:40:11] -- Executing [07xxxxxx503@01133326209:1] Set("IAX2/01133326209-7330", "CALLERID(number)=01133326209") in new stack
[2009-04-01 18:40:11] DEBUG[9932] pbx.c: Launching 'Set'
[2009-04-01 18:40:11] VERBOSE[9932] logger.c: [2009-04-01 18:40:11] -- Executing [07xxxxxx503@01133326209:2] Set("IAX2/01133326209-7330", "CALLERID(ANI)=01133326209") in new stack
[2009-04-01 18:40:11] DEBUG[9932] pbx.c: Launching 'Dial'
[2009-04-01 18:40:11] VERBOSE[9932] logger.c: [2009-04-01 18:40:11] -- Executing [07xxxxxx503@01133326209:3] Dial("IAX2/01133326209-7330", "SIP/toSwitchConnectVoIP/447xxxxxx503") in new stack

So this far it all appears to be working correctly, the number and ANI are aparently set - but the upstream doesn't see them, and they don't appear at the destination.

The next few lines in the log show:

[2009-04-01 18:40:11] DEBUG[9932] chan_sip.c: Asked to create a SIP channel with formats: 0x2 (gsm)
[2009-04-01 18:40:11] DEBUG[9932] chan_sip.c: Allocating new SIP dialog for (No Call-ID) - INVITE (With RTP)

Does the "No Call-ID" entry indicate that the CLI has been lost by this point?

Is there a reliable way of forcing the CallerID, regardless of whether the connecting softphone has anything set or not?

Edit: I've searched extensively for information on this problem, studied the O'Reilly book on Asterisk, and read the info on setting CallerID on voip-info, but nothing I've tried so far has solved this problem.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-04-07 at 07:20:55ID24302058
Tags

asterisk voip callerid

Topics

Voice Over IP

,

IP Telephony

,

Asterisk Open Source Telephony

Participating Experts
2
Points
0
Comments
25

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Nokia E51 and Asterisk VoIP
    Hi, I have a Nokia E51 and I am trying to get it to connect to my Asterisk VoIP Server. I have looked around on the internet to see how others have connected it, however I cannot get it to work. It seems no matter what I try I get the a SIP registration error 401 followed b...
  2. Nokia E51, VoIP, Asterisk
    Hi, Outbound calls are working perfect on VoIP. However, incoming calls do not work. When an incoming call from a outside line are made to the VOIP number. The callers phone ring. The nokia E51 receiver of the call, shows the incoming call on the display, however when a ...
  3. Asterisk syntax for blocking caller id
    Hello, In a scenario where I am setting the caller id for peers in my sip.conf file, is there a way to make asterisk not send the caller id information, if it receives *67 for example in the number dialed ? To clarify, this scenario is if I am NOT using caller id settings...
  4. asterisk calling problem
    Hello experts, I have installed an asterisk in a debian lenny distro. and now i am trying to place calls between two sip phones(i am using xLite) installed on two different pc(note these PCs are in a LAN while server is situated remotely) i have made two configuration files...
  5. sipdroid + asterisk
    When connecting to an asterisk box using sipdroid on an android based phone, you can make calls but not receive. The phone gets UNREACHABLE after just seconds. If you use pbxes.org then you are able to make and receive calls without problem. What's the difference between th...
  6. Asterisk Caller ID
    I want to get asterisk caller ID to client comuper c drive that call is receiving.Please give me the Idea for that. SIP Call --> Text Document named number.txt

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: xuserx2000Posted on 2009-04-07 at 10:55:55ID: 24090037

If you put the callerid in the iax.conf/sip.conf file..it will override whatever is in the softphone.  If you hard code the callerid in the dialplan just before Dial()..it will override whatever is in the softphone and whatever is configured in sip.conf/iax.conf.

example...

exten => _NXXNXXXXXX,1,Set(CALLERID(name)=YOURNAME)
exten => _NXXNXXXXXX,n,Set(CALLERID(num)=5555555555)
exten => _NXXNXXXXXX,n,Dial(zap/r2/${EXTEN},60)

You can also set it all in one line...
exten => _NXXNXXXXXX,1,Set(CALLERID(all)=YOURNAME <5555555555>)

 

by: xuserx2000Posted on 2009-04-07 at 10:57:10ID: 24090047

ps:...the way to do the ANI is to use the "a" argument.
exten => _NXXNXXXXXX,n,Set(CALLERID(num)=5555555555,a)

 

by: JAY186Posted on 2009-04-08 at 03:12:42ID: 24095379

We've already tried all the various ways of setting the CallerID, with and without name, all in one line vs seperate lines - nothing works, the result is always that if the softphone has anything at all in the callerid field, then Asterisk correctly sets the callerid as defined in extensions.conf, however if the softphone has no callerid set, then Asterisk seems to completely ignore the callerid settings, even though we can see the lines being processed in the log.

We've also tried setting the callerid in iax.conf, however the effect of that was that regardless of whether anything was set in the softphone, no callerid was set by Asterisk.

None of this behaviour is documented anywhere, hence wondering if anyone else has seen similar problems, or if there's some kind of deep-level problem with either our Asterisk install, or the machine it's running on.

 

by: xuserx2000Posted on 2009-04-08 at 07:58:52ID: 24097971

What does your zapata.conf file look like ?


hidecallerid=yes | no
restrictcid=yes | no

 

by: xuserx2000Posted on 2009-04-08 at 07:59:57ID: 24097989

oh ,never mind that is for pri channels... you are using a sip provider correct ?

 

by: JAY186Posted on 2009-04-08 at 09:21:31ID: 24099037

The non-comment bits of zapata.conf look like this:

[trunkgroups]

[channels]
context=default
switchtype=national
signalling=fxo_ls
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
rxgain=0.0
txgain=0.0
group=1
callgroup=1
pickupgroup=1

immediate=no


Yes, we're going out via a SIP trunk, and can both make and receive calls between the voip system and standard mobile phones.

Here's the Asterisk log for a call made with "gibberish" in the CallerID field of Zoiper, this call arrived at my mobile phone with the correct 01133326209 CLI shown::

[2009-04-08 17:06:34] DEBUG[2647] frame.c: Could not find preferred codec - Returning zero codec
[2009-04-08 17:06:34] DEBUG[2647] chan_iax2.c: We don't do requested format gsm, falling back to peer capability 1550
[2009-04-08 17:06:34] VERBOSE[2647] logger.c: [2009-04-08 17:06:34]     -- Accepting AUTHENTICATED call from 83.136.121.65:
       > requested format = gsm,
       > requested prefs = (),
       > actual format = gsm,
       > host prefs = (),
       > priority = mine
[2009-04-08 17:06:34] DEBUG[24625] pbx.c: Launching 'Set'
[2009-04-08 17:06:34] VERBOSE[24625] logger.c: [2009-04-08 17:06:34]     -- Executing [07xxxxxx503@01133326209:1] Set("IAX2/01133326209-6339", "CALLERID(num)=01133326209") in new stack
[2009-04-08 17:06:34] DEBUG[24625] pbx.c: Launching 'Set'
[2009-04-08 17:06:34] VERBOSE[24625] logger.c: [2009-04-08 17:06:34]     -- Executing [07xxxxxx503@01133326209:2] Set("IAX2/01133326209-6339", "CALLERID(ANI)=01133326209") in new stack
[2009-04-08 17:06:34] DEBUG[24625] pbx.c: Launching 'Dial'
[2009-04-08 17:06:34] VERBOSE[24625] logger.c: [2009-04-08 17:06:34]     -- Executing [07xxxxxx503@01133326209:3] Dial("IAX2/01133326209-6339", "SIP/toSwitchConnectVoIP/447783967503") in new stack
[2009-04-08 17:06:34] DEBUG[24625] chan_sip.c: Asked to create a SIP channel with formats: 0x2 (gsm)
[2009-04-08 17:06:34] DEBUG[24625] chan_sip.c: Allocating new SIP dialog for (No Call-ID) - INVITE (With RTP)
[2009-04-08 17:06:34] DEBUG[24625] chan_sip.c: Setting NAT on RTP to Off
[2009-04-08 17:06:34] DEBUG[24625] chan_sip.c: *** Our native formats are 0x3f0008 (alaw|jpeg|png|h261|h263|h263p|h264)
[2009-04-08 17:06:34] DEBUG[24625] chan_sip.c: *** Joint capabilities are 0x0 (nothing)
[2009-04-08 17:06:34] DEBUG[24625] chan_sip.c: *** Our capabilities are 0x3f1fff (g723|gsm|ulaw|alaw|g726|adpcm|slin|lpc10|g729|speex|ilbc|g726aal2|g722|jpeg|png|h261|h263|h263p|h264)
[2009-04-08 17:06:34] DEBUG[24625] chan_sip.c: *** AST_CODEC_CHOOSE formats are 0x8 (alaw)
[2009-04-08 17:06:34] DEBUG[24625] chan_sip.c: *** Our preferred formats from the incoming channel are 0x2 (gsm)
[2009-04-08 17:06:34] DEBUG[24625] chan_sip.c: This channel will not be able to handle video.
[2009-04-08 17:06:34] DEBUG[24625] rtp.c: Channel 'IAX2/01133326209-6339' has no RTP, not doing anything
[2009-04-08 17:06:34] DEBUG[24625] chan_sip.c: Outgoing Call for 447783967503
[2009-04-08 17:06:34] DEBUG[24625] chan_sip.c: Updating call counter for outgoing call
[2009-04-08 17:06:34] DEBUG[24625] chan_sip.c: Our T38 capability (0), joint T38 capability (0)
[2009-04-08 17:06:34] DEBUG[24625] chan_sip.c: ** Our capability: 0x3f08fe (gsm|ulaw|alaw|g726|adpcm|slin|lpc10|g726aal2|jpeg|png|h261|h263|h263p|h264) Video flag: False
[2009-04-08 17:06:34] DEBUG[24625] chan_sip.c: ** Our prefcodec: 0x2 (gsm)
[2009-04-08 17:06:34] DEBUG[24625] chan_sip.c: This call needs video offers, but there's no video support enabled!
[2009-04-08 17:06:34] DEBUG[24625] chan_sip.c: -- Done with adding codecs to SDP
[2009-04-08 17:06:34] DEBUG[24625] channel.c: Internal timing is disabled (option_internal_timing=0 chan->timingfd=-1)
[2009-04-08 17:06:34] DEBUG[24625] chan_sip.c: Done building SDP. Settling with this capability: 0x3f08fe (gsm|ulaw|alaw|g726|adpcm|slin|lpc10|g726aal2|jpeg|png|h261|h263|h263p|h264)
[2009-04-08 17:06:34] VERBOSE[24625] logger.c: [2009-04-08 17:06:34]     -- Called toSwitchConnectVoIP/447783967503
[2009-04-08 17:06:34] DEBUG[24625] channel.c: Set channel SIP/toSwitchConnectVoIP-08374570 to read format slin
[2009-04-08 17:06:34] DEBUG[24625] channel.c: Set channel IAX2/01133326209-6339 to write format slin
[2009-04-08 17:06:34] DEBUG[24625] channel.c: Set channel IAX2/01133326209-6339 to read format slin
[2009-04-08 17:06:34] DEBUG[24625] channel.c: Set channel SIP/toSwitchConnectVoIP-08374570 to write format slin


And here's the log for a call made with the CallerID field of Zoiper blanked, this call arrived with no CallerID, the mobile showed "Private" and the people provding the trunk to the PSTN saw no CLI:

[2009-04-08 17:16:22] DEBUG[2645] frame.c: Could not find preferred codec - Returning zero codec
[2009-04-08 17:16:22] DEBUG[2645] chan_iax2.c: We don't do requested format gsm, falling back to peer capability 1550
[2009-04-08 17:16:22] VERBOSE[2645] logger.c: [2009-04-08 17:16:22]     -- Accepting AUTHENTICATED call from 83.136.121.65:
       > requested format = gsm,
       > requested prefs = (),
       > actual format = gsm,
       > host prefs = (),
       > priority = mine
[2009-04-08 17:16:22] DEBUG[24858] pbx.c: Launching 'Set'
[2009-04-08 17:16:22] VERBOSE[24858] logger.c: [2009-04-08 17:16:22]     -- Executing [07xxxxxx503@01133326209:1] Set("IAX2/01133326209-11936", "CALLERID(num)=01133326209") in new stack
[2009-04-08 17:16:22] DEBUG[24858] pbx.c: Launching 'Set'
[2009-04-08 17:16:22] VERBOSE[24858] logger.c: [2009-04-08 17:16:22]     -- Executing [07xxxxxx503@01133326209:2] Set("IAX2/01133326209-11936", "CALLERID(ANI)=01133326209") in new stack
[2009-04-08 17:16:22] DEBUG[24858] pbx.c: Launching 'Dial'
[2009-04-08 17:16:22] VERBOSE[24858] logger.c: [2009-04-08 17:16:22]     -- Executing [07xxxxxx503@01133326209:3] Dial("IAX2/01133326209-11936", "SIP/toSwitchConnectVoIP/447783967503") in new stack
[2009-04-08 17:16:22] DEBUG[24858] chan_sip.c: Asked to create a SIP channel with formats: 0x2 (gsm)
[2009-04-08 17:16:22] DEBUG[24858] chan_sip.c: Allocating new SIP dialog for (No Call-ID) - INVITE (With RTP)
[2009-04-08 17:16:22] DEBUG[24858] chan_sip.c: Setting NAT on RTP to Off
[2009-04-08 17:16:22] DEBUG[24858] chan_sip.c: *** Our native formats are 0x3f0008 (alaw|jpeg|png|h261|h263|h263p|h264)
[2009-04-08 17:16:22] DEBUG[24858] chan_sip.c: *** Joint capabilities are 0x0 (nothing)
[2009-04-08 17:16:22] DEBUG[24858] chan_sip.c: *** Our capabilities are 0x3f1fff (g723|gsm|ulaw|alaw|g726|adpcm|slin|lpc10|g729|speex|ilbc|g726aal2|g722|jpeg|png|h261|h263|h263p|h264)
[2009-04-08 17:16:22] DEBUG[24858] chan_sip.c: *** AST_CODEC_CHOOSE formats are 0x8 (alaw)
[2009-04-08 17:16:22] DEBUG[24858] chan_sip.c: *** Our preferred formats from the incoming channel are 0x2 (gsm)
[2009-04-08 17:16:22] DEBUG[24858] chan_sip.c: This channel will not be able to handle video.
[2009-04-08 17:16:22] DEBUG[24858] rtp.c: Channel 'IAX2/01133326209-11936' has no RTP, not doing anything
[2009-04-08 17:16:22] DEBUG[24858] chan_sip.c: Outgoing Call for 447xxxxxx503
[2009-04-08 17:16:22] DEBUG[24858] chan_sip.c: Updating call counter for outgoing call
[2009-04-08 17:16:22] DEBUG[24858] chan_sip.c: Our T38 capability (0), joint T38 capability (0)
[2009-04-08 17:16:22] DEBUG[24858] chan_sip.c: ** Our capability: 0x3f08fe (gsm|ulaw|alaw|g726|adpcm|slin|lpc10|g726aal2|jpeg|png|h261|h263|h263p|h264) Video flag: False
[2009-04-08 17:16:22] DEBUG[24858] chan_sip.c: ** Our prefcodec: 0x2 (gsm)
[2009-04-08 17:16:22] DEBUG[24858] chan_sip.c: This call needs video offers, but there's no video support enabled!
[2009-04-08 17:16:22] DEBUG[24858] chan_sip.c: -- Done with adding codecs to SDP
[2009-04-08 17:16:22] DEBUG[24858] channel.c: Internal timing is disabled (option_internal_timing=0 chan->timingfd=-1)
[2009-04-08 17:16:22] DEBUG[24858] chan_sip.c: Done building SDP. Settling with this capability: 0x3f08fe (gsm|ulaw|alaw|g726|adpcm|slin|lpc10|g726aal2|jpeg|png|h261|h263|h263p|h264)
[2009-04-08 17:16:22] VERBOSE[24858] logger.c: [2009-04-08 17:16:22]     -- Called toSwitchConnectVoIP/447xxxxxx503
[2009-04-08 17:16:22] DEBUG[24858] channel.c: Set channel SIP/toSwitchConnectVoIP-08374570 to read format slin
[2009-04-08 17:16:22] DEBUG[24858] channel.c: Set channel IAX2/01133326209-11936 to write format slin
[2009-04-08 17:16:22] DEBUG[24858] channel.c: Set channel IAX2/01133326209-11936 to read format slin
[2009-04-08 17:16:22] DEBUG[24858] channel.c: Set channel SIP/toSwitchConnectVoIP-08374570 to write format slin

 

by: xuserx2000Posted on 2009-04-08 at 09:27:38ID: 24099115

Please post, sip.conf  -  remove any authentication and IP information before posting..

Looking for the settings for SIP/toSwitchConnectVoIP.

 

by: JAY186Posted on 2009-04-08 at 09:35:22ID: 24099198

The relevant section of sip.conf, minus commented out lines:

[toSwitchConnectVoIP]
type=peer
host=xxx.xxx.45.109
port=5066
canreinvite=no
dtmfmode=rfc2833
allow=all
deny=0.0.0.0/0
permit=xxx.xxx.45.109/32
insecure=very ;invite,port

 

by: xuserx2000Posted on 2009-04-08 at 09:56:21ID: 24099432

I'm wondering if the cellphone provider is blocking the name...

Setting the callerid in the dialplan should force it to use whatever is there..... so i'm leaning toward provider setup issue, or the cell phone provider is blocking the name portion. Have you tried calling a land line with the call id name set ?

 

by: JAY186Posted on 2009-04-08 at 10:13:57ID: 24099642

I don't think it'd down to the cellphone people (O2 in this case), as when there is something in the Zoiper Callerid field, then the CLI comes through just fine.

Also, Switch Telecom (who are providing the trunk via which Asterisk connects to the outside world) are also saying that the calls which come through to my mobile with no CLI also have no CLI when they pass through Switch's network.

The really weird thing is how the presence or absense of data in the callerid field of the softphone appears to somehow control this behaviour.

Put *anything at all* in the number field in Zoiper, whether it's a phone numbr or just random text (as I've said, I've tested this by typing the word "gibberish" into that field), and then the extensions.conf settings work, and the correct CLI (not the nonsense in the Zoiper fields) is provided when the call goes out.  But if the callerid number field in Zoiper is left blank, then even though Asterisk's log shows the "Set" commands being carried out, no CLI is set on the line, and both Switch and O2 see the calls with no CLI.

As the upstream trunk needs the CLIs to be able to accurately bill the calls, we absolutely have to get this working properly - it's driving me up the wall at the moment!

 

by: xuserx2000Posted on 2009-04-08 at 10:39:43ID: 24099866

For now I would hard code the CLI in the zoiper until we can get this sorted.  This is strange issue that i've never encountered before...

Hardcoding callerid(name) in the dialplan should always override whatever the soft/hard phone sends.

 

by: xuserx2000Posted on 2009-04-08 at 10:40:14ID: 24099867

I guess I should have already asked you this...but what version of Asterisk are you running ?

 

by: JAY186Posted on 2009-04-09 at 03:15:47ID: 24105702

Version: Asterisk 1.4.19.2

Unfortunately we don't control all the phones that will be connecting, when the service launches end users will make calls and be billed for them, so it's absolutely vital that every caller's CLI is set by Asterisk.

(sorry, meant to post this last night, but evidently forgot to click submit!)

 

by: xuserx2000Posted on 2009-04-10 at 07:57:05ID: 24116026

I'm at a loss on this one....it should "just work"...especially if it already works from the softphone.


I've never had to do this myself, but i'm pretty sure it is possible to run a sniffer such as wireshark to examine the SIP header for callerid information.

I would try that, so that you can verify if the server is actually sending the information, and whether or not the carrier just isn't recieving it for whatever reason...

 

by: xuserx2000Posted on 2009-04-10 at 07:58:13ID: 24116046

....normally I would never suggest this.... but when all else fails, maybe it's time to upgrade to the latest version.

 

by: xuserx2000Posted on 2009-04-11 at 22:03:06ID: 24124610

Ok...I think this might be it....

Have you tried using the........ fromuser="yourcallername" <5555555555>  
......in the peer entry ?

[your_provider]
type=peer
fromuser="Yourname" <5555555555>
canreinvite=no
insecure=very
host= xxx.xxx.xxx.xxx
disallow=all
allow=ulaw
qualify=yes
nat=no

http://www.voip-info.org/wiki-Asterisk+config+sip.conf
fromuser = <from_ID> : Specify user to put in "from" instead of $CALLERID(number) (overrides the callerid) when placing calls _to_ peer (another SIP proxy). Valid only for type=peer.

 

by: JAY186Posted on 2009-04-14 at 07:33:23ID: 24138658

Won't that mean that all outbound calls will end up with the same CLI?  We need a different CallerID per connected user, this isn't an internal PBX type setup, it'll have general users, each with their own CallerID.  Will have a bash though and see what happens.  Ta!

 

by: xuserx2000Posted on 2009-04-14 at 10:10:14ID: 24140366

True.... I think that would send the same clid for every call sent to the trunk.

I'm not sure if there is a way to programatically change it within the dialplan though...

 

by: xuserx2000Posted on 2009-04-14 at 10:25:25ID: 24140530

I wonder if adding sip headers could fix this.

I found this on the wiki.

Sip header manipulation examples
These examples may be beneficial when interfacing Asterisk with a Nortel SST or an Acme Packet SBC.

Sending RFC-3323 compliant privacy headers in sip calls

ftp://ftp.rfc-editor.org/in-notes/rfc3323.txt

  exten => _9.,1,SIPAddHeader(P-Asserted-Identity: <sip:+1${CALLERID(num)}\;user=phone>)  
  exten => _9.,n,SIPAddHeader(Privacy: user\; header\; session)  
  exten => _9.,n.SetCallerPres(prohib_not_screened) ; this might not be needed --- needs further testing
  exten => _9.,n,Set(CALLERID(num)=)  
  exten => _9.,n,Set(CALLERID(name)=Anonymous)  
  exten => _9.,n,Dial(SIP/+${EXTEN:1}@sipcarrier)  
  exten => _9.,n,Hangup()

Sending RFC-3325 compliant privacy headers in sip calls

ftp://ftp.rfc-editor.org/in-notes/rfc3325.txt

  exten => _9.,1,SIPAddHeader(P-Preferred-Identity: <sip:+1${CALLERID(num)}\;user=phone>)  
  exten => _9.,n,SIPAddHeader(Privacy: id)  
  exten => _9.,n.SetCallerPres(prohib_not_screened) ; this might not be needed --- needs further testing
  exten => _9.,n,Set(CALLERID(num)=)
  exten => _9.,n,Set(CALLERID(name)=Anonymous)
  exten => _9.,n,Dial(SIP/+${EXTEN:1}@sipcarrier)
  exten => _9.,n,Hangup()

 

by: JAY186Posted on 2009-04-14 at 11:19:27ID: 24141014

I tried it like this:

exten => _07.,1,SIPAddHeader(P-Asserted-Identity: <sip:+1${CALLERID(num)};user=phone>)
exten => _07.,n,SIPAddHeader(Privacy: user\; header\; session)
exten => _07.,n,SetCallerPres(prohib_not_screened)
exten => _07.,n,Set(CALLERID(num)=01133326209)
exten => _07.,n,Set(CALLERID(name)=01133326209)
exten => _07.,n,Dial(SIP/toSwitchConnectVoIP/44${EXTEN:1})

Still no joy - now the CallerID doesn't come through at all, regardless of what is in the CallerID box on the softphone.

We're going to try upgrading to 1.4.24.1 (from 1.4.19.2), and see if that changes anything.

 

by: JAY186Posted on 2009-04-14 at 11:54:48ID: 24141302

Update: Tried upgrading to 1.4.24.2, still no joy - behaviour is exactly the same.

 

by: JAY186Posted on 2009-04-15 at 09:31:46ID: 24149962

More info:

This problem only appears to affect Zoiper softphones.  One of our engineers has tried a variety of other softphones, and not encountered the same problem, so whatever is clearing the CallerID (and over-riding the setting of it in Asterisk) is specific to Zoiper.  Anyone got any theories on this?

 

by: JAY186Posted on 2009-04-16 at 08:49:52ID: 24159149

Update:  The problem is with the server running Asterisk.

Having exhausted all possible configuration options, we installed Asterisk on a different system (SuSE based), duplicated the config exactly (bar the local IP in sip.conf) and repeated the tests.  Asterisk performed correctly with the dial plan (extensions.conf) settings over-riding whatever was set in the softphone, or adding them if the softphone was cleared of CallerID.

The server in question will now be replaced by a SuSE-based system.

The configuration which displayed the problem was Asterisk 1.4.x running on CentOS.

Thanks to everyone for looking at the issue with us, it was a very bizarre and seemingly one-off fault.

 

by: JAY186Posted on 2009-04-17 at 10:49:48ID: 24170255

Final update: Found the underlying cause.  Asterisk on this system wasn't running as root.  Switching it to run as root solved the problem.

Speculation / guesswork, but it appears to work something like this:

If the calling device sets a CallerID, then the variable space is initialised, and hence Asterisk can update it.  But if the calling device didnt set the field at all (which is presumably what Zoiper does when no CallerID is set) then the field isnt initialised in the first place and hence theres nothing for Asterisk to set, and as its not root it doesnt have permission to create the variable space.

 

by: bjblackmorePosted on 2009-10-01 at 09:17:22ID: 25470259

Hi,
I'm having exactly the same issue, Asterisk on PBX in a Flash isn't displaying caller ID on my home land line or mobile. Please can you tell me how you set Asterisk to run as root?

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...