[SR-Users] kamailio 3.1: forward("10.0.0.10:5060") not working?

Daniel-Constantin Mierla miconda at gmail.com
Tue Feb 22 22:45:21 CET 2011


Hello,

after integration of the new core between Kamailio and SER this function 
changed and I guess the wiki is still having the old prototype.

Try:
forward(67.154.xx.xx, 5080);

and see if this one works for you.

Cheers,
Daniel

On 2/22/11 7:30 PM, Min Wang wrote:
> HI
>
> It seems the forward("host:port") not working in the kamailio 3.1?
>
> the simple route like:
> route {
>
>        forward("67.154.xx.xx:5080");
> }
>
> the error is: <core> [proxy.c:278]: ERROR: mk_proxy: could not resolve 
> hostname: "67.154.xx.xx:5080"
>
>
> Anything missing?
>
>
> the detailed log is:
>  0(8500) DEBUG: <core> [sr_module.c:625]: find_export_record: found 
> <load_tm> in module tm [/usr/lib/kamailio/modules/tm.so]
>  0(8500) DEBUG: <core> [sr_module.c:625]: find_export_record: found 
> <t_newtran> in module tm [/usr/lib/kamailio/modules/tm.so]
>  0(8500) DEBUG: <core> [sr_module.c:625]: find_export_record: found 
> <t_relay_to_tcp> in module tm [/usr/lib/kamailio/modules/tm.so]
>  0(8500) DEBUG: <core> [sr_module.c:625]: find_export_record: found 
> <t_relay_to_udp> in module tm [/usr/lib/kamailio/modules/tm.so]
>  0(8500) DEBUG: <core> [sr_module.c:625]: find_export_record: found 
> <t_relay> in module tm [/usr/lib/kamailio/modules/tm.so]
>  0(8500) DEBUG: <core> [sr_module.c:625]: find_export_record: found 
> <t_forward_nonack> in module tm [/usr/lib/kamailio/modules/tm.so]
>  0(8500) DEBUG: <core> [sr_module.c:625]: find_export_record: found 
> <t_release> in module tm [/usr/lib/kamailio/modules/tm.so]
>  0(8500) DEBUG: <core> [main.c:2371]: Expect (at least) 18 SER 
> processes in your process list
>  0(8500) DEBUG: <core> [proxy.c:278]: DEBUG: mk_proxy: doing DNS 
> lookup...
>  0(8500) DEBUG: <core> [dns_cache.c:567]: 
> dns_hash_find(_sip._udp.67.154.xx.xx:5080(28), 33), h=780
>  0(8500) DEBUG: <core> [resolve.c:727]: get_record: 
> lookup(_sip._udp.67.154.xx.xx.:5080, 33) failed
>  0(8500) DEBUG: <core> [dns_cache.c:895]: 
> dns_cache_mk_bad_entry(_sip._udp.67.154.xx.xx:5080, 33, 60, 1)
>  0(8500) DEBUG: <core> [dns_cache.c:828]: dns_cache_add: adding 
> _sip._udp.67.154.xx.xx:5080(28) 33 (flags=1) at 780
>  0(8500) DEBUG: <core> [dns_cache.c:567]: 
> dns_hash_find(67.154.xx.xx:5080(18), 1), h=16
>  0(8500) DEBUG: <core> [resolve.c:727]: get_record: 
> lookup(67.154.xx.xx:5080, 1) failed
>  0(8500) DEBUG: <core> [dns_cache.c:895]: 
> dns_cache_mk_bad_entry(67.154.xx.xx:5080, 1, 60, 1)
>  0(8500) DEBUG: <core> [dns_cache.c:828]: dns_cache_add: adding 
> 67.154.xx.xx:5080(18) 1 (flags=1) at 16
>  0(8500) : <core> [proxy.c:278]: ERROR: mk_proxy: could not resolve 
> hostname: "67.154.xx.xx:5080"
>  0(8500) ERROR: <core> [route.c:1161]: fixing failed (code=-478) at 
> cfg:/etc/kamailio/kamailio.cfg:394
> ERROR: error -478 while trying to fix configuration
>  0(8500) DEBUG: tm [t_funcs.c:122]: DEBUG: tm_shutdown : start
>  0(8500) DEBUG: tm [t_funcs.c:125]: DEBUG: tm_shutdown : emptying hash 
> table
>  0(8500) DEBUG: tm [t_funcs.c:127]: DEBUG: tm_shutdown : removing 
> semaphores
>  0(8500) DEBUG: tm [t_funcs.c:129]: DEBUG: tm_shutdown : destroying 
> tmcb lists
>  0(8500) DEBUG: tm [t_funcs.c:132]: DEBUG: tm_shutdown : done
>  0(8500) DEBUG: <core> [mem/shm_mem.c:236]: shm_mem_destroy
>  0(8500) DEBUG: <core> [mem/shm_mem.c:239]: destroying the shared 
> memory lock
>
>
>
> thx.
>

-- 
Daniel-Constantin Mierla
http://www.asipto.com




More information about the sr-users mailing list