Take a look at where route(frompstn) is being called. It's probably in a 'if' statement, meaning that if the source address is the pstn.gw_ip, then return TRUE. Returning -1 is like saying, FALSE.
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users