[Kamailio-Users] uac_replace_from again
olivier.taylor at gmail.com
olivier.taylor at gmail.com
Wed Nov 4 18:16:15 CET 2009
maybe this can help?
U xxx.xxx.123.83:5060 -> yyy.yyy.67.183:5060
BYE sip:997321079 at yyy.yyy.67.183:5060 SIP/2.0.
Record-Route: <sip:xxx.xxx.123.83;ftag=as5f0cc351;lr=on>.
Via: SIP/2.0/UDP xxx.xxx.123.83;branch=z9hG4bKa922.9ab28507.0.
Via: SIP/2.0/UDP xxx.xxx.123.88:5060;branch=z9hG4bK04f04c65;rport=5060.
Route:
<sip:yyy.yyy.67.183;lr=on;ftag=5713;my_param=AAAAAAAAAAAAAAAACgBUWFxPXVpFWhhVSzE4Mw-->.
From: <sip:0485336302 at yyy.yyy.67.183>;tag=as5f0cc351.
To: "997321079" <sip:997321073 at finalcut.be>;tag=5713.
Contact: <sip:0485336302 at xxx.xxx.123.88>.
Call-ID: 1257324832-1991-MacBook%20de%20Olivier%20Taylor at 192.168.2.125.
CSeq: 102 BYE.
User-Agent: Phonext B2Bua.
Max-Forwards: 16.
Content-Length: 0.
.
#
U yyy.yyy.67.183:5060 -> xxx.xxx.123.83:5060
SIP/2.0 477 Send failed (477/TM).
Via: SIP/2.0/UDP xxx.xxx.123.83;branch=z9hG4bKa922.9ab28507.0.
Via: SIP/2.0/UDP xxx.xxx.123.88:5060;branch=z9hG4bK04f04c65;rport=5060.
From: <sip:0485336302 at yyy.yyy.67.183>;tag=as5f0cc351.
To: "997321079" <sip:997321073 at finalcut.be>;tag=5713.
Call-ID: 1257324832-1991-MacBook%20de%20Olivier%20Taylor at 192.168.2.125.
CSeq: 102 BYE.
Server: Kamailio (1.5.3-notls (i386/linux)).
Content-Length: 0.
olivier.taylor at gmail.com a écrit :
> centos 5.3 new install
>
> sysctl -a | grep dgram
> net.unix.max_dgram_qlen = 10
>
> sysctl -a | grep inet
> net.ipv4.inet_peer_gc_maxtime = 120
> net.ipv4.inet_peer_gc_mintime = 10
> net.ipv4.inet_peer_maxttl = 600
> net.ipv4.inet_peer_minttl = 120
> net.ipv4.inet_peer_threshold = 65664
>
>
> sysctl -a | grep ipv4
> net.ipv4.conf.eth0.promote_secondaries = 0
> net.ipv4.conf.eth0.force_igmp_version = 0
> net.ipv4.conf.eth0.disable_policy = 0
> net.ipv4.conf.eth0.disable_xfrm = 0
> net.ipv4.conf.eth0.arp_accept = 0
> net.ipv4.conf.eth0.arp_ignore = 0
> net.ipv4.conf.eth0.arp_announce = 0
> net.ipv4.conf.eth0.arp_filter = 0
> net.ipv4.conf.eth0.tag = 0
> net.ipv4.conf.eth0.log_martians = 0
> net.ipv4.conf.eth0.bootp_relay = 0
> net.ipv4.conf.eth0.medium_id = 0
> net.ipv4.conf.eth0.proxy_arp = 0
> net.ipv4.conf.eth0.accept_source_route = 0
> net.ipv4.conf.eth0.send_redirects = 1
> net.ipv4.conf.eth0.rp_filter = 1
> net.ipv4.conf.eth0.shared_media = 1
> net.ipv4.conf.eth0.secure_redirects = 1
> net.ipv4.conf.eth0.accept_redirects = 1
> net.ipv4.conf.eth0.mc_forwarding = 0
> net.ipv4.conf.eth0.forwarding = 0
> net.ipv4.conf.lo.promote_secondaries = 0
> net.ipv4.conf.lo.force_igmp_version = 0
> net.ipv4.conf.lo.disable_policy = 1
> net.ipv4.conf.lo.disable_xfrm = 1
> net.ipv4.conf.lo.arp_accept = 0
> net.ipv4.conf.lo.arp_ignore = 0
> net.ipv4.conf.lo.arp_announce = 0
> net.ipv4.conf.lo.arp_filter = 0
> net.ipv4.conf.lo.tag = 0
> net.ipv4.conf.lo.log_martians = 0
> net.ipv4.conf.lo.bootp_relay = 0
> net.ipv4.conf.lo.medium_id = 0
> net.ipv4.conf.lo.proxy_arp = 0
> net.ipv4.conf.lo.accept_source_route = 1
> net.ipv4.conf.lo.send_redirects = 1
> net.ipv4.conf.lo.rp_filter = 0
> net.ipv4.conf.lo.shared_media = 1
> net.ipv4.conf.lo.secure_redirects = 1
> net.ipv4.conf.lo.accept_redirects = 1
> net.ipv4.conf.lo.mc_forwarding = 0
> net.ipv4.conf.lo.forwarding = 0
> net.ipv4.conf.default.promote_secondaries = 0
> net.ipv4.conf.default.force_igmp_version = 0
> net.ipv4.conf.default.disable_policy = 0
> net.ipv4.conf.default.disable_xfrm = 0
> net.ipv4.conf.default.arp_accept = 0
> net.ipv4.conf.default.arp_ignore = 0
> net.ipv4.conf.default.arp_announce = 0
> net.ipv4.conf.default.arp_filter = 0
> net.ipv4.conf.default.tag = 0
> net.ipv4.conf.default.log_martians = 0
> net.ipv4.conf.default.bootp_relay = 0
> net.ipv4.conf.default.medium_id = 0
> net.ipv4.conf.default.proxy_arp = 0
> net.ipv4.conf.default.accept_source_route = 0
> net.ipv4.conf.default.send_redirects = 1
> net.ipv4.conf.default.rp_filter = 1
> net.ipv4.conf.default.shared_media = 1
> net.ipv4.conf.default.secure_redirects = 1
> net.ipv4.conf.default.accept_redirects = 1
> net.ipv4.conf.default.mc_forwarding = 0
> net.ipv4.conf.default.forwarding = 0
> net.ipv4.conf.all.promote_secondaries = 0
> net.ipv4.conf.all.force_igmp_version = 0
> net.ipv4.conf.all.disable_policy = 0
> net.ipv4.conf.all.disable_xfrm = 0
> net.ipv4.conf.all.arp_accept = 0
> net.ipv4.conf.all.arp_ignore = 0
> net.ipv4.conf.all.arp_announce = 0
> net.ipv4.conf.all.arp_filter = 0
> net.ipv4.conf.all.tag = 0
> net.ipv4.conf.all.log_martians = 0
> net.ipv4.conf.all.bootp_relay = 0
> net.ipv4.conf.all.medium_id = 0
> net.ipv4.conf.all.proxy_arp = 0
> net.ipv4.conf.all.accept_source_route = 0
> net.ipv4.conf.all.send_redirects = 1
> net.ipv4.conf.all.rp_filter = 0
> net.ipv4.conf.all.shared_media = 1
> net.ipv4.conf.all.secure_redirects = 1
> net.ipv4.conf.all.accept_redirects = 1
> net.ipv4.conf.all.mc_forwarding = 0
> net.ipv4.conf.all.forwarding = 0
> net.ipv4.neigh.eth0.base_reachable_time_ms = 30000
> net.ipv4.neigh.eth0.retrans_time_ms = 1000
> net.ipv4.neigh.eth0.locktime = 99
> net.ipv4.neigh.eth0.proxy_delay = 79
> net.ipv4.neigh.eth0.anycast_delay = 99
> net.ipv4.neigh.eth0.proxy_qlen = 64
> net.ipv4.neigh.eth0.unres_qlen = 3
> net.ipv4.neigh.eth0.gc_stale_time = 60
> net.ipv4.neigh.eth0.delay_first_probe_time = 5
> net.ipv4.neigh.eth0.base_reachable_time = 30
> net.ipv4.neigh.eth0.retrans_time = 99
> net.ipv4.neigh.eth0.app_solicit = 0
> net.ipv4.neigh.eth0.ucast_solicit = 3
> net.ipv4.neigh.eth0.mcast_solicit = 3
> net.ipv4.neigh.lo.base_reachable_time_ms = 30000
> net.ipv4.neigh.lo.retrans_time_ms = 1000
> net.ipv4.neigh.lo.locktime = 99
> net.ipv4.neigh.lo.proxy_delay = 79
> net.ipv4.neigh.lo.anycast_delay = 99
> net.ipv4.neigh.lo.proxy_qlen = 64
> net.ipv4.neigh.lo.unres_qlen = 3
> net.ipv4.neigh.lo.gc_stale_time = 60
> net.ipv4.neigh.lo.delay_first_probe_time = 5
> net.ipv4.neigh.lo.base_reachable_time = 30
> net.ipv4.neigh.lo.retrans_time = 99
> net.ipv4.neigh.lo.app_solicit = 0
> net.ipv4.neigh.lo.ucast_solicit = 3
> net.ipv4.neigh.lo.mcast_solicit = 3
> net.ipv4.neigh.default.base_reachable_time_ms = 30000
> net.ipv4.neigh.default.retrans_time_ms = 1000
> net.ipv4.neigh.default.gc_thresh3 = 1024
> net.ipv4.neigh.default.gc_thresh2 = 512
> net.ipv4.neigh.default.gc_thresh1 = 128
> net.ipv4.neigh.default.gc_interval = 30
> net.ipv4.neigh.default.locktime = 99
> net.ipv4.neigh.default.proxy_delay = 79
> net.ipv4.neigh.default.anycast_delay = 99
> net.ipv4.neigh.default.proxy_qlen = 64
> net.ipv4.neigh.default.unres_qlen = 3
> net.ipv4.neigh.default.gc_stale_time = 60
> net.ipv4.neigh.default.delay_first_probe_time = 5
> net.ipv4.neigh.default.base_reachable_time = 30
> net.ipv4.neigh.default.retrans_time = 99
> net.ipv4.neigh.default.app_solicit = 0
> net.ipv4.neigh.default.ucast_solicit = 3
> net.ipv4.neigh.default.mcast_solicit = 3
> net.ipv4.udp_wmem_min = 4096
> net.ipv4.udp_rmem_min = 4096
> net.ipv4.udp_mem = 195552 260736 391104
> net.ipv4.cipso_rbm_strictvalid = 1
> net.ipv4.cipso_rbm_optfmt = 0
> net.ipv4.cipso_cache_bucket_size = 10
> net.ipv4.cipso_cache_enable = 1
> net.ipv4.tcp_slow_start_after_idle = 1
> net.ipv4.tcp_dma_copybreak = 4096
> net.ipv4.tcp_workaround_signed_windows = 0
> net.ipv4.tcp_base_mss = 512
> net.ipv4.tcp_mtu_probing = 0
> net.ipv4.tcp_abc = 0
> net.ipv4.tcp_congestion_control = bic
> net.ipv4.tcp_tso_win_divisor = 3
> net.ipv4.tcp_moderate_rcvbuf = 1
> net.ipv4.tcp_no_metrics_save = 0
> net.ipv4.ipfrag_max_dist = 64
> net.ipv4.ipfrag_secret_interval = 600
> net.ipv4.tcp_low_latency = 0
> net.ipv4.tcp_frto = 0
> net.ipv4.tcp_tw_reuse = 0
> net.ipv4.icmp_ratemask = 6168
> net.ipv4.icmp_ratelimit = 1000
> net.ipv4.tcp_adv_win_scale = 2
> net.ipv4.tcp_app_win = 31
> net.ipv4.tcp_rmem = 4096 87380 4194304
> net.ipv4.tcp_wmem = 4096 16384 4194304
> net.ipv4.tcp_mem = 98304 131072 196608
> net.ipv4.tcp_dsack = 1
> net.ipv4.tcp_ecn = 0
> net.ipv4.tcp_reordering = 3
> net.ipv4.tcp_fack = 1
> net.ipv4.tcp_orphan_retries = 0
> net.ipv4.inet_peer_gc_maxtime = 120
> net.ipv4.inet_peer_gc_mintime = 10
> net.ipv4.inet_peer_maxttl = 600
> net.ipv4.inet_peer_minttl = 120
> net.ipv4.inet_peer_threshold = 65664
> net.ipv4.igmp_max_msf = 10
> net.ipv4.igmp_max_memberships = 20
> net.ipv4.route.rt_cache_rebuild_count = 4
> net.ipv4.route.secret_interval = 600
> net.ipv4.route.min_adv_mss = 256
> net.ipv4.route.min_pmtu = 552
> net.ipv4.route.mtu_expires = 600
> net.ipv4.route.gc_elasticity = 8
> net.ipv4.route.error_burst = 5000
> net.ipv4.route.error_cost = 1000
> net.ipv4.route.redirect_silence = 20480
> net.ipv4.route.redirect_number = 9
> net.ipv4.route.redirect_load = 20
> net.ipv4.route.gc_interval = 60
> net.ipv4.route.gc_timeout = 300
> net.ipv4.route.gc_min_interval_ms = 500
> net.ipv4.route.gc_min_interval = 0
> net.ipv4.route.max_size = 524288
> net.ipv4.route.gc_thresh = 32768
> net.ipv4.route.max_delay = 10
> net.ipv4.route.min_delay = 2
> net.ipv4.icmp_errors_use_inbound_ifaddr = 0
> net.ipv4.icmp_ignore_bogus_error_responses = 1
> net.ipv4.icmp_echo_ignore_broadcasts = 1
> net.ipv4.icmp_echo_ignore_all = 0
> net.ipv4.ip_local_port_range = 32768 61000
> net.ipv4.tcp_max_syn_backlog = 1024
> net.ipv4.tcp_rfc1337 = 0
> net.ipv4.tcp_stdurg = 0
> net.ipv4.tcp_abort_on_overflow = 0
> net.ipv4.tcp_tw_recycle = 0
> net.ipv4.tcp_syncookies = 1
> net.ipv4.tcp_fin_timeout = 60
> net.ipv4.tcp_retries2 = 15
> net.ipv4.tcp_retries1 = 3
> net.ipv4.tcp_keepalive_intvl = 75
> net.ipv4.tcp_keepalive_probes = 9
> net.ipv4.tcp_keepalive_time = 7200
> net.ipv4.ipfrag_time = 30
> net.ipv4.ip_dynaddr = 0
> net.ipv4.ipfrag_low_thresh = 196608
> net.ipv4.ipfrag_high_thresh = 262144
> net.ipv4.tcp_max_tw_buckets = 180000
> net.ipv4.tcp_max_orphans = 32768
> net.ipv4.tcp_synack_retries = 5
> net.ipv4.tcp_syn_retries = 5
> net.ipv4.ip_nonlocal_bind = 0
> net.ipv4.ip_no_pmtu_disc = 0
> net.ipv4.ip_default_ttl = 64
> net.ipv4.ip_forward = 0
> net.ipv4.tcp_retrans_collapse = 1
> net.ipv4.tcp_sack = 1
> net.ipv4.tcp_window_scaling = 1
> net.ipv4.tcp_timestamps = 1
>
>
>
>
> Daniel-Constantin Mierla a écrit :
>>
>>
>> On 04.11.2009 16:54 Uhr, olivier.taylor at gmail.com wrote:
>>> If you follow the thread, you will see that I was using :
>>>
>>> if (has_totag()) {
>>> if (loose_route()) {
>>> if (is_method("BYE")) {
>>> xlog("L_NOTICE", "------------------> LOOSE route");
>>> if (!t_relay())
>>> {
>>> sl_reply_error();
>>> }
>>> exit;
>>> }
>>> }
>>> }
>>>
>>>
>>> and not
>>> if(has_totag()){
>>> if(is_method("BYE")){
>>> xlog("L_NOTICE", "------------------> LOOSE route");
>>> }
>>> t_relay(); #relay all in-dialog messages (also BYEs)
>>> exit;
>>> }
>>>
>>> Wich was proposed by another user...
>>>
>>>
>>> Anyway, using that, I get :
>>>
>>> Nov 4 18:48:37 localhost /usr/local/sbin/kamailio[30514]:
>>> ------------------> LOOSE route
>>> Nov 4 18:48:38 localhost /usr/local/sbin/kamailio[30511]:
>>> ------------------> LOOSE route
>>> Nov 4 18:48:40 localhost /usr/local/sbin/kamailio[30514]:
>>> ------------------> LOOSE route
>>> Nov 4 18:48:44 localhost /usr/local/sbin/kamailio[30511]:
>>> ERROR:core:udp_send: sendto(sock,0xa2b359d0,65564,0,0xa2af4484,16):
>>> Message too long(90)
>>
>> What is the max datagram size in your system? Are you using freebsd?
>> 'sysctl -a' to see all and search for inet or ipv4 and dgram or so ...
>>
>> Cheers,
>> Daniel
>>
>>
>>> Nov 4 18:48:44 localhost /usr/local/sbin/kamailio[30511]:
>>> ERROR:tm:msg_send: udp_send failed
>>> Nov 4 18:48:44 localhost /usr/local/sbin/kamailio[30511]:
>>> ERROR:tm:t_forward_nonack: sending request failed
>>> Nov 4 18:48:44 localhost /usr/local/sbin/kamailio[30516]:
>>> ------------------> LOOSE route
>>> Nov 4 18:48:48 localhost /usr/local/sbin/kamailio[30513]:
>>> ------------------> LOOSE route
>>> Nov 4 18:48:50 localhost /usr/local/sbin/kamailio[30513]:
>>> ------------------> LOOSE route
>>> Nov 4 18:48:52 localhost /usr/local/sbin/kamailio[30512]:
>>> ------------------> LOOSE route
>>>
>>>
>>>
>>>
>>> and so on...
>>>
>>> Then, using Loose-route doesn't help.
>>>
>>> I am sure I made a mistake somewhere, but I don't know where.
>>>
>>> In the previous mail you will find my full CFG
>>>
>>> kind regards,
>>>
>>> Olivier
>>>
>>> Iñaki Baz Castillo a écrit :
>>>> El Miércoles, 4 de Noviembre de 2009, olivier.taylor at gmail.com
>>>> escribió:
>>>>
>>>>> dear Iñaki
>>>>>
>>>>> I have a server up and running at this time, my only problem is
>>>>> when I use
>>>>> uac_replace_from and receive a Bye from the callee. That's for
>>>>> another
>>>>> server.
>>>>> The default config doesn't help for that, or maybe I am stupid,
>>>>> that's
>>>>> another possibility :)
>>>>>
>>>>
>>>> Your code is not correct:
>>>>
>>>> if(has_totag()){
>>>> if(is_method("BYE")){
>>>> xlog("L_NOTICE", "------------------> LOOSE route");
>>>> }
>>>> t_relay(); #relay all in-dialog messages (also BYEs)
>>>> exit;
>>>> }
>>>>
>>>> You must use loose_route() before the t_relay(). If not the Route
>>>> header are not removed so you get a loop. This is well explained in
>>>> the default config file.
>>>>
>>>>
>>>>
>>>>
>>>>> your message is very helpfull, thanks,
>>>>>
>>>>
>>>> Thanks.
>>>>
>>>> _______________________________________________
>>>> Kamailio (OpenSER) - Users mailing list
>>>> Users at lists.kamailio.org
>>>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>>>> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
>>>>
>>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>> _______________________________________________
>>> Kamailio (OpenSER) - Users mailing list
>>> Users at lists.kamailio.org
>>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>>> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
>>
>
>
>
More information about the sr-users
mailing list