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

Min Wang ser.basis at gmail.com
Wed Feb 23 16:38:04 CET 2011


Hi

thanks. it works,  the script can start without error. ( i did not check 
if the msg is really forwarded or not at this time)

yes, the wiki has the old prototypes.

http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.1.x#forward

I updated it, please check if it is correct.


Kind regards.



Min





On 02/22/2011 04:45 PM, Daniel-Constantin Mierla wrote:
> 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.
>>
>


-- 

Kind regards / Mit freundlichen Grüßen

Min Wang


BASIS AUDIONET


North America
BASIS AUDIONET * 716 N. Bethlehem Pike - Suite 300 * Lower Gwynedd * PA 19002 * USA
Phone  +1 215 674 8600 ext 451
Fax    +1 215 646 4959
wang at basis-audionet.com
www.basis-audionet.com

Europe
BASIS AUDIONET GmbH * Jessenstraße 4 * 22767 Hamburg * Germany
Phone  +49 40 85 31 14-0
Fax    +49 40 85 31 14-33
www.basis-audionet.de
Registered: Hamburg HR B 85866
Managing Director: Lutz Schaffhausen, Rüdiger Kaun




More information about the sr-users mailing list