Hi all, i need to remap "from" number prior to send call to a ToIP trunk
In my route[toip] i wrote: route[toip] { xlog("L_INFO","$ci - Route via TOIP from $fU to $tU (RURI: $ru)\n"); if (is_method("INVITE")) { setflag(DB_FLAG); setflag(ACC_DO); # do accounting } if($fU=~"6[0-9]{3}$") { # Change all 6xxx to 05771530xxx uac_replace_from("05771530"+$(fU{s.substr,1,0}),"sip:05771530"+$(fU{s.substr,1,0})+"@"+$Ri); append_hf("P-Asserted-Identity: <sip:05771530"+$(fU{s.substr,1,0})+"@"+$Ri+">\r\n"); } if(route_to_carrier("toip")) { t_on_failure("next_gw"); t_relay(); exit; } } but i got an error. Maybe i'm doing somewthing wrong with number manipulation. Suggestions how i can do the same thing in a more elegant manner are welcome ! Thanks for any help, Michele -- Michele Pinassi Responsabile Telefonia di Ateneo Servizio Reti, Sistemi e Sicurezza Informatica - Università degli Studi di Siena tel: 0577.(23)5000 - central...@unisi.it Per trovare una soluzione rapida ai tuoi problemi tecnici consulta le FAQ di Ateneo, http://www.faq.unisi.it
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users