Outgoing caller id not being sent

have set up a new flowroute trunk but the caller id is not being sent to the receipient when I make outoing calls. I see ‘restriced’ with no number when I call my cell. I have a ticket in to flow route to see if the are getting an outgoing number from me but was wondering if I can tell from the logs if asterisk thinks I am even sending it to them an outgoing caller id. Which variable indicates the caller id that is sent?

201-780-1111 is the number I am callingZ
5407751111 is the number I want to appear on caller id.

It does look like TRUCKOUTCID is set but I am not sure which variable is actually that they would look at. I do some other variables that are in this block that are not set the phone number. Does it look like I am setting the outgoing caller ID properly?

[2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Goto (macro-outbound-callerid,s,7) [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-outbound-callerid:7] Set("SIP/704-00000000", "USEROUTCID=") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-outbound-callerid:8] Set("SIP/704-00000000", "EMERGENCYCID=rich") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-outbound-callerid:9] Set("SIP/704-00000000", "TRUNKOUTCID=5407751111") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-outbound-callerid:10] GotoIf("SIP/704-00000000", "0?trunkcid") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-outbound-callerid:11] Set("SIP/704-00000000", "CALLERID(all)=rich") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-outbound-callerid:12] Set("SIP/704-00000000", "CDR(outbound_cnum)=") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-outbound-callerid:13] Set("SIP/704-00000000", "CDR(outbound_cnam)=rich") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-outbound-callerid:14] MacroExit("SIP/704-00000000", "") in new stack

This appears to be a problem with a GUI dialplan. The only GUI currently supported is FreePBX, for which you use use community.freepbx.org/

If this is your own dialplan, please provide the source, particularly the code that uses ${TRUNKOUTCID} to set the CDR number.

You have setup an emergency cid for the specific extension. This emergency cid overrides the trunk cid that you have in your trunk.

Thanks… Yes I was using FreePBX. I came here as I figured that FreePBX is just writing the config.

It actually seemed like something was stuck in the freepbx gui because I printed out all my settings and blew away the server. I re-added things the exact same way and it worked fine.

It does a lot more than that. Asterisk is a low level tool kit which provides a specialised programming language. FreePBX has a large amount of code in that language that is either static or used as a template when expanding a configuration.

It also defines lots of terms like, trunk, extension (has a meaning that differs from the Asterisk one), and ring group, that are not used in Asterisk and often don’t exist as primitive operations, but are implemented by dialplan code that is supplied as part of FreePBX.