Thanks I have checked out ONSIP for setting up SER and making my ser.cfg files. I will look for AVP documentation too.
-----Original Message----- From: sip [mailto:sip@arcdiv.com] Sent: Wednesday, December 14, 2005 8:07 AM To: Leo; 'Iqbal' Cc: 'SER-Users' Subject: RE: [Serusers] How can I change dial rulesbased on From:' headerinstead of R-RURI?
AVPs can be rather daunting. Hell... it ALL can. The issue, of course, is that the help pages are written by programmers for programmers and so making sense out of it all can be a little hair-thinning for the rest of us.
If you need some help, though... let me know. I've spent a good portion of time trying to wrap my brain around some of the concepts here so I can really understand what I'm doing and not just copy blocks of code from here and there.
Your FINEST resource for actual human-readable information about the whole server setup, though, is the getting started documents at Onsip.org. The guys there have REALLY put some time and effort into creating documentation that makes sense and is laid out well. I can't recommend it enough.
N.
On Tue, 13 Dec 2005 15:08:14 -0500, Leo wrote
Dear Iqbal & sip@arcdiv,
Thank you for the excellent input.
I like the idea of using groups since it seems very simple. I could also write a CRON job that updates the groups table based on who is presently registered in the registration table. This way the group table will also represent who is registered. This will allow me to NOT route at all unless the from: header is registered.
By the way, I do have control over the endpoints. While I can't guarantee that no one is "spoofing" the "From:" header, this is good enough for now.
I am hesitant with AVP's because I know very little about them, however, they do look very popular. I need to figure out how I can learn them a little better. I have been to the AVP website at Voice Systems, but it seems to be geared towards OPENSER and I am not using that presently. I am still on SER 0.9.4 and I plan on staying there for the near future.
Leo P.
-----Original Message----- From: serusers-bounces@iptel.org [mailto:serusers-bounces@lists.iptel.org] On Behalf Of Iqbal Sent: Tuesday, December 13, 2005 8:48 AM To: sip Cc: 'SER-Users'; Leo Papadopoulos Subject: Re: [Serusers] How can I change dial rulesbased on From:' headerinstead of R-RURI?
true...but then if remote users, i.e interconnect with other voip providers, better to use trusted tables I think...opinions
iqbal
sip wrote:
Right.... but this assumes it's a local user and he has control over that
info.
If the user's not local, you're sort of limited in what you can test for.
N.
On Tue, 13 Dec 2005 13:32:49 +0000, Iqbal wrote
but will you check each From: or will there be a regex for them, if in groups I suggest is_usr_in setting, and then setflag, and then route
Iqbal
sip wrote:
There are a couple of things you COULD do.
You could use search().... like...
if(search("^From: something")) ...
That could be a little tricky with getting the formatting correct, but
is
doable.
You could also use AVPs...
avp_write("$from", "i:19"); if(avp_check("i:19", "eq/1234@somewhere.com/i")) ...
Don't trust me on exact syntax, though, but that's the idea.
N.
On Tue, 13 Dec 2005 07:55:49 -0500, Leo Papadopoulos wrote
Normally I would call a statement like:
If (uri=^sip:123456@somewhere.com) { ..do something }
I would like to implement a dial plan using the "From:" header.
i.e.: If (from_uri=^sip:123456@somewhere.com) { ..do something }
Anyone know if something like this exists?
Leo P.
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
.
.
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers