Hello, I ran out into some problem when implementing Call Forwarding feature using SER. My test setup: 192.168.25.101 - XLite ---> INVITE UA(sip:444) 192.168.25.163 - ser; rewrites to Address of record of Asterisk (sip:1111 instead of sip:444) 192.168.25.169 - PBX Asterisk
As I see from log files, SER sends INVITE 2 times, then Asterisk sends 3 times 200 status etc . until BYE is sent (here everything correct....) Here is my configuration script: ================================== route{ . . .
record_route(); #--rewrite URI if (method=="INVITE"){ #--call forwarding setflag(1); route(1); #--cfw if(!isflagset(1)) { break; } lookup("location") ... };
route[1] { log(1, "forwarding\n"); if (!if_activated("to")) { #--continue regular call set up break; }; if (!lookup_dn()){ sl_send_reply("404","Not Found"); resetflag(1); #--continue! break; }; } Here if_activated checks whether the feature was activated; lookup_dn() rewrites URI to new UA and call append_branch()
Any ideas what I am doing wrong?
if (!t_relay()) { sl_reply_error(); }; } ===========
Any help will be highly appreciated!!! Thanks, Tina, software engineer
--------------------------------- Do you Yahoo!? Yahoo! Small Business - Try our new resources site!