Hi François!
Am 21.05.2010 09:26, schrieb François BERGANZ:
When I use forward, it doesnt work! I don't know how to do
It works fine for me:
route{
if (is_method("CANCEL")) { if (!is_present_hf("Reason")) { xlog("L_ERR", "reason missing"); append_hf("Reason: Q.850; cause=31\r\n"); xlog("L_ERR", "Reason added"); } forward(); exit; }
Note: above code snippet only works if the proxy does not do any parallel forking of the INVITE. It may also be necessary to change the request-URI to forward the request to the same destination as the INVITE.
in: U 2010/05/21 10:29:38.372934 83.136.33.3:16534 -> 88.198.53.113:5060 CANCEL sip:01505641636@83.123.45.165 SIP/2.0 Via: SIP/2.0/UDP 10.10.0.51:16534;branch=z9hG4bK-d8754z-7b591160b17cfc57-1---d8754z-;rport To: "01505641636"sip:01505641636@83.123.45.165 From: sip:klaus@83.123.45.165;tag=7c681960 Call-ID: MzcxYTgzZmIwMGYyMTA4YzVkN2IzZDhjYjhjYjYwNTk. CSeq: 2 CANCEL User-Agent: eyeBeam release 1102q stamp 51814 Content-Length: 0
out: U 2010/05/21 10:29:38.373331 88.198.53.113:5060 -> 83.123.45.165:5060 CANCEL sip:01505641636@83.123.45.165 SIP/2.0 Via: SIP/2.0/UDP 88.198.53.113;branch=z9hG4bK-d8754z-7b591160b17cfc57-1---d8754z- Via: SIP/2.0/UDP 10.10.0.51:16534;received=83.136.33.3;branch=z9hG4bK-d8754z-7b591160b17cfc57-1---d8754z-;rport=16534 To: "01505641636"sip:01505641636@83.123.45.165 From: sip:klaus@83.123.45.165;tag=7c681960 Call-ID: MzcxYTgzZmIwMGYyMTA4YzVkN2IzZDhjYjhjYjYwNTk. CSeq: 2 CANCEL User-Agent: eyeBeam release 1102q stamp 51814 Content-Length: 0 Reason: Q.850; cause=31
regards Klaus