Is There Any Way To Pass Caller Id To Cell Phone?

Home » Asterisk Users » Is There Any Way To Pass Caller Id To Cell Phone?
Asterisk Users 6 Comments

We have following problem. On some of the extentions I call cell phone after 10 seconds or so.Or, like this one below- we call cell and office phone at the same time
;Eric on extension 105
exten => 105,1,Dial(${ERIC_CELL}&${ERIC_OFFICE},30)
        same => n,VoiceMail(105@default,u)
Where problem comes in – if person not at the desk – his cell phone shows call from OFFICE number and there is no way to tell who is really calling. We use Callcentric as a trunk if it makes any difference. I’d like to add info about caller when passing to cell phone if possible. Is there any way to do that?
Thank you,Ivan

6 thoughts on - Is There Any Way To Pass Caller Id To Cell Phone?

  • Hi Ivan,

    Check whats CallerID you are getting before initiating dial command.

    ;Eric on extension 105
    exten => 105,1,NoOp( Call ID: ${CALLERID(all)} )
    exten => 105,n,Dial(${ERIC_CELL}&${ERIC_OFFICE},30)
    same => n,VoiceMail(105@default,u)

    Also what Caller ID is set on outgoing trunk? Is that enforced in trunk configuration?

  • Abdul, What is the point of chacking caller id? Does it “make” Asterisk forward it later on?
    Here is outgoing trunk sip.config. Don’t know much about it, pretty much copy/paste from their instructions. register => dsfsadfasdf@callcentric.com[callcentric]
    type=peer context=from-callcentric host=callcentric.com fromdomain=callcentric.com defaultuser=17775555555
    fromuser=17775555555
    secret=abcd1234
    insecure=port,invite disallowed_methods=UPDATE
    directmedia=no videosupport=no disallow=all allow=ulaw[callcentric1](callcentric);
    host=alpha1.callcentric.com[callcentric2](callcentric);
    host=alpha2.callcentric.com[callcentric3](callcentric);
    host=alpha3.callcentric.com[callcentric4](callcentric);
    host=alpha4.callcentric.com[callcentric5](callcentric);
    host=alpha5.callcentric.com

    Thank you,Ivan
    From: Abdul Basit
    To: idemkovitch@yahoo.com; Asterisk Users Mailing List – Non-Commercial Discussion
    Sent: Thursday, October 11, 2018 12:42 PM
    Subject: Re: [asterisk-users] Is there any way to pass caller id to cell phone?

    Hi Ivan, Check whats CallerID you are getting before initiating dial command.
    ;Eric on extension 105
    exten => 105,1,NoOp( Call ID: ${CALLERID(all)} )
    exten => 105,n,Dial(${ERIC_CELL}&${ERIC_OFFICE},30)
      same => n,VoiceMail(105@default,u)

    Also what Caller ID is set on outgoing trunk? Is that enforced in trunk configuration? 

  • Abdul, Added code like you proposed, I see it in logs but still don’t see caller ID coming in:
     — Goto (internal,101,1)
        — Executing [101@internal:1] NoOp(“SIP/callcentric13-000006d1”, “Call ID: “DEMKOVITCH,IVAN” <15555555555>“) in new stack
        — Executing [101@internal:2] Dial(“SIP/callcentric13-000006d1”, “SIP/649EF375FFFF,30”) in new stack
      == Using SIP RTP CoS mark 5
        — Called SIP/649EF375FFFF
        — SIP/649EF375FFFF-000006d2 is ringing
        — Nobody picked up in 30000 ms
        — Executing [101@internal:3] Dial(“SIP/callcentric13-000006d1”, “SIP/16666666666@callcentric,20”) in new stack
      == Using SIP RTP CoS mark 5
        — Called SIP/16666666666@callcentric
        — SIP/callcentric-000006d3 is making progress passing it to SIP/callcentric13-000006d1
           > 0x7f3b3801c800 — Probation passed – setting RTP source address to 222.11.192.162:56680
        — SIP/callcentric-000006d3 is ringing
        — SIP/callcentric-000006d3 is making progress passing it to SIP/callcentric13-000006d1
        — SIP/callcentric-000006d3 is ringing
        — SIP/callcentric-000006d3 is making progress passing it to SIP/callcentric13-000006d1
        — SIP/callcentric-000006d3 is ringing
        — SIP/callcentric-000006d3 is making progress passing it to SIP/callcentric13-000006d1
        — SIP/callcentric-000006d3 is ringing
        — SIP/callcentric-000006d3 is making progress passing it to SIP/callcentric13-000006d1
      == Spawn extension (internal, 101, 3) exited non-zero on ‘SIP/callcentric13-000006d1’

    From: Abdul Basit
    To: idemkovitch@yahoo.com; Asterisk Users Mailing List – Non-Commercial Discussion
    Sent: Thursday, October 11, 2018 12:42 PM
    Subject: Re: [asterisk-users] Is there any way to pass caller id to cell phone?

    Hi Ivan, Check whats CallerID you are getting before initiating dial command.
    ;Eric on extension 105
    exten => 105,1,NoOp( Call ID: ${CALLERID(all)} )
    exten => 105,n,Dial(${ERIC_CELL}&${ERIC_OFFICE},30)
      same => n,VoiceMail(105@default,u)

    Also what Caller ID is set on outgoing trunk? Is that enforced in trunk configuration? 

  • So, assuming 15555555555 is the Caller ID you would *like* to see on the mobile, but in fact you see the number associated with your Callcentric trunk, I think Abdul has pinpointed the problem:

    By “trunk configuration” he means the trunk setup with Callcentric, not your Asterisk server.

    It is most likely that Callcentric do not allow you to set arbitrary caller ID
    on outgoing calls made through that connection. You could pretend to be anybody, and they don’t permit that.

    Regards,

    Antony.


    Because it messes up the order in which people normally read text.

    Please reply to the list;
    please *don’t* CC me.

  • Ivan,

    Be aware that what you are asking may cause problems with making the call to the cell phone. Think of it this way, you are taking an inbound call and then sending it out over your regular operator. They may object to accepting a call with a CLID that does not match your account and could block it. It is worth testing if they will allow any outbound CLID or need it to match the account. The problem will get worse when SHAKEN’STIR comes into effect and they need to certify that the call came from your office. The reason they would block it is to prevent both spam calls and fraud.

    Eric Klein COO
    Greenfield Main US +1 805 410 1010
    Main UK +44 203 746 6000
    Main Il +972 73 255 7799
    Mobile +972 54 666 0933

    *Email *Eric@greenfield.tech Skype: EricLKlein Web: http://www.greenfield.tech
    http://www.cloudonix.io

    *Disclaimer:*
    This e-mail is intended solely for the person to whom it is addressed and may contain confidential or legally privileged information. Access to this e-mail by anyone else is unauthorized. If an addressing or transmission error has misdirected this e-mail, please notify the author by replying to this e-mail and destroy this e-mail and any attachments. E-mail may be susceptible to data corruption, interception, unauthorized amendment, viruses and delays or the consequences thereof. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing or copying of this email is strictly prohibited.

  • Maybe you should ask them how to do this! Maybe you should add a Diversion header, maybe they don’t allow this kind of spoofing at all. This is a common request from users of SIP trunks and your use case is legit. If Callcentric does checks on callerid validity and there is a call to a customer with callerid X, they should be able to use this callerid X when forwarding to an external device/number.