[OpenSIPS-Users] P-Called-Party-ID

2011-02-06 Thread Tyler Merritt
I don't see that this particular header is made available by any of the core vars or scripting vars. I tried using $(hdr(P-Called-Party-Id)) but OS comes back with /usr/sbin/opensips[7981]: P-Called-Party-Id equals It seems to think that I'm looking for: /usr/sbin/opensips[7981]: DBG:core:pv_ge

Re: [OpenSIPS-Users] trying to rewriteuri to the value of a variable

2011-02-06 Thread Duane Larson
I don't know that its mentioned in the documentation, but I ran across the same issue and remembered finding something about it by searching nabble's opensips part. Its one of those things you chalk up to experience. Sent from Droid On Feb 6, 2011 8:54 PM, "Nigel Daniels" wrote: > that seems to

Re: [OpenSIPS-Users] trying to rewriteuri to the value of a variable

2011-02-06 Thread Nigel Daniels
that seems to be working, thanks alot ! clearly I need to re-read the docs On Sun, Feb 6, 2011 at 6:48 PM, Dave Singer wrote: > Isn't > $var(my_uri) = "5...@example.com"; > $ru = "sip:" + $var(my_ruri); > the same as > rewriteuri("sip:5...@example.com"); > just that using $ru you can use it

Re: [OpenSIPS-Users] trying to rewriteuri to the value of a variable

2011-02-06 Thread Duane Larson
Yeah I was wrong about the avpops being an alternative. But if he finds the mailing list thread I referred him to it will say th exact thing you just mentioned Dave. Sent from Droid On Feb 6, 2011 8:49 PM, "Dave Singer" wrote: > Isn't > $var(my_uri) = "5...@example.com"; > $ru = "sip:" + $var(my

Re: [OpenSIPS-Users] trying to rewriteuri to the value of a variable

2011-02-06 Thread Dave Singer
Isn't $var(my_uri) = "5...@example.com"; $ru = "sip:" + $var(my_ruri); the same as rewriteuri("sip:5...@example.com"); just that using $ru you can use it just like assigning to other vars like you are doing. On Sun, Feb 6, 2011 at 6:36 PM, Duane Larson wrote: > Avpops > > Sent from Droi

Re: [OpenSIPS-Users] trying to rewriteuri to the value of a variable

2011-02-06 Thread Duane Larson
Avpops Sent from Droid On Feb 6, 2011 8:34 PM, "Nigel Daniels" wrote: > the problem is that rewriteuri() does not support variables is there any > alternative to rewriteuri() for changing the uri > > On Sun, Feb 6, 2011 at 6:26 PM, Tyler Merritt wrote: > >> I do this as well: >> >> $var(origFrom

Re: [OpenSIPS-Users] trying to rewriteuri to the value of a variable

2011-02-06 Thread Nigel Daniels
the problem is that rewriteuri() does not support variables is there any alternative to rewriteuri() for changing the uri On Sun, Feb 6, 2011 at 6:26 PM, Tyler Merritt wrote: > I do this as well: > > $var(origFromNumber) = $(re{uri.user}); > $var(finalFromURI) = "sip:81" + $(var(origFromNumber){

Re: [OpenSIPS-Users] trying to rewriteuri to the value of a variable

2011-02-06 Thread Duane Larson
He should search the mailing list for rewriteuri You can't, i believe, use pseudovariables with that function. I believe you have to use an avp Sent from Droid On Feb 6, 2011 8:26 PM, "Tyler Merritt" wrote: > I do this as well: > > $var(origFromNumber) = $(re{uri.user}); > $var(finalFromURI) =

Re: [OpenSIPS-Users] trying to rewriteuri to the value of a variable

2011-02-06 Thread Tyler Merritt
I do this as well: $var(origFromNumber) = $(re{uri.user}); $var(finalFromURI) = "sip:81" + $(var(origFromNumber){s.substr,1,0}) + "@" + $fd; This works fine for me. Takes what is essentially a DID and formats it to a SIP PEER string as per the carrier. You say that var(z) prints correctly in th

[OpenSIPS-Users] How to modify the 100 Trying packet

2011-02-06 Thread Tyler Merritt
I have used "if (status=="100")" and "if (is_method("TRYING"))" and placed these in a variety of places, at the top of route[0], in route[1], in onreply_route (where it actually works), but nowhere can I get the OUTGOING 100 TRYING packet to change... I can't figure this out - there isn't very goo

Re: [OpenSIPS-Users] trying to rewriteuri to the value of a variable

2011-02-06 Thread Duane Larson
Search How can I use a pseudovariable or a avp on the mailing list. I just did a search of "rewriteuri" and the last one on Nabble talks about your issue. Sent from Droid On Feb 6, 2011 7:55 PM, "Nigel Daniels" wrote: > the '+ ' is for concatenation of the 2 strings and $var(z) prints correctly

Re: [OpenSIPS-Users] trying to rewriteuri to the value of a variable

2011-02-06 Thread Nigel Daniels
Feb 7 01:00:45 opensips /sbin/opensips[26040]: sip:16505332...@sip.testdomain2.com > Nevermind I guess you do use the +. I don't have my config in front of me > so it looked odd. I would still be interested in what your xlog output is. > > Sent from Droid > On Feb 6, 2011 7:37 PM, "Nigel Daniel

Re: [OpenSIPS-Users] trying to rewriteuri to the value of a variable

2011-02-06 Thread Duane Larson
Nevermind I guess you do use the +. I don't have my config in front of me so it looked odd. I would still be interested in what your xlog output is. Sent from Droid On Feb 6, 2011 7:37 PM, "Nigel Daniels" wrote: > I tried the fallowing and $var(z) looks > $var(x)=$tu; > $var(y) = $(var(x){s.sel

Re: [OpenSIPS-Users] trying to rewriteuri to the value of a variable

2011-02-06 Thread Nigel Daniels
the '+ ' is for concatenation of the 2 strings and $var(z) prints correctly in the log On Sun, Feb 6, 2011 at 5:45 PM, Duane Larson wrote: > Why do you have the + outside of the quotation marks when you are declaring > var(z). Wonder if that is your issue. What is the output for your xlog > t

Re: [OpenSIPS-Users] trying to rewriteuri to the value of a variable

2011-02-06 Thread Duane Larson
Why do you have the + outside of the quotation marks when you are declaring var(z). Wonder if that is your issue. What is the output for your xlog that shows what varz is? Sent from Droid On Feb 6, 2011 7:37 PM, "Nigel Daniels" wrote: > I tried the fallowing and $var(z) looks > $var(x)=$tu; > $

[OpenSIPS-Users] trying to rewriteuri to the value of a variable

2011-02-06 Thread Nigel Daniels
I tried the fallowing and $var(z) looks $var(x)=$tu; $var(y) = $(var(x){s.select,1,-}); $var(z) = "sip:"+$var(y); xlog("$var(z)"); rewriteuri("$var(z)"); This is what I get in the log Feb 7 01:28:18 opensips /sbin/opensips[26561]: ERROR:core:parse_uri: bad

Re: [OpenSIPS-Users] Topology hiding - B2B_LOGIC

2011-02-06 Thread Ovidiu Sas
For now, best thing to do is to separate functionality: - one server doing topology hiding; - one server doing routing, accounting, rtp proxy, etc. Regards, Ovidiu Sas On Sun, Feb 6, 2011 at 9:23 AM, Maciej Bylica wrote: > Hi, > >> I am running Opensips 1.6.3 and trying to do topology hiding.

Re: [OpenSIPS-Users] Topology hiding - B2B_LOGIC

2011-02-06 Thread Maciej Bylica
Hi, > I am running Opensips 1.6.3 and trying to do topology hiding. > This is my scenario:    Operator_1 -- > my Opensips --> Operator_2 > The goal is not to convey any information of Operator_2 to Operator_1 > like Contact, User-Agent headers and so on and to do rtp proxying. > For rtp pr