<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.30.3">
</HEAD>
<BODY>
So it would be best to get a coder in to perhaps write up something?<BR>
I am not the best at that sort of thing.. <BR>
<BR>
Basically -- if I may...<BR>
<BR>
Inbound call (and associated account code from their registration peer - they already have Account Codes) <BR>
Script to look at the account code, and then determine if the CallerID is valid for that group<BR>
If CallerID is valid for account code,<BR>
Set CallerID(${VALUEPASSEDBYPEER})<BR>
else Set CallerID(${PILOTNUMBER})<BR>
Dial(Outbound connection)<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
On Sat, 2011-02-12 at 19:37 -0500, C F wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
First for the billing part use account codes. Solves lots of problems.
Now for the CID part, without any CGI it will be a nightmare,
something like creating 2 asterisk db records (or more if needed). One
that tells you the min range of a DID block an the other the max and
then match in the dialplan the given CID if it falls in the range.
On Sat, Feb 12, 2011 at 6:02 AM, Chris H <<A HREF="mailto:asterisk@archnetnz.com">asterisk@archnetnz.com</A>> wrote:
> Hello....
>
> Just got a question that I cant seem to find anywhere.. although it might
> have been a 'boy' look. so sorry.
>
> I have a central asterisk server, which has a bunch of SIP and IAX trunks
> coming into it for a few community organizations just trying to do this to
> try and keep there costs down.
> (So not Biz, but more than user at home)
>
> So we have at least 4 blocks of DIDs being pushed into the server, and
> getting them out to their remote asterisk boxes is off the top of my head
> something like:
> exten = 555672[0-9],1,Dial(SIP/ipaddress.of.remote/${EXTEN})
>
> So any inbound 555672[0-9] whatever, gets trunked to their box, and then
> they can do what they like with it at their end.
> Seems to work well enough, well, they have not complained...
> And I say off the top of my head, because I cant log into the box at the
> moment.. sorry.
>
> And outbound from their asterisk simply an IAX or SIP connection back and
> call gets pushed out...
> Again seems to work, and billing is simple... because we send a pilot'
> CallerID...
> Usually their Office/Reception DID and just watch for that in the billing
> records.
>
> However now some have asked if they can present 'A-Party Calling' so their
> DID gets sent out when they make an outbound call..
>
> and this is what I am not quite sure how to do...
> I don't want Org A being able to present Org B's callerID data - or vice
> versa.
> I would also like to keep a record of what each Org' dialed for billing..
>
> But I also want to keep it as simple for people to Admin where need be (at
> the remote end)
> Most are just volunteers and although its working well now, don't want to
> over complicate the system.
>
> So even if someone could point me in the right direction..
> I would not really like to create a reg peer per remote extension.. because
> then we would need to know all those details.
> I would like them to be able to present a/any CallerID and if it's part of
> their allocated range, deliver it to the telco and if not
> part of their range, present the Pilot number....
> Bearing in mind that I think 2 are on the same telco, the other two are on
> separate.
>
> Testing has shown that the telco will allow us to present numbers from both
> ranges to them, and have them delivered out CallerID.
> This is not ideal.. and something I would love to know how to correct/stop.
>
> Thanks so much in advance,
>
>
>
>
>
>
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by <A HREF="http://www.api-digital.com">http://www.api-digital.com</A> --
>
> asterisk-biz mailing list
> To UNSUBSCRIBE or update options visit:
> <A HREF="http://lists.digium.com/mailman/listinfo/asterisk-biz">http://lists.digium.com/mailman/listinfo/asterisk-biz</A>
>
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <A HREF="http://www.api-digital.com">http://www.api-digital.com</A> --
asterisk-biz mailing list
To UNSUBSCRIBE or update options visit:
<A HREF="http://lists.digium.com/mailman/listinfo/asterisk-biz">http://lists.digium.com/mailman/listinfo/asterisk-biz</A>
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>