[OpenSER-Users] Insert a Header into ACK message
nick
nick at mobilia.it
Thu Jun 21 10:59:32 CEST 2007
凌芳瑜 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..
More information about the Users
mailing list