Flowroute: Howto Set Outbound Callerid (ast 1.4)?

Home » Asterisk Tips » Flowroute: Howto Set Outbound Callerid (ast 1.4)?
Asterisk Tips 10 Comments

The flowroute website mentions that they set callerid on outbound calls based on the presence of (in order of preference):
“P-Asserted-Identity”, “Remote-Party-ID” or “From:”.

I’ve been trying to make outbound callerid work via flowroute to no avail. Does anyone have an extensions.conf / sip.conf snippet howto make this work? This is for Asterisk 1.4.44.

10 thoughts on - Flowroute: Howto Set Outbound Callerid (ast 1.4)?

  • Yup I got that far 🙂 I tried things like (with correct name & number):

    exten => _1ZXXXXXXXXX,1,SipAddHeader(P-Asserted-Identity: “Global Minties Corp” )

    But that did not work as flowroute always sends “VOIP CALLER” and a ton of different numbers on outbound calls. So I guess I am doing something wrong but I can’t figure out what.

    Regards, Patrick

  • At 09:20 AM 7/10/2012, you wrote:

    This is a section of code I use to choose outgoing callerid for my Flowroute lines. I have a number of companies and this lets the caller select what the called parts sees.


    same => n(got0),set(thiscid=NOONE<2345678901>)
    same => n,goto(gotcallerid)
    same => n(got1),set(thiscid=Bb and Lucy<3124726322>)
    same => n,goto(gotcallerid)
    same => n(got2),set(thiscid124724022<3124724022>)
    same => n,goto(gotcallerid)
    same => n(got3),set(thiscid=Mustang<3126925021>)
    same => n,goto(gotcallerid)

  • Check your users.conf – this looks like an override issue to me.

    —–Original Message—

  • You can’t* set the outbound name. That’s defined in the national caller id name database that the receiving phone company dips into. As far as I
    know, Flowroute does not add entries to this database, nor do they dip it when you receive a call to pass the caller ID name on inbound calls. Other providers do.

    * – You may be able to set it if you’re calling other users on the Flowroute network, I’m not sure. But in general, once your call leaves the Flowroute network, the only way to get the CNAM info is from a CNAM dip to the national database (I don’t recall the actual name).

    –Warren Selby, dCAP
    http://www.SelbyTech.com < http://www.selbytech.com>

  • Thank you for your feedback Warren. I removed the outbound name but still get random numbers & “VOIP CALLER” on outbound calls. Googling I
    tried some more:

    SipAddHeader(P-Asserted-Identity: )
    SipAddHeader(P-Asserted-Identity: 19995551212)
    SipAddHeader(P-Preferred-Identity: 19995551212)

    But none of them work. So unless someone has the magic incantation howto make this work I’ll open a ticket with flowroute.

    Regards, Patrick

  • I use Flowroute. My outbound callerID is set as follows:

    exten => _X.,1,Verbose(Outound call from ${callidnum} to ${EXTEN} on
    ${STRFTIME(${EPOCH},,%D)} at ${STRFTIME(${EPOCH},,%T)})
    exten => _X.,n,Set(CALLERID(num)=${callidnum})
    exten => _X.,n,Goto(outgoing-dial,${EXTEN},1)

    exten => _NXXNXXXXXX,1,Dial(SIP/1${EXTEN}@flowroute)

    exten => _1NXXNXXXXXX,1,Dial(SIP/${EXTEN}@flowroute)

    ${callidnum} is a variable from my SIP peer (setvar

  • Thank you for your feedback Danny. users.conf is default and has not been touched.

    Regards, Patrick

  • Thank you for that snippet Ira. You and Warren were spot on. All is fine now.


  • Thank you for that snippet Warren. I setup a different US DID and called that one via flowroute and the callerid worked. Previously I called a voip.ms toll-free number. I’ll blame it on (lack of) carrier interoperability 🙂 Good to know outbound callerid works without having to use magic SipAddHeader incantations.