[Kamailio-Users] i want to get user defined header value

RAJNIKANT VANZA rajnivanza at gmail.com
Mon Nov 23 13:28:57 CET 2009


On Mon, Nov 23, 2009 at 5:54 PM, RAJNIKANT VANZA <rajnivanza at gmail.com>wrote:

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



-- 
Thanks and  Regards
Rajnikant Vanza
Call : +91-97374 56583
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20091123/0b5627a9/attachment.htm>


More information about the sr-users mailing list