CallerID issue

Home » Asterisk Users » CallerID issue
Asterisk Users 7 Comments

Hi List,

I am making outgoing call from asterisk to GSM network with the help of VoIP
trunk(SIP trunk) then I am not geting any caller ID at destination end. Is
this the asterisk issue or VoIP trunk issue?
Is this is due to asterisk then how we solve it? I already user
Set(CALLERID(num)=XXXXXXXXXXX) in dialplan.

7 thoughts on - CallerID issue

  • Sounds like a case for either (1) a different context per originating
    extension (or maybe, per group of originating extensions which all happen to
    obey the same mathematical formula for determining outside callerID from
    inside extension number); (2) an AGI script, accessing a database which
    links internal extensions to external numbers; or (3) rethinking your
    internal extension numbering scheme so there is a consistent mapping from
    internal to external numbers, thus allowing you to do it all mathematically.

  • On Fri, Jun 10, 2011 at 6:27 AM, A J Stiles
    wrote:

    Why do programmers try to make solution so elegant when an entries for
    each phone in sip.conf is all that is needed.

    No need for mathematical formulas, AGIs, and databases. You just took
    over engineering to a new level.

    Thanks,
    Steve T

  • Steve Totaro wrote:

    The problem with that solution is that station to station calls will
    show the same CID and not the extension.

    I’d vote for the database approach.

    Doug

  • Well, to be fair, that’s what most people usually start out trying to do —
    make it all line up neatly, with each department having numbers in a certain
    range (1xx for management, 2xx for purchasing, 3xx for sales, 4xx for IT,
    5xx for shop floor, 8xx as short codes for direct access to selected external
    numbers from phones that shouldn’t normally have access to outside lines but
    still need to call certain numbers occasionally) and so forth.

    But then, once you have invested considerable time and effort devising a plan
    for allocating numbers, somebody “On High” inevitably makes a decision that
    ruins the whole thing.

  • On Fri, Jun 10, 2011 at 5:23 PM, A J Stiles
    wrote:

    and I am using sipphones only and have PRI line with 100 DID’s which i
    mention above.

    But then, once you have invested considerable time and effort devising a

  • What I do is add a setvar=extclid=xxx to each entry in sip.conf, matching the appropriate external callerid with its respective internal extension. Then, in my outbound context, just before dial, I set CALLERID(num)=${extclid}.

    I’m on my phone, otherwise I’d give example dialplan and sip.conf snippets.

    Thanks,

  • I’m back home, so here’s some examples. I’m using a template in sip.conf
    that provides a lot of the common, duplicated settings for the phones on
    site, like type, secret, context, etc. The context in this case is
    “outgoing”. The provider sets the outbound CNAM based on the CALLERID(num)
    I send them. This is a 1.6.2.9 installation, in case that matters to
    anyone.

    From sip.conf:

    [0004f2xxxxxx](poly650)
    defaultuser=0004f2xxxxxx
    callerid=”Front Desk” <1600>
    mailbox=1600
    *setvar=callidnum=1234561600*

    and from extensions.conf:

    [outgoing]
    ; Outbound unrestricted domestic calls
    exten => _1NXXXXXXXXX,1,Verbose(Outbound call from ${callidnum} to ${EXTEN}
    on ${STRFTIME(${EPOCH},,%D)} at ${STRFTIME(${EPOCH},,%T)}.)
    *exten => _1NXXXXXXXXX,n,Set(CALLERID(num)=${callidnum})*
    exten => _1NXXXXXXXXX,n,Goto(outgoing-dial,${EXTEN},1)

    [outgoing-dial]
    ; Dial out on SIP trunks – domestic
    exten => _1NXXNXXXXXX,1,Dial(SIP/${EXTEN}@voip_provider)
    exten => _1NXXNXXXXXX,n,Hangup()

    This setup allows me to display “Front Desk” <1600> on internal calls, and
    the DID associated with extension 1600 on external calls. This also means I
    don’t need any extra AGI’s or db lookups, etc.

    If you have any questions, please feel free to ask.