Re: [OpenSIPS-Users] multiple use_media_proxy() calls

2011-01-25 Thread Dan Pascu
On 25 Jan 2011, at 16:39, Jeff Pyle wrote: >> Then there is some misunderstanding somewhere. Before the first 183 >> arrives, mediaproxy cannot lock onto anything as it doesn't yet have >> information about both endpoints. It needs a request (INVITE) and a reply >> that carries media (183/200), be

[OpenSIPS-Users] Fw: Re: Opensips outbound proxy problem

2011-01-25 Thread Nauman Sulaiman
Hi, Does anyone have any suggestions for this? Many thanks --- On Tue, 18/1/11, Nauman Sulaiman wrote: > From: Nauman Sulaiman > Subject: Re: [OpenSIPS-Users] Opensips outbound proxy problem > To: "Bogdan-Andrei Iancu" > Date: Tuesday, 18 January, 2011, 21:03 > Hi, yes Registar receives corr

Re: [OpenSIPS-Users] Indexing AVPs with other AVPs... set from perl

2011-01-25 Thread Brett Nemeroff
On Tue, Jan 25, 2011 at 3:59 PM, Jock McKechnie > I'll be bollocked, well done Brett! > > Works like a charm, and all of my problems have evaporated. > > Thanks muchly; > Sometimes it's the simplest things. :) Glad you got it working. -Brett ___ Users m

Re: [OpenSIPS-Users] Indexing AVPs with other AVPs... set from perl

2011-01-25 Thread Jock McKechnie
On Tue, Jan 25, 2011 at 3:46 PM, Brett Nemeroff wrote: > On Tue, Jan 25, 2011 at 3:41 PM, Jock McKechnie > > I'm then trying to access the AVP later with an index inside another AVP, > > like so: > > $avp(s:IDX) = 0; > > xlog("L_INFO", "A index 0: $avp(s:MAGIC[$avp(s:IDX)])\n"); > > xlog("L_INFO"

Re: [OpenSIPS-Users] Indexing AVPs with other AVPs... set from perl

2011-01-25 Thread Brett Nemeroff
On Tue, Jan 25, 2011 at 3:41 PM, Jock McKechnie > I'm then trying to access the AVP later with an index inside another AVP, > like so: > $avp(s:IDX) = 0; > xlog("L_INFO", "A index 0: $avp(s:MAGIC[$avp(s:IDX)])\n"); > xlog("L_INFO", "B index 0: $(avp(s:MAGIC)[$avp(s:IDX)])\n"); > > What's the approp

[OpenSIPS-Users] Indexing AVPs with other AVPs... set from perl

2011-01-25 Thread Jock McKechnie
Greetings all; I have a feeling I'm "almost there, but not quite" with this one, I was wondering if someone can point out the missing piece of my puzzle here. I'm attempting to index an AVP with another AVP, which works just fine in OpenSIPS, but I'm attempting to seed the initial AVP array from

Re: [OpenSIPS-Users] multiple use_media_proxy() calls

2011-01-25 Thread Jeff Pyle
Thanks, Dave! From: Dave Singer mailto:dave.sin...@wideideas.com>> Reply-To: OpenSIPS users mailling list mailto:users@lists.opensips.org>> Date: Tue, 25 Jan 2011 12:37:46 -0500 To: OpenSIPS users mailling list mailto:users@lists.opensips.org>> Subject: Re: [OpenSIPS-Users] multiple use_media_pr

Re: [OpenSIPS-Users] multiple use_media_proxy() calls

2011-01-25 Thread Dave Singer
I have 2.4.4 running on centos 5.5. Here are my notes for getting it working using mostly rpms. Hope this helps you out and others too. If anyone wanted to put this in an official doc for installing mediaproxy, that would be cool or point me to where I could do that. :) install stuff for opensips

Re: [OpenSIPS-Users] OpenSIPS handling B2B features

2011-01-25 Thread Duane Larson
You should be able to transfer a call from one OpenSIPS user to another without anything special I believe. Also depending on your SIP/PSTN carrier you might also be able to do transfers from an OpenSIPS user to the PSTN. OpenSIPS can also do Call Pickups that you mentioned in your first email. Y

Re: [OpenSIPS-Users] OpenSIPS handling B2B features

2011-01-25 Thread Toyima Dias
Thanks Anca, To make transfers possibles, i would use REFER messages, and for this i would need to use B2BUA module of opensips, rigth? What about conferences? For conferences is the same procedure (REFER messages), but always handling a media b2bua, rigth? Is there a way to handle call transfer

Re: [OpenSIPS-Users] OpenSIPS handling B2B features

2011-01-25 Thread Anca Vamanu
On 01/25/2011 04:58 PM, Toyima Dias wrote: Hello my friends, I'm configuring a proxy with OpenSIPS, and the peers has individual features that must be accomplished, like the following: - Transfering calls - Conferences - Call Pick UP I do understand that these features should be handled by a B2

[OpenSIPS-Users] Value of www_authorize function

2011-01-25 Thread Dovid Bender
Hi, When doing: $avp(s:222) = www_authorize("", "phones"); xlog(".-.-.-. $avp(s:222) .-.-.-.-."); I get back: .-.-.-. 18446744073709551615 .-.-.-.-. Any reason why I am getting back such a long string and not a 1, 2 etc. ? Regards, Dovid_

Re: [OpenSIPS-Users] CDR Accounting

2011-01-25 Thread Adrian Georgescu
Why do you need microseconds in accounting? All database queries, round trip time to the database on the LAN, radius requests, all add up times impossible to measure. What is the point of accounting microseconds for a process that itself takes unknown amount of time but several order of magnitu

Re: [OpenSIPS-Users] multiple use_media_proxy() calls

2011-01-25 Thread Saúl Ibarra Corretgé
Ok, I'll check. Is the 2.4.4 version from the repository considered the latest, or do I need to build something specific? Yes, that's the latest. -- Saúl Ibarra Corretgé AG Projects ___ Users mailing list Users@lists.opensips.org http://lists.ope

Re: [OpenSIPS-Users] multiple use_media_proxy() calls

2011-01-25 Thread Jeff Pyle
Hi Saúl, On 1/25/11 10:21 AM, "Saúl Ibarra Corretgé" wrote: >Hi Jeff, > >>> >>> Then there is some misunderstanding somewhere. Before the first 183 >>> arrives, mediaproxy cannot lock onto anything as it doesn't yet have >>> information about both endpoints. It needs a request (INVITE) and a >>>

Re: [OpenSIPS-Users] multiple use_media_proxy() calls

2011-01-25 Thread Saúl Ibarra Corretgé
Hi Jeff, Then there is some misunderstanding somewhere. Before the first 183 arrives, mediaproxy cannot lock onto anything as it doesn't yet have information about both endpoints. It needs a request (INVITE) and a reply that carries media (183/200), before it can even begin to listen to packets

[OpenSIPS-Users] OpenSIPS handling B2B features

2011-01-25 Thread Toyima Dias
Hello my friends, I'm configuring a proxy with OpenSIPS, and the peers has individual features that must be accomplished, like the following: - Transfering calls - Conferences - Call Pick UP I do understand that these features should be handled by a B2BUA and not to a Proxy; but i've seen this l

Re: [OpenSIPS-Users] multiple use_media_proxy() calls

2011-01-25 Thread Jeff Pyle
Dan, On 1/25/11 9:13 AM, "Dan Pascu" wrote: > >On 25 Jan 2011, at 15:35, Jeff Pyle wrote: > Or, perhaps something already available in the code to force a reset of some sorts when the 18x w/ SDP message comes back? By this point, the leaky media has stopped and the legit medi

Re: [OpenSIPS-Users] Handling messages to more than one final destination

2011-01-25 Thread Toyima Dias
Hello my friends, It seems that OpenSIPS won't expect any answer from the replicated server, as the documentation states: No information due the replicated request (like reply code) will be forwarded to the original SIP UAC. Am i right? If A calls to B, the proxy should send the INVITE from A to

Re: [OpenSIPS-Users] multiple use_media_proxy() calls

2011-01-25 Thread Dan Pascu
On 25 Jan 2011, at 15:35, Jeff Pyle wrote: >>> Or, perhaps something already available in the code to force a reset of >>> some sorts when the 18x w/ SDP message comes back? By this point, the >>> leaky media has stopped and the legit media is flowing. >> >> I don't think this is your case, bec

Re: [OpenSIPS-Users] RADIUS interim update not work

2011-01-25 Thread Roberto Santini
Yes, of course! # - acc params - /* what sepcial events should be accounted ? */ modparam("acc", "early_media", 1) modparam("acc", "report_ack", 1) modparam("acc", "report_cancels", 1) /* by default ww do not adjust the direct of the sequential requests. if you enable this parameter, be su

Re: [OpenSIPS-Users] multiple use_media_proxy() calls

2011-01-25 Thread Jeff Pyle
Dan, On 1/25/11 1:39 AM, "Dan Pascu" wrote: > >On 21 Jan 2011, at 18:32, Jeff Pyle wrote: > >> Dan, >> >> Brett and I communicated privately. It turns out the majority of both >>our headaches with this issue is from the same, rather large carrier. >>Does anything come to mind on how we might h

Re: [OpenSIPS-Users] RADIUS interim update not work

2011-01-25 Thread Dani Popa
Can you give us acc module config ? Thanks, Dani Roberto Santini wrote: > Hi Dani, > thanks for your replay. > I use acc module with parameters aaa_flag and aaa_missed_flag set to 1 > and 2. Into the routing script I set only these flags. I do not use the > function radius_send_acct. > > Roberto

Re: [OpenSIPS-Users] fix_route_dialog problem

2011-01-25 Thread Guido Negro
Hi, Sorry but I don't have any traces, I'm just doing some experiments. I know that a BYE that comes in without Route is just wrong ( I did actually call record_route() ) but that's exactly what I was trying to workaround. Think of a situation where some proxies not under your control send ba

Re: [OpenSIPS-Users] fix_route_dialog problem

2011-01-25 Thread Vlad Paiu
Hi, Are you sure you are calling record_route() properly in your script ? If you do this, you shouldn't receive any SIP msgs without any route headers, as there would be at least 1 route header, the one OpenSIPS has added in the first place. The dialog module depends on the RR module. If a SI

Re: [OpenSIPS-Users] RADIUS interim update not work

2011-01-25 Thread Roberto Santini
Hi Dani, thanks for your replay. I use acc module with parameters aaa_flag and aaa_missed_flag set to 1 and 2. Into the routing script I set only these flags. I do not use the function radius_send_acct. Roberto. On Tue, 2011-01-25 at 12:45 +0200, Dani Popa wrote: > What do you use for accountig

Re: [OpenSIPS-Users] RADIUS interim update not work

2011-01-25 Thread Dani Popa
What do you use for accountig ? radius_send_acct or acc ? Dani Roberto Santini wrote: > Hi to all, > I am new here and I have a problem with accounting on RADIUS. > OpenSIPS sends start and stop accounting messages properly, but in case > of update sends messages with Acct-Status-Type = 0, which

Re: [OpenSIPS-Users] CDR Accounting

2011-01-25 Thread Anton Zagorskiy
Hi Dave. > So just to be sure I'm clear on this. $Ts rounds down ( truncates ) the current second. So using $avp(s:start_time) = $Ts.$Tsm; would give something like "12343253.543233" and always be accurate? You should understand that $Ts.$Tsm is two independent calls to the system time function.