default next hop for proxy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I tried modifying the proxy.h proxy_calculate_target function instead of
rejecting messages that are sent to me with no other routing information
forward them to a static next hop so at the end of the function I added
instead of the 404 not found code:

    if (is_uri_local(target)) 
	{
		// pjsip_host_port	 global.defNextHop is
intitialized 
		// somewhere else

		target->host = global.defNextHop.host;
		target->port = global.defNextHop.port;
		proxy_postprocess(tdata);
    }

This does not seem to work. The message is logged as going to the right
place with the right transport but it does not actually get sent. What
am I missing?

Thanks,
Brocha



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux