Re: [OpenSIPS-Users] Multiple Area Codes in Customer Area

2009-08-26 Thread osiris123d
Nice. Thanks for the help On Wed, Aug 26, 2009 at 10:55 AM, Bogdan-Andrei Iancu (via Nabble) < ml-user+121376-262234...@n2.nabble.com > wrote: > Hi Duane, > > You can replace the complicated: > > subst_uri('/^sip:([0-9]+)@(.*)$/sip:$avp(s:areacode)\...@\2/i'); > > with more nicer: > > $

Re: [OpenSIPS-Users] Multiple Area Codes in Customer Area

2009-08-26 Thread Bogdan-Andrei Iancu
Hi Duane, You can replace the complicated: subst_uri('/^sip:([0-9]+)@(.*)$/sip:$avp(s:areacode)\...@\2/i'); with more nicer: $rU = $avp(s:areacode) + $rU; Regards, Bogdan osiris123d wrote: > Got it working! Man OpenSIPS sure can do anything with SIP > > So here is what I did for f

Re: [OpenSIPS-Users] Multiple Area Codes in Customer Area

2009-08-25 Thread osiris123d
Got it working! Man OpenSIPS sure can do anything with SIP So here is what I did for future searchers So the users account is a 7 digit DID number XXX at blah.com I set up an AVP called areacode for the whole domain blah.com (this assumes that the whole domain blah.com is only in one areac

Re: [OpenSIPS-Users] Multiple Area Codes in Customer Area

2009-08-21 Thread Bogdan-Andrei Iancu
Hi Duane, You can correlate AVPs you a USER, a DOAMAIN, etc - it is up to you, from the script, when loading the AVP - is a pure logical mapping. Regards, Bogdan osiris123d wrote: > I was reading Flavio's "Building Telephony Systems with OpenSER" chapter > about AVPOPs and he mentions that AVP'

Re: [OpenSIPS-Users] Multiple Area Codes in Customer Area

2009-08-18 Thread osiris123d
I was reading Flavio's "Building Telephony Systems with OpenSER" chapter about AVPOPs and he mentions that AVP's can be used for a whole domain. I was thinking that I might be able to configure a area code for Company A's domain and then route calls that way. If not that then I can set the AVP o

Re: [OpenSIPS-Users] Multiple Area Codes in Customer Area

2009-08-18 Thread Bogdan-Andrei Iancu
Hi, Requirements on the format of CONTACT and TO headers are nonsense as they are not used for routing at all. Only FROM (which provides info on the caller) and RURI (request URI) (which provide info on callee). So, bottom line, only the normalization of the RURI should be required on the sys

Re: [OpenSIPS-Users] Multiple Area Codes in Customer Area

2009-08-14 Thread osiris123d
Thanks for the info. I will look into this and work up a config. I also got this direct email about my post from someone else who lives in the US. I figured I would go ahead and post below what he sent just so its out there. Hello Duane -- You have hit on one of the more difficult areas in

Re: [OpenSIPS-Users] Multiple Area Codes in Customer Area

2009-08-13 Thread Bogdan-Andrei Iancu
Hi there, When you have to deal with local dialling you need consider the amount of information yon need to keep in order to translate to national format and the complexity of the processing you have to do. A compromise solution will be to keep in user profile some information about the locati

[OpenSIPS-Users] Multiple Area Codes in Customer Area

2009-08-10 Thread osiris123d
I was curious to see how people configure OpenSIPS when their customers could potentially be in different area codes. I am located in the US. Say I have customers that are in the following area codes 201-XXX-<- New Jersey 339-XXX-<- Boston Initially when I was setting up users