Re: [OpenSIPS-Users] Help with is_present_hf

2011-02-07 Thread Tyler Merritt
Jeff, Yeah xlog shows the avp being set - and I figured out why the call wasn't looping through that piece of code. I'm sorry that I didn't mention I had created the $avp(oriUri) alias higher up in the code but didn't paste it. It's aliased to an integer value. Oddly - all of my append_hf("BLAH

Re: [OpenSIPS-Users] Help with is_present_hf

2011-02-07 Thread Jeff Pyle
Dave, Nah. We use a mix of P- and X- headers with no problem. Tyler, I have a similar requirement where I need to pull the user from a P-Charge-Info field. I use: if (is_present_hf("P-Charge-Info")) { ... $var(whatever) = $(hdr(P-Charge-Info){uri.user}); ... } This works pre

Re: [OpenSIPS-Users] Help with is_present_hf

2011-02-07 Thread Dave Singer
Tyler, Not sure but I believe custom headers are supposed to start with "X-" and it may be that opensips is rejecting putting it in because it is not a standard SIP header and it does not start with "X-". Turning up the debug would probably show why. Dave On Mon, Feb 7, 2011 at 6:02 AM, Tyler Me

[OpenSIPS-Users] Help with is_present_hf

2011-02-07 Thread Tyler Merritt
Using Opensips 1.6 -> Can anyone tell me what I'm doing wrong here? if (is_present_hf("P-Called-Party-Id")) { append_hf("GW: EPSILON\r\n"); $avp(oriUri) = $(hdr(P-Called-Party-Id){s.substr,5,12}); xlog("L_INFO", "Reply use