[Kamailio-Users] after an append_hf
BERGANZ François
francois at acropolistelecom.net
Fri Sep 12 16:55:50 CEST 2008
In fact, in somes days, I will receive some frame from another server...
But now, I do some tests like:
I have an INVITE I do some append_hf() and before forward(), I test
$(hdr(X-ACRO-Machine)); !
Is it possible to do hdr just after and append_hf ?
Cordialement
BERGANZ François
http://www.acropolistelecom.net
-----Message d'origine-----
De : Daniel-Constantin Mierla [mailto:miconda at gmail.com]
Envoyé : vendredi 12 septembre 2008 16:52
À : BERGANZ François
Cc : users at lists.kamailio.org
Objet : Re: [Kamailio-Users] after an append_hf
On 09/12/08 17:42, BERGANZ François wrote:
> Sorry,
>
> I have done:
> append_hf("X-ACRO-Machine: XXX"\r\n");
>
> need to find XXX with: $(hdr(X-ACRO-Machine));
> don't work
>
do you get the $(hdr(X-ACRO-Machine)) on same instance where you call
append_hf() or is another server?
If it is same, new added headers are not visible.
Cheers,
Daniel
>
> Cordialement
>
> BERGANZ François
> http://www.acropolistelecom.net
>
>
> -----Message d'origine-----
> De : users-bounces at lists.kamailio.org
> [mailto:users-bounces at lists.kamailio.org] De la part de BERGANZ François
> Envoyé : vendredi 12 septembre 2008 16:39
> À : miconda at gmail.com
> Cc : users at lists.kamailio.org
> Objet : Re: [Kamailio-Users] after an append_hf
>
> In fact, I have done:
>
> If I have done: append_hf("X-ACRO-Machine: XXX"\r\n");
>
> Can I find it XXX with: $(hdr(X-ACRO-MACHINE:)); ?
>
> I tried, but don't work :(
>
>
> Cordialement
>
> BERGANZ François
> http://www.acropolistelecom.net
>
>
> -----Message d'origine-----
> De : Daniel-Constantin Mierla [mailto:miconda at gmail.com]
> Envoyé : vendredi 12 septembre 2008 16:30
> À : BERGANZ François
> Cc : 'Klaus Darilion'; users at lists.kamailio.org
> Objet : Re: [Kamailio-Users] after an append_hf
>
> Hello,
>
> On 09/12/08 16:46, BERGANZ François wrote:
>
>> I don't really understand!
>>
>> If I have done: append_hf("user: XXX"\r\n");
>> Can I find it with: $(hdr(user:));
>>
>>
> don't put the colon after the header name. Simply $hdr(user)
>
> Cheers,
> Daniel
>
>
>> ?
>>
>>
>> Cordialement
>>
>> BERGANZ François
>> http://www.acropolistelecom.net
>>
>> -----Message d'origine-----
>> De : Klaus Darilion [mailto:klaus.mailinglists at pernau.at]
>> Envoyé : vendredi 12 septembre 2008 15:31
>> À : BERGANZ François
>> Cc : users at lists.kamailio.org
>> Objet : Re: [Kamailio-Users] after an append_hf
>>
>> You can access any header as pseudo variable:
>> $hdr.....
>>
>> look at the pseudo varibales documentation
>>
>> klaus
>>
>> BERGANZ François wrote:
>>
>>
>>> hello all
>>>
>>>
>>>
>>> I need help for 'append_hf' :
>>>
>>> I know how to add sip header with append_hf
>>>
>>> but
>>>
>>> how can look at this after (in another server) ?
>>>
>>> I need to do append_hf("user: XXX"\r\n"); and after (with another
>>> OpenSer) look at the string after user: ?
>>>
>>>
>>>
>>> How to do?
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> Cordialement
>>>
>>>
>>>
>>> BERGANZ François
>>>
>>> http://www.acropolistelecom.net <http://www.acropolistelecom.net/>
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.kamailio.org
>>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.kamailio.org
>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>>
>>
>
>
--
Daniel-Constantin Mierla
http://www.asipto.com
More information about the Users
mailing list