[Serusers] CC-Diversion and Cisco 3725

Marcello Lupo lupo at itspecialist.it
Tue Jan 20 12:58:59 CET 2004


Hi to all,
i have a Cisco 3725 as PSTN-VOIP gateway.
I have to implement the call transfer service (from VOIP to PSTN) using the 
CC-Diversion header field.
I understood, from the documentation, that the Cisco use the CC-Diversion 
field only on a 3xx answer. Is this true or can i use it in an originating 
call too??
Becouse when i receive a call from PSTN i have a script (used with exec_dset) 
that check if the call forward is active for that number, and if it is 
active, it rewrite the URI with the destination number changed with the 
number selected from the customer to transferr the call to.
My problem is that i need to put the original destinatin number in the 
CC-Diversion field so the gateway allow the call to pass through otherwise it 
will negate the call becouse it is originatig from a not allowed number on 
that PRI.
Using the CC-Diversion field the cisco should put in the ISDN Setup the 
Redirecting number as the original destination for that call and our provider 
will check that field to allow the call out.

But if i use this process tha cisco will manage the call forward as a new call 
originating from the proxy and not a 302 answer Moved temporarly. This is 
becouse i asked if the cisco will manage the CC-Diversion field only on a 302 
answer or in all cases.

I tried to use the sl_send_reply with this sintax:

if(uri=~"sip:123456 at 10.10.10.10.*"){
	exec_dset("/usr/local/etc/ser/rewriteuri_cf_unconditioned $URI");
append_hf("CC-Diversion:<sip:123456 at 20.20.20.20:5060>;reason=unconditional\r\n");
	rewritehost("30.30.30.30");  // Cisco IP
	sl_send_reply("302", "Moved Temporarily");
};


but when the cisco receive the packet there is not the CC-Diversion field in 
it. It seems to be as the SER is rewriting completely the URI to send the 
replay.
This probably due to my lack of experience on SIP can someone help me?
Thanks,
BYe,
MArcello





More information about the sr-users mailing list