Found a solution!!!
Add this code to the bottom of your a2billing_extensions.conf file via the 'Config Editor' under the 'System Setting' menu...
[a2billing-private]
exten => _.,1,SetCallerPres(prohib_not_screened)
exten => _.,n,Goto(a2billing,${EXTEN},1)
exten => _.,n,Hangup()
Then just change the context used by the extension from the default 'a2billing' to 'a2billing-private', in the A2Billing - 'VoIP Settings' Menu.
#################################################################
For anybody interested, here's how I found it....
I was looking through fourms and came across this thread...
http://forums.digium.com/viewtopic.php?p=7164And in it there was this post...
Quote:
by grizzlyism » Fri Aug 25, 2006 1:28 pm
To send a Remote-Party-ID header with privacy=full, add this line to your dialout trunk:
exten => s,n,SetCallerPres(prohib_not_screened)
grizzlyism
So I added the following to a2billing_extensions.conf...
exten => _X,1,SetCallerPres(prohib_not_screened)
But this didn’t work initially.
My a2billing-private context was now...
[a2billing-private]
exten => _X,1,SetCallerPres(prohib_not_screened)
exten => _X.,1,SIPAddHeader(P-Preferred-Identity: <sip:${CALLERID(num)};user=phone>)
exten => _X.,n,SIPAddHeader(Privacy: id)
exten => _X.,n,Goto(a2billing,${EXTEN},1)
exten => _X.,n,Hangup()
I was looking at a capture I did with ‘sip set debug peer 45000’ in the Asterisk CLI, and I noticed this line...
Looking for 0867926342 in a2billing-private (domain 88.151.26.100)list_route: hop: <sip:
[email protected]:55136>
It occurred to me that that perhaps the number I’m dialling isn’t getting pattern matched to the context.
So I changed the context to...
[a2billing-private]
exten => _0867926342.,1,SetCallerPres(prohib_not_screened)
exten => _0867926342.,1,SIPAddHeader(P-Preferred-Identity: <sip:${CALLERID(num)};user=phone>)
exten => _0867926342.,n,SIPAddHeader(Privacy: id)
exten => _0867926342.,n,Goto(a2billing,${EXTEN},1)
exten => _0867926342.,n,Hangup()
This Worked!!!!
I then ‘;’ or commented out each of the top three lines one at a time, to find out which one was actually doing the job, and then changed the pattern match from ‘_X.’ to just ‘_.’, and I was left with the context...
[a2billing-private]
exten => _.,1,SetCallerPres(prohib_not_screened)
exten => _.,n,Goto(a2billing,${EXTEN},1)
exten => _.,n,Hangup()
I’ll be doing more testing this morning, but this looks like it’s the job.
I have to put out a big 'Thank You!' to Joe Roper who was able to point me in the right direction to finding a solution.
Regards,
Max