<br><br><div class="gmail_quote">On Mon, Nov 23, 2009 at 5:54 PM, RAJNIKANT VANZA <span dir="ltr"><<a href="mailto:rajnivanza@gmail.com">rajnivanza@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><div><div></div><div class="h5">On Mon, Nov 23, 2009 at 4:20 PM, Thiago Rondon <span dir="ltr"><<a href="mailto:thiago@aware.com.br" target="_blank">thiago@aware.com.br</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Ranikant,<br>
<br>
You can you use Perl module for this, please look at :<br>
<br>
<a href="http://kamailio.org/docs/modules/1.6.x/perl.html" target="_blank">http://kamailio.org/docs/modules/1.6.x/perl.html</a><br>
<br>
See the script example, <a href="http://headers.pl" target="_blank">headers.pl</a><br>
<br>
-Thiago Rondon<br>
<br>
<br>
Alex Balashov escreveu:<div><div></div><div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Please don't forget to copy your responses back to the list so that others can benefit from this discussion.<br>
<br>
I must have misunderstood your intended meaning of "user-defined." $hdr(...) takes only string literals as arguments, not pseudovariables.<br>
<br>
I do not believe that what you are wanting is possible.<br>
<br>
RAJNIKANT VANZA wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Alex,<br>
<br>
i have tested like :<br>
<br>
1. ${hdr(TEST))<br>
2. $hdr($avp(s:TEST))<br>
<br>
but it's not work.<br>
if u know any other suggestion, send me.<br>
<br>
On Mon, Nov 23, 2009 at 3:56 PM, Alex Balashov <<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a> <mailto:<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>>> wrote:<br>
<br>
RAJNIKANT VANZA wrote:<br>
<br>
i want to get user-defined header value.<br>
e.g. i have create header name : TEST and its value : vtec in<br>
asterisk.<br>
then how can i get this value from this header in kamailio.<br>
<br>
<br>
Try: $hdr(TEST)<br>
<br>
-- Alex Balashov - Principal<br>
Evariste Systems<br>
Web : <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a><br>
Tel : (+1) (678) 954-0670<br>
Direct : (+1) (678) 954-0671<br>
<br>
<br>
<br>
<br>
-- <br>
Thanks and Regards<br>
Rajnikant Vanza<br>
Call : +91-97374 56583<br></blockquote></blockquote></div></div></blockquote><div><br> </div></div></div>Hi friends,<br>
<br>thank for reply.<br><br>
i have add header through asterisk api by below statement and its display correct on asterisk CLI <br>
but not able to get header value through kamailio:<br>
<br>
<b>asteisk statement is :</b> SipAddheader(TEST=vtec);<br>
above statement in header name is "TEST" and its value is "vtec".<br>
<br>
i want get "header TEST" from sip message when kamailio receive sip message (INVITE) from asterisk server.
</div><div><div></div><div class="h5"><br><br>-- <br>Thanks and Regards<br>Rajnikant Vanza<br>Call : +91-97374 56583<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Thanks and Regards<br>Rajnikant Vanza<br>Call : +91-97374 56583<br>