Hi,
maybe the simplest way will be to use the maxfwd module. See:
凌芳瑜 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(a)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(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users