[OpenSER-Users] Insert a Header into ACK message

Bogdan-Andrei Iancu bogdan at voice-system.ro
Fri Jun 22 13:04:19 CEST 2007


Hi Nick,

I made a fix on SVN trunk - TM will include a Max-Forwards header in the 
local generated ACK and CANCEL. Let me know if works ok for you.

Regards,
bogdan

nick wrote:
> 凌芳瑜 wrote:
>   
>> Dear All:
>> I've tried many methods to add Max-Forwarsd header into ACK message 
>> (message 8), all methods I tried were fail.
>> According to RFC 3261 8.1.1.6, Max-Forwards must exist in this ACK 
>> message. Can anyone tell me how to add a header into ACK message? Thank 
>> you very much.
>>
>>     UA11     :   NUT(Proxy 1) :       UA12
>>      |       :        |       :        |
>>      |-------:------->|       :        | 1. INVITE
>>      |<------:--------|       :        | 2. 407
>>      |-------:------->|       :        | 3. ACK
>>      |       :        |       :        |
>>      |-------:------->|       :        | 4. INVITE
>>      |       :        |-------:------->| 5. INVITE
>>      |<------:--------|       :        | 6. 100
>>      |       :        |       :        |
>>      |       :        |<------:--------| 7. 486 (Busy Here)
>>      |       :        |       :        |
>>      |       :        |-------:------->| 8. ACK
>>      |       :        |       :        |
>>      |<------:--------|       :        | 9. 486
>>      |       :        |       :        |
>>      |-------:------->|       :        |10. ACK
>>      |       :        |       :        |
>>
>> Best Regards,
>> Fangyu Ling
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at openser.org
>> http://openser.org/cgi-bin/mailman/listinfo/users
>>
>>     
> if(is_method "ACK") && !search(Max-Forwards:)){
> insert_hf("Max-Forwards: X ", "" )
> };
>
> Something like this (I guess you'll need a number in the max forwards
> header, etc)in the correct place (look at the documentation for
> insert_hf()) should do the job..
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
>   





More information about the Users mailing list