Hi, My problem is now fixed. The last trick was adding a is_direction("upstream") in route[WITHINDLG] for choosing which BYE message i need to modify. Thanks everyone for your help. Cheers. -- -aft