I am running version 1.8.4 of asterisk.

My 911 carrier requres that we use P-Asserted-Identity, and I need to have it send the Emergency caller ID. Depending on the extension this value can be different. What I used was this and it worked great but I can’t get the value to pull from the Emergency caller ID. I know that I have this set for 811 this is just for testing purpuses. If I manually change the ${CALLERID(ALL)} to a number it works great but I need to pull the number from the emergency caller ID. Or if someone knows a better way to do this that would be great. Also I was given this script from our carrier and I am not sure what the second line of this does can someone let me know.

exten => 811,1,SipAddHeader(P-Asserted-Identity:sip:${CALLERID(ALL)})
exten => 811,n,Dial(SIP/911@ACME_1)


I’m not aware that Asterisk has any concept of an Emergency Caller ID, so I’m not sure what you mean. Maybe this is some GUI thing. What do you need to achieve, ignoring the fact that it is achieved using Asterisk?

The second line is the very first thing you should have learned before writing Asterisk dialplans. extensions.conf.sample and Asterisk: The Future of Telephony will explain it much better than I can.

Sorry I am new to writing Dialplan I am used to using FreePBX to do everything for me. I need the outbound CID from the extension I am dialing from. I am trying to read the book but not an easy read for me. Sorry for the ignorance I am new to asterisk. Thanks for the help in advance.