Hi all, I have the need to call rewriteuser() with a pseudovariable.
My need is to rewrite the user with the content of an extra header I put in the SIP packet coming from a PSTN gateway
I tried with rewriteuser("$hdr(X-DNID)"); but it doesn't replace the string with the ocntent of the pseudovariable.
Any idea ?
Tnx in advance
Edoardo Serra WeBRainstorm S.r.l.
Hi Edoardo,
try: $rU = $dr(X-DNID);
regards, bogdan
Edoardo Serra wrote:
Hi all, I have the need to call rewriteuser() with a pseudovariable.
My need is to rewrite the user with the content of an extra header I put in the SIP packet coming from a PSTN gateway
I tried with rewriteuser("$hdr(X-DNID)"); but it doesn't replace the string with the ocntent of the pseudovariable.
Any idea ?
Tnx in advance
Edoardo Serra WeBRainstorm S.r.l.
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Hi Bogdan, tnx for help but it doesn't work
# openser -c 0(8093) parse error (128,6-7): syntax error
ideas ?
regards, Edoardo
Bogdan-Andrei Iancu ha scritto:
Hi Edoardo,
try: $rU = $dr(X-DNID);
regards, bogdan
Edoardo Serra wrote:
Hi all, I have the need to call rewriteuser() with a pseudovariable.
My need is to rewrite the user with the content of an extra header I put in the SIP packet coming from a PSTN gateway
I tried with rewriteuser("$hdr(X-DNID)"); but it doesn't replace the string with the ocntent of the pseudovariable.
Any idea ?
Tnx in advance
Edoardo Serra WeBRainstorm S.r.l.
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
forgot to mention - this is only in 1.2. In the older versions is not supported.
regards, bogdan
Edoardo Serra wrote:
Hi Bogdan, tnx for help but it doesn't work
# openser -c 0(8093) parse error (128,6-7): syntax error
ideas ?
regards, Edoardo
Bogdan-Andrei Iancu ha scritto:
Hi Edoardo,
try: $rU = $dr(X-DNID);
regards, bogdan
Edoardo Serra wrote:
Hi all, I have the need to call rewriteuser() with a pseudovariable.
My need is to rewrite the user with the content of an extra header I put in the SIP packet coming from a PSTN gateway
I tried with rewriteuser("$hdr(X-DNID)"); but it doesn't replace the string with the ocntent of the pseudovariable.
Any idea ?
Tnx in advance
Edoardo Serra WeBRainstorm S.r.l.
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Tnx Bogdan, if there's no way to do it in 1.1. I'll upgrade.
Will I be able use pseudovars in if construct ?
I mean:
if ($hdr(X-DNID) != "") { $rU = $hdr(X-DNID) }
Tnx
Edoardo
Bogdan-Andrei Iancu ha scritto:
forgot to mention - this is only in 1.2. In the older versions is not supported.
regards, bogdan
Edoardo Serra wrote:
Hi Bogdan, tnx for help but it doesn't work
# openser -c 0(8093) parse error (128,6-7): syntax error
ideas ?
regards, Edoardo
Bogdan-Andrei Iancu ha scritto:
Hi Edoardo,
try: $rU = $dr(X-DNID);
regards, bogdan
Edoardo Serra wrote:
Hi all, I have the need to call rewriteuser() with a pseudovariable.
My need is to rewrite the user with the content of an extra header I put in the SIP packet coming from a PSTN gateway
I tried with rewriteuser("$hdr(X-DNID)"); but it doesn't replace the string with the ocntent of the pseudovariable.
Any idea ?
Tnx in advance
Edoardo Serra WeBRainstorm S.r.l.
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Edoardo Serra wrote:
Tnx Bogdan, if there's no way to do it in 1.1. I'll upgrade.
Upgrade to 1.2 if possible -- its really useful in many situations.
Will I be able use pseudovars in if construct ?
I mean:
if ($hdr(X-DNID) != "") { $rU = $hdr(X-DNID) }
Yes. psevdovars in 1.2 is more powerful.