[prev in list] [next in list] [prev in thread] [next in thread]
List: serusers
Subject: Re: [SR-Users] =?utf-8?q?t=5Frelay_dying_=3F?=
From: Ðвгений Ðолей <goley_ev_sp () mail ! ru>
Date: 2017-12-26 16:58:04
Message-ID: 1514307484.332289447 () f458 ! i ! mail ! ru
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
[Attachment #4 (text/plain)]
Pay attention to the answer 200 ok from asterisk and the one that kamailio sends to \
the provider side. The ACK specifies the values taken from the Contact header in the \
response 200 OK
> Вторник, 26 декабря 2017, 19:54 +03:00 от Евгений Голей <goley_ev_sp@mail.ru>:
>
> Daniel hello!
>
> This is because the provider must respond to the ACK not with KAMAILIOIP: 5060 SIP \
> / 2.0, and in the domain part, asterisk addresses must be specified.
> Send the config.
>
> Evgeniy
>
>
> > Вторник, 26 декабря 2017, 18:53 +03:00 от Jean Cérien < cerien.jean@gmail.com >:
> >
> >
> > Daniel
> >
> > Many thanks for your help in this holidays season.
> >
> > The ACK is now going out and executions follows, which is good, however, the ack \
> > is sent to the Kamailio box itself and not actually forwarded to the asterisk \
> > (I've attached at the end of this message the initial invite, received ACK and \
> > "forwarded" ACK).
> > Both packet go through very classic config, starting with dlg_manage(), then if \
> > (has_totag()), if (loose_route()), which leads to route(RELAY), which does the \
> > actual call to t_relay.
> > This sequence works fine with other providers, I cant see what is wrong !
> >
> > Regards
> > J
> >
> >
> > Initial invite received from provider
> >
> > 2017/12/26 15:21:47.414524 VOIP-IP:5060 -> KAMAILIOIP:5060
> > INVITE sip:CALLED-NUM@KAMAILIOIP SIP/2.0
> > Via: SIP/2.0/UDP VOIP-IP:5060;branch=z9hG4bKh5r5mp20007mno86oit0.1
> > P-Asserted-Identity: < sip:CALLING-NUM@orange-multimedia.fr >
> > To: <sip:CALLED-NUM@KAMAILIOIP:5060>
> > From: < sip:CALLING-NUM@orange-multimedia.fr \
> > >;tag=SDf1f0501-496399c4-0016-096a-0000-0000
> > Call-ID: SDf1f0501-70980730711ea436a8ed241985dddc7d-v300g00040
> > CSeq: 1 INVITE
> > Max-Forwards: 65
> > Contact: <sip:CALLING-NUM@VOIP-IP:5060;transport=udp>
> > Allow: INVITE, ACK, BYE, CANCEL, OPTIONS
> > Supported: uui,timer
> > Accept: application/sdp, application/isup, application/xml
> > P-Access-Network-Info: GSTN;operator-specific-GI="639720000";network-provided
> > Content-Type: application/sdp
> > Content-Length: 221
> > Session-Expires: 1800; refresher=uac
> > Min-SE: 90
> >
> >
> > ACK Received from provider
> >
> > 2017/12/26 15:21:47.473423 VOIP-IP:5060 -> KAMAILIOIP:5060
> > ACK sip:CALLED-NUM@KAMAILIOIP:5060 SIP/2.0
> > Via: SIP/2.0/UDP VOIP-IP:5060;branch=z9hG4bKmdfnm110182k1pbvl180.1
> > To: <sip:KAMAILIOIP:5060>;tag=as3eec8631
> > From: < sip:CALLING-NUM@orange-multimedia.fr \
> > >;tag=SDf1f0501-496399c4-0016-096a-0000-0000
> > Call-ID: SDf1f0501-70980730711ea436a8ed241985dddc7d-v300g00040
> > CSeq: 1 ACK
> > Max-Forwards: 66
> > Content-Length: 0
> > Route: <sip:KAMAILIOIP;lr=on;ftag=SDf1f0501-496399c4-0016-096a-0000-0000;did=eea.aa52>
> >
> >
> > ACK Forwarded
> >
> > 2017/12/26 15:21:47.473898 KAMAILIOIP:5060 -> KAMAILIOIP:5060
> > ACK sip:KAMAILIOIP;lr=on;ftag=SDf1f0501-496399c4-0016-096a-0000-0000;did=eea.aa52 \
> > SIP/2.0
> > Via: SIP/2.0/UDP KAMAILIOIP;branch=z9hG4bK52bb.2e7f3f0b7c8c60b92bfa2d945cc9829d.0
> > Via: SIP/2.0/UDP VOIP-IP:5060;branch=z9hG4bKmdfnm110182k1pbvl180.1
> > To: <sip:KAMAILIOIP:5060>;tag=as3eec8631
> > From: < sip:CALLING-NUM@orange-multimedia.fr \
> > >;tag=SDf1f0501-496399c4-0016-096a-0000-0000
> > Call-ID: SDf1f0501-70980730711ea436a8ed241985dddc7d-v300g00040
> > CSeq: 1 ACK
> > Max-Forwards: 65
> > Content-Length: 0
> >
> >
> >
> >
> > On Sat, Dec 23, 2017 at 8:12 AM, Daniel-Constantin Mierla < miconda@gmail.com > \
> > wrote:
> > > I just tested and works fine. Try with master branch and default
> > > config file.
> > > To test I modified a bit the default kamailio.cfg and I have in
> > > route[RELAY]:
> > > xlog("=======* request $rm before relay\n");
> > > if (!t_relay()) {
> > > xlog("=======x request $rm not relayed\n");
> > > sl_reply_error();
> > > }
> > > xlog("=======> request $rm relayed\n");
> > > I get the ACK routed and in logs I get:
> > > {1 2 ACK 1473723014@127.0.0.1 } 2(20129) ERROR: <script>:
> > > =======* request ACK before relay
> > > {1 2 ACK 1473723014@127.0.0.1 } 2(20129) ERROR: <script>:
> > > =======> request ACK relayed
> > > Cheers,
> > > Daniel
> > >
> > > On 22.12.17 21:00, Jean Cérien wrote:
> > > >
> > > > Many thanks for your help.
> > > > I've applied the patch, recompiled and I see no difference
> > > > unfortunately. The ACK is not forwarded, and execution after
> > > > t_relay stops.
> > > >
> > > > I've set the debug level to 4 and captured the traces - I
> > > > believe the section dealing with the ACK is there: \
> > > > https://pastebin.com/TG03YQWC
> > > > KR
> > > > J.
> > > >
> > > > On Fri, Dec 22, 2017 at 11:59 AM,
> > > > Daniel-Constantin Mierla < miconda@gmail.com > wrote:
> > > > > Hello,
> > > > > can you give a try with latest master branch or by
> > > > > using the patch from next link?
> > > > > - https://github.com/kamailio/kamailio/commit/52111974b4571e0562e8e731df80f48dbc504915
> > > > > Apparently the t_realy() stopped script execution (by
> > > > > returning 0) when e2e ACK forwarding was successful. The
> > > > > patch should change that to return true.
> > > > > If all works fine while testing, then I will backport.
> > > > > Cheers,
> > > > > Daniel
> > > > >
> > > > >
> > > > > On
> > > > > 22.12.17 14:05, Jean Cérien wrote:
> > > > > >
> > > > > > Hello
> > > > > > I've tried mhomed = 1 with no luck - not so
> > > > > > sure what you mean by default route, I've added
> > > > > > listen = udp:myadsress:5060
> > > > > > I also have auto_aliases=no and
> > > > > > alias=myaddress
> > > > > >
> > > > > > However, what bugs me is that execution
> > > > > > seems to stop INSIDE t_relay and the info
> > > > > > message after the t_relay is not displayed.
> > > > > >
> > > > > > I hate to say this, but could this be a bug
> > > > > > ?
> > > > > >
> > > > > > Rgds
> > > > > > J.
> > > > > >
> > > > > >
> > > > > > On Fri, Dec 22, 2017 at
> > > > > > 1:52 AM, Sergey Safarov < s.safarov@gmail.com > wrote:
> > > > > > > Check that your installation
> > > > > > > have one NIC with only one default route on
> > > > > > > host.
> > > > > > > If not check that "mhomed=1" is
> > > > > > > enabled.
> > > > > > >
> > > > > > > Sergey
> > > > > > > пт, 22 дек. 2017 г. в 0:02,
> > > > > > > Jean Cérien < cerien.jean@gmail.com >:
> > > > > > > >
> > > > > > > > Hello
> > > > > > > > I am using kamailio 5.0.2, on a
> > > > > > > > debian 9 system.
> > > > > > > >
> > > > > > > > Everything was running fine, until
> > > > > > > > one of our voip provider changed his
> > > > > > > > switch. Our kamailio is relaying
> > > > > > > > between several voip providers and
> > > > > > > > several asterisk (only the
> > > > > > > > signalisation, no rtp).
> > > > > > > >
> > > > > > > > When we get an invite from this new
> > > > > > > > switch, we select an asterisk and
> > > > > > > > relay it correctly to this box.
> > > > > > > > However, the OK is relayed back. But
> > > > > > > > when the voip providers sends an ACK
> > > > > > > > for this OK, the t_relay function does
> > > > > > > > not return at all, it just dies with
> > > > > > > > no action and no error.
> > > > > > > >
> > > > > > > > Here is the snippet from
> > > > > > > > route(relay)
> > > > > > > >
> > > > > > > >
> > > > > > > > xlog("L_INFO","route(relay) @@ $rm
> > > > > > > > - Source: $si:$sp, fu:$fu, tu:$tu\n"
> > > > > > > > );
> > > > > > > >
> > > > > > > > $var(restrelay)=t_relay();
> > > > > > > >
> > > > > > > > xlog("L_INFO","route(relay) @@ $rm
> > > > > > > > - t_relay result: $var(restrelay)"
> > > > > > > > );
> > > > > > > > if (!$var(restrelay)) {
> > > > > > > >
> > > > > > > > When processing the initial invite,
> > > > > > > > I do get both INFO messages. When the
> > > > > > > > ACK is processed, I only get one INFO
> > > > > > > > message, and no ACK is relayed - so it
> > > > > > > > seems execution dies in the t_relay
> > > > > > > >
> > > > > > > > What could be wrong ???
> > > > > > > >
> > > > > > > > J.
> > > > > > > >
> > > > > > > > Details of the ACK:
> > > > > > > >
> > > > > > > > ACK sip:dialednumber@kamailioIP :5060
> > > > > > > > SIP/2.0
> > > > > > > > Via:
> > > > > > > > SIP/2.0/UDP
> > > > > > > > VOIPPROVIDERIP:5060;branch=z9hG4bKjq16fi00d85uee181ic0.1
> > > > > > > > To: <sip:kamailioIP:5060> ;tag=as7f10ed48
> > > > > > > > From:
> > > > > > > > < sip:sourcenumber@orange-multimedia.fr \
> > > > > > > > >;tag=SD8u3ob01-7dd8efde-0002-00d5-0000-0000 Call-ID:
> > > > > > > > SD8u3ob01-688d41f5e2164ceeafe76f40b82b3f97-v300g00030
> > > > > > > > CSeq:
> > > > > > > > 1 ACK
> > > > > > > > Max-Forwards:
> > > > > > > > 66
> > > > > > > > Content-Length:
> > > > > > > > 0
> > > > > > > > Route:
> > > > > > > > < sip:kamailioIP;lr=on;ftag= \
> > > > > > > > SD8u3ob01-7dd8efde-0002-00d5-0000-0000;did=a0b.49d>
> > > > > > > >
> > > > > > > >
> > > > > > > > (should you have enough width; the
> > > > > > > > diagram will look ok)
> > > > > > > >
> > > > > > > >
> > > > > > > > VOIP PROVIDER
> > > > > > > > KAMAILIO
> > > > > > > > ASTERISK
> > > > > > > >
> > > > > > > > 21:38:54.685149 │
> > > > > > > > ──────────────────────────> │
> > > > > > > > │
> > > > > > > > ▒
> > > > > > > > +0.000451 │ 100 trying --
> > > > > > > > your call is │
> > > > > > > > │
> > > > > > > > ▒
> > > > > > > > 21:38:54.685600 │
> > > > > > > > <────────────────────────── │
> > > > > > > > │
> > > > > > > > ▒
> > > > > > > > +0.000084 │
> > > > > > > > │ INVITE
> > > > > > > > (SDP) │
> > > > > > > > ▒
> > > > > > > > 21:38:54.685684 │
> > > > > > > > │
> > > > > > > > ──────────────────────────> │
> > > > > > > >
> > > > > > > > ▒
> > > > > > > > +0.000831 │
> > > > > > > > │ 100 Trying
> > > > > > > > │
> > > > > > > > ▒
> > > > > > > > 21:38:54.686515 │
> > > > > > > > │
> > > > > > > > <────────────────────────── │
> > > > > > > >
> > > > > > > > ▒
> > > > > > > > +0.000471 │
> > > > > > > > │ 200 OK
> > > > > > > > (SDP) │
> > > > > > > > ▒
> > > > > > > > 21:38:54.686986 │
> > > > > > > > │
> > > > > > > > <────────────────────────── │
> > > > > > > >
> > > > > > > > ▒
> > > > > > > > +0.000394 │ 200 OK
> > > > > > > > (SDP) │
> > > > > > > > │
> > > > > > > > ▒
> > > > > > > > 21:38:54.687380 │
> > > > > > > > <────────────────────────── │
> > > > > > > > │
> > > > > > > > ▒
> > > > > > > > +0.038694 │
> > > > > > > > ACK │
> > > > > > > > │
> > > > > > > > ▒
> > > > > > > > 21:38:54.726074 │
> > > > > > > > ──────────────────────────> │
> > > > > > > > │
> > > > > > > > ▒
> > > > > > > > +0.060155 │
> > > > > > > > │ 200 OK
> > > > > > > > (SDP) │
> > > > > > > > ▒
> > > > > > > > 21:38:54.786229 │
> > > > > > > > │
> > > > > > > > <<<────────────────────────
> > > > > > > > │
> > > > > > > > ▒
> > > > > > > > +0.000138 │ 200 OK
> > > > > > > > (SDP) │
> > > > > > > > │
> > > > > > > > ▒
> > > > > > > > 21:38:54.786367 │
> > > > > > > > <<<────────────────────────
> > > > > > > > │ │
> > > > > > > > ▒
> > > > > > > > +0.005721 │
> > > > > > > > ACK │
> > > > > > > > │
> > > > > > > >
> > > > > > > >
> > > > > > > > _______________________________________________
> > > > > > > > Kamailio (SER) - Users Mailing List
> > > > > > > > sr-users@lists.kamailio.org
> > > > > > > > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> > > > > > >
> > > > > > > _______________________________________________
> > > > > > > Kamailio (SER) - Users Mailing List
> > > > > > > sr-users@lists.kamailio.org
> > > > > > > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > _______________________________________________
> > > > > > Kamailio (SER) - Users Mailing List
> > > > > > sr-users@lists.kamailio.org
> > > > > > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> > > > > >
> > > > > --
> > > > > Daniel-Constantin Mierla
> > > > > www.twitter.com/miconda -- www.linkedin.com/in/miconda
> > > > > Kamailio Advanced Training - www.asipto.com
> > > > > Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com
> > > >
> > >
> > > --
> > > Daniel-Constantin Mierla
> > > www.twitter.com/miconda -- www.linkedin.com/in/miconda
> > > Kamailio Advanced Training - www.asipto.com
> > > Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com
> >
> > _______________________________________________
> > Kamailio (SER) - Users Mailing List
> > sr-users@lists.kamailio.org
> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> С уважением,
> Евгений Голей
--
С уважением,
Евгений Голей
[Attachment #5 (text/html)]
<HTML><BODY><span id="result_box" lang="en"><span>Pay attention to the answer 200 ok \
from asterisk and the one that kamailio sends to the provider side.</span> <span>The \
ACK specifies the values taken from the Contact header in the response 200 \
OK</span></span><br><br><br><blockquote style="border-left:1px solid #0857A6; \
margin:10px; padding:0 0 0 10px;"> ÐÑоÑник, 26 декабÑÑ 2017, 19:54 \
+03:00 Ð¾Ñ Ðвгений Ðолей <goley_ev_sp@mail.ru>:<br> <br>
<div id="">
<div class="js-helper js-readmsg-msg">
<style type="text/css"></style>
<div>
<base target="_self" href="https://e.mail.ru/">
<div id="style_15143072860000000133_BODY"><div class="class_1514325154">
<span id="result_box_mailru_css_attribute_postfix" lang="en"><span>Daniel \
hello!</span><br><br><span>This is because the provider must respond to the ACK not \
with KAMAILIOIP: 5060 SIP / 2.0, and in the domain part, asterisk addresses must be \
specified.<br><br><span id="result_box_mailru_css_attribute_postfix" \
class="short_text_mailru_css_attribute_postfix" lang="en"><span>Send the \
config.</span></span><br><br>Evgeniy</span></span><br><br><br><blockquote \
style="border-left:1px solid #0857A6;margin:10px;padding:0 0 0 10px;"> \
ÐÑоÑник, 26 декабÑÑ 2017, 18:53 +03:00 Ð¾Ñ Jean Cérien <<a \
href="mailto:cerien.jean@gmail.com">cerien.jean@gmail.com</a>>:<br> <br>
<div id="">
<div class="js-helper_mailru_css_attribute_postfix \
js-readmsg-msg_mailru_css_attribute_postfix"> <style></style>
<div>
<div id="style_15143036130000000439_BODY_mailru_css_attribute_postfix"><div \
class="class_1514320486_mailru_css_attribute_postfix"><div \
dir="ltr"><br><div>Daniel</div><div><br></div><div>Many thanks for your help in this \
holidays season.</div><div><br></div><div>The ACK is now going out and \
executions follows, which is good, however, the ack is sent to the Kamailio box \
itself and not actually forwarded to the asterisk (I've attached at the end of this \
message the initial invite, received ACK and "forwarded" \
ACK).</div><div><br></div><div>Both packet go through very classic config, starting \
with dlg_manage(), then if (has_totag()), if (loose_route()), which \
leads to route(RELAY), which does the actual call to \
t_relay.</div><div><br></div><div>This sequence works fine with other providers, I \
cant see what is wrong \
!</div><div><br></div><div>Regards</div><div>J</div><div><br></div><div><br></div><div><i>Initial \
invite received from provider</i></div><div><br></div><div><div>2017/12/26 \
15:21:47.414524 VOIP-IP:5060 -> KAMAILIOIP:5060</div><div>INVITE \
sip:CALLED-NUM@KAMAILIOIP SIP/2.0</div><div>Via: SIP/2.0/UDP \
VOIP-IP:5060;branch=z9hG4bKh5r5mp20007mno86oit0.1</div><div>P-Asserted-Identity: \
<<a href="//e.mail.ru/compose/?mailto=mailto%3asip%253ACALLING%2dNUM@orange%2dmultimedia.fr" \
target="_blank" rel="noopener noreferrer noopener \
noreferrer">sip:CALLING-NUM@orange-multimedia.fr</a>></div><div>To: \
<sip:CALLED-NUM@KAMAILIOIP:5060></div><div>From: <<a \
href="//e.mail.ru/compose/?mailto=mailto%3asip%253ACALLING%2dNUM@orange%2dmultimedia.fr" \
target="_blank" rel="noopener noreferrer noopener \
noreferrer">sip:CALLING-NUM@orange-multimedia.fr</a>>;tag=SDf1f0501-496399c4-0016-096a-0000-0000</div><div>Call-ID: \
SDf1f0501-70980730711ea436a8ed241985dddc7d-v300g00040</div><div>CSeq: 1 \
INVITE</div><div>Max-Forwards: 65</div><div>Contact: \
<sip:CALLING-NUM@VOIP-IP:5060;transport=udp></div><div>Allow: INVITE, ACK, BYE, \
CANCEL, OPTIONS</div><div>Supported: uui,timer</div><div>Accept: application/sdp, \
application/isup, application/xml</div><div>P-Access-Network-Info: \
GSTN;operator-specific-GI="639720000";network-provided</div><div>Content-Type: \
application/sdp</div><div>Content-Length: 221</div><div>Session-Expires: 1800; \
refresher=uac</div><div>Min-SE: 90</div><div><br></div><div><br></div><div><i>ACK \
Received from provider</i></div><div><br></div><div>2017/12/26 15:21:47.473423 \
VOIP-IP:5060 -> KAMAILIOIP:5060</div><div>ACK sip:CALLED-NUM@KAMAILIOIP:5060 \
SIP/2.0</div><div>Via: SIP/2.0/UDP \
VOIP-IP:5060;branch=z9hG4bKmdfnm110182k1pbvl180.1</div><div>To: \
<sip:KAMAILIOIP:5060>;tag=as3eec8631</div><div>From: <<a \
href="//e.mail.ru/compose/?mailto=mailto%3asip%253ACALLING%2dNUM@orange%2dmultimedia.fr" \
target="_blank" rel="noopener noreferrer noopener \
noreferrer">sip:CALLING-NUM@orange-multimedia.fr</a>>;tag=SDf1f0501-496399c4-0016-096a-0000-0000</div><div>Call-ID: \
SDf1f0501-70980730711ea436a8ed241985dddc7d-v300g00040</div><div>CSeq: 1 \
ACK</div><div>Max-Forwards: 66</div><div>Content-Length: 0</div><div>Route: \
<sip:KAMAILIOIP;lr=on;ftag=SDf1f0501-496399c4-0016-096a-0000-0000;did=eea.aa52></div><div><br></div></div><div><br></div><div><i>ACK \
Forwarded</i></div><div><br></div><div><div>2017/12/26 15:21:47.473898<b> \
KAMAILIOIP:5060 -> KAMAILIOIP:5060</b></div><div>ACK \
sip:KAMAILIOIP;lr=on;ftag=SDf1f0501-496399c4-0016-096a-0000-0000;did=eea.aa52 \
SIP/2.0</div><div>Via: SIP/2.0/UDP \
KAMAILIOIP;branch=z9hG4bK52bb.2e7f3f0b7c8c60b92bfa2d945cc9829d.0</div><div>Via: \
SIP/2.0/UDP VOIP-IP:5060;branch=z9hG4bKmdfnm110182k1pbvl180.1</div><div>To: \
<sip:KAMAILIOIP:5060>;tag=as3eec8631</div><div>From: <<a \
href="//e.mail.ru/compose/?mailto=mailto%3asip%253ACALLING%2dNUM@orange%2dmultimedia.fr" \
target="_blank" rel="noopener noreferrer noopener \
noreferrer">sip:CALLING-NUM@orange-multimedia.fr</a>>;tag=SDf1f0501-496399c4-0016-096a-0000-0000</div><div>Call-ID: \
SDf1f0501-70980730711ea436a8ed241985dddc7d-v300g00040</div><div>CSeq: 1 \
ACK</div><div>Max-Forwards: 65</div><div>Content-Length: \
0</div></div><div><br></div><div><br></div><div><br></div></div><div \
class="gmail_extra_mailru_css_attribute_postfix_mailru_css_attribute_postfix"><br><div \
class="gmail_quote_mailru_css_attribute_postfix_mailru_css_attribute_postfix">On Sat, \
Dec 23, 2017 at 8:12 AM, Daniel-Constantin Mierla <span dir="ltr"><<a \
href="//e.mail.ru/compose/?mailto=mailto%3amiconda@gmail.com" target="_blank" \
rel="noopener noreferrer noopener noreferrer">miconda@gmail.com</a>></span> \
wrote:<br><blockquote \
class="gmail_quote_mailru_css_attribute_postfix_mailru_css_attribute_postfix" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>I just tested and works fine. Try with master branch and default
config file.</p>
<p>To test I modified a bit the default kamailio.cfg and I have in
route[RELAY]:</p>
<p> xlog("=======* request $rm before relay\n");<br>
if (!t_relay()) {<br>
xlog("=======x request $rm not \
relayed\n");<br> sl_reply_error();<br>
}<br>
xlog("=======> request $rm relayed\n");</p>
<p>I get the ACK routed and in logs I get:</p>
<p>{1 2 ACK <a class="m_-8198175070496905379moz-txt-link-abbreviated_mailru_css_attribute_postfix_mailru_css_attribute_postfix" \
href="//e.mail.ru/compose/?mailto=mailto%3a1473723014@127.0.0.1" target="_blank" \
rel="noopener noreferrer noopener noreferrer">1473723014@127.0.0.1</a>} \
2(20129) ERROR: <script>: =======* request ACK before relay<br>
{1 2 ACK <a class="m_-8198175070496905379moz-txt-link-abbreviated_mailru_css_attribute_postfix_mailru_css_attribute_postfix" \
href="//e.mail.ru/compose/?mailto=mailto%3a1473723014@127.0.0.1" target="_blank" \
rel="noopener noreferrer noopener noreferrer">1473723014@127.0.0.1</a>} \
2(20129) ERROR: <script>: =======> request ACK relayed</p>
<p>Cheers,<br>
Daniel<br>
</p><div><div class="h5_mailru_css_attribute_postfix_mailru_css_attribute_postfix">
<br>
<div class="m_-8198175070496905379moz-cite-prefix_mailru_css_attribute_postfix_mailru_css_attribute_postfix">On \
22.12.17 21:00, Jean Cérien wrote:<br> </div>
<blockquote type="cite">
<div dir="ltr">
<div><br>
</div>
<div>Many thanks for your help.</div>
<div>I've applied the patch, recompiled and I see no difference
unfortunately. The ACK is not forwarded, and execution after
t_relay stops. </div>
<div><br>
</div>
<div>I've set the debug level to 4 and captured the traces - I
believe the section dealing with the ACK is there: <a \
href="https://pastebin.com/TG03YQWC" target="_blank" rel="noopener noreferrer \
noopener noreferrer">https://pastebin.com/TG03YQWC</a><br data-mce-bogus="1"></div> \
<div><br> </div>
<div>KR</div>
<div>J.</div>
</div>
<div class="gmail_extra_mailru_css_attribute_postfix_mailru_css_attribute_postfix"><br>
<div class="gmail_quote_mailru_css_attribute_postfix_mailru_css_attribute_postfix">On \
Fri, Dec 22, 2017 at 11:59 AM, Daniel-Constantin Mierla <span dir="ltr"><<a \
href="//e.mail.ru/compose/?mailto=mailto%3amiconda@gmail.com" target="_blank" \
rel="noopener noreferrer noopener noreferrer">miconda@gmail.com</a>></span> \
wrote:<br> <blockquote \
class="gmail_quote_mailru_css_attribute_postfix_mailru_css_attribute_postfix" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div \
text="#000000" bgcolor="#FFFFFF"> <p>Hello,</p>
<p>can you give a try with latest master branch or by
using the patch from next link?</p>
<p> -
<a class="m_-8198175070496905379m_-4396643334452035221moz-txt-link-freetext_mailru_css_attribute_postfix_mailru_css_attribute_postfix" \
href="https://github.com/kamailio/kamailio/commit/52111974b4571e0562e8e731df80f48dbc504915" \
target="_blank" rel="noopener noreferrer noopener \
noreferrer">https://github.com/kamailio/kamailio/commit/52111974b4571e0562e8e731df80f48dbc504915</a><br \
data-mce-bogus="1"></p> <p>Apparently the t_realy() stopped script execution (by
returning 0) when e2e ACK forwarding was successful. The
patch should change that to return true.</p>
<p>If all works fine while testing, then I will backport.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div>
<div \
class="m_-8198175070496905379h5_mailru_css_attribute_postfix_mailru_css_attribute_postfix">
<p><br>
</p>
<br>
<div \
class="m_-8198175070496905379m_-4396643334452035221moz-cite-prefix_mailru_css_attribute_postfix_mailru_css_attribute_postfix">On
22.12.17 14:05, Jean Cérien wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div><br>
</div>
Hello
<div>I've tried mhomed = 1 with no luck - not so
sure what you mean by default route, I've added
listen = udp:myadsress:5060<br>
<div>I also have auto_aliases=no and
alias=myaddress</div>
<div><br>
</div>
<div>However, what bugs me is that execution
seems to stop INSIDE t_relay and the info
message after the t_relay is not displayed. </div>
<div><br>
</div>
<div>I hate to say this, but could this be a bug
?</div>
<div><br>
</div>
<div>Rgds</div>
<div>J.</div>
<div>
<div><br>
</div>
</div>
</div>
</div>
<div \
class="gmail_extra_mailru_css_attribute_postfix_mailru_css_attribute_postfix"><br>
<div \
class="gmail_quote_mailru_css_attribute_postfix_mailru_css_attribute_postfix">On Fri, \
Dec 22, 2017 at 1:52 AM, Sergey Safarov <span dir="ltr"><<a \
href="//e.mail.ru/compose/?mailto=mailto%3as.safarov@gmail.com" target="_blank" \
rel="noopener noreferrer noopener noreferrer">s.safarov@gmail.com</a>></span> \
wrote:<br> <blockquote \
class="gmail_quote_mailru_css_attribute_postfix_mailru_css_attribute_postfix" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div \
dir="ltr">Check that your installation have one NIC with only one default route on
host.
<div>If not check that "mhomed=1" is
enabled.</div>
<div><br>
</div>
<div>Sergey</div>
</div>
<br>
<div \
class="gmail_quote_mailru_css_attribute_postfix_mailru_css_attribute_postfix">
<div dir="ltr">пÑ, 22 дек. 2017 г. в 0:02,
Jean Cérien <<a \
href="//e.mail.ru/compose/?mailto=mailto%3acerien.jean@gmail.com" target="_blank" \
rel="noopener noreferrer noopener noreferrer">cerien.jean@gmail.com</a>>:<br> \
</div> <blockquote class="gmail_quote_mailru_css_attribute_postfix_mailru_css_attribute_postfix" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div \
dir="ltr"><br> <div>Hello</div>
<div>I am using kamailio 5.0.2, on a
debian 9 system.</div>
<div><br>
</div>
<div>Everything was running fine, until
one of our voip provider changed his
switch. Our kamailio is relaying
between several voip providers and
several asterisk (only the
signalisation, no rtp).</div>
<div><br>
</div>
<div>When we get an invite from this new
switch, we select an asterisk and
relay it correctly to this box.
However, the OK is relayed back. But
when the voip providers sends an ACK
for this OK, the t_relay function does
not return at all, it just dies with
no action and no error.</div>
<div><br>
</div>
<div>Here is the snippet from
route(relay)</div>
<div><br>
</div>
<div>
<div>
xlog("L_INFO","route(relay) @@ $rm
- Source: $si:$sp, fu:$fu, tu:$tu\n"
);</div>
<div>
$var(restrelay)=t_relay();</div>
<div>
xlog("L_INFO","route(relay) @@ $rm
- t_relay result: $var(restrelay)"
);</div>
<div> if \
(!$var(restrelay)) {</div> </div>
<div><br>
</div>
<div>When processing the initial invite,
I do get both INFO messages. When the
ACK is processed, I only get one INFO
message, and no ACK is relayed - so it
seems execution dies in the t_relay</div>
<div><br>
</div>
<div>What could be wrong ???</div>
<div><br>
</div>
<div>J.</div>
<div><br>
</div>
<div>Details of the ACK:</div>
<div><br>
</div>
<div>
<div><font face="monospace, monospace">ACK
<a \
class="m_-8198175070496905379m_-4396643334452035221moz-txt-link-freetext_mailru_css_at \
tribute_postfix_mailru_css_attribute_postfix">sip:dialednumber@kamailioIP</a>:5060 \
SIP/2.0<br> </font></div>
<div><font face="monospace, monospace">Via:
SIP/2.0/UDP
\
VOIPPROVIDERIP:5060;branch=z9hG4bKjq16fi00d85uee181ic0.1</font></div>
<div><font face="monospace, monospace">To:
<a \
class="m_-8198175070496905379m_-4396643334452035221moz-txt-link-rfc2396E_mailru_css_at \
tribute_postfix_mailru_css_attribute_postfix"><sip:kamailioIP:5060></a>;tag=as7f10ed48</font></div>
<div><font face="monospace, monospace">From:
<<a \
href="//e.mail.ru/compose/?mailto=mailto%3asip%253Asourcenumber@orange%2dmultimedia.fr" \
target="_blank" rel="noopener noreferrer noopener \
noreferrer">sip:sourcenumber@orange-multimedia.fr</a>>;tag=SD8u3ob01-7dd8efde-0002-00d5-0000-0000</font></div>
<div><font face="monospace, monospace">Call-ID:
\
SD8u3ob01-688d41f5e2164ceeafe76f40b82b3f97-v300g00030</font></div>
<div><font face="monospace, monospace">CSeq:
1 ACK</font></div>
<div><font face="monospace, \
monospace">Max-Forwards: 66</font></div>
<div><font face="monospace, \
monospace">Content-Length: 0</font></div>
<div><font face="monospace, monospace">Route:
<<a \
class="m_-8198175070496905379m_-4396643334452035221moz-txt-link-freetext_mailru_css_at \
tribute_postfix_mailru_css_attribute_postfix">sip:kamailioIP;lr=on;ftag=</a>SD8u3ob01-7dd8efde-0002-00d5-0000-0000;did=a0b.49d></font></div>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>(should you have enough width; the
diagram will look ok)</div>
<div><br>
</div>
<div>
<div><font face="monospace, monospace">
\
VOIP PROVIDER
\
KAMAILIO
\
ASTERISK</font></div>
<div><font face="monospace, monospace">
21:38:54.685149 â
\
ââââââââââââââââââââââââââ> \
â
\
â \
</font></div>
<div><span \
style="font-family:monospace,monospace">â <span \
class="js-phone-number_mailru_css_attribute_postfix"><span \
class="js-phone-number">+0.000451</span></span> â \
100 trying --
your call is â \
â \
</span></div>
<div><font face="monospace, monospace">â
21:38:54.685600 â
\
<ââââââââââââââââââââââââââ \
â
\
â \
</font></div>
<div><font face="monospace, monospace">â
<span \
class="js-phone-number_mailru_css_attribute_postfix"><span \
class="js-phone-number">+0.000084</span></span> â \
\
â INVITE
(SDP) \
â </font></div>
<div><font face="monospace, monospace">â
21:38:54.685684 â \
\
â
\
ââââââââââââââââââââââââââ> \
â </font></div>
<div><font face="monospace, monospace">â
<span \
class="js-phone-number_mailru_css_attribute_postfix"><span \
class="js-phone-number">+0.000831</span></span> â \
\
â 100 Trying
â \
</font></div>
<div><font face="monospace, monospace">â
21:38:54.686515 â \
\
â
\
<ââââââââââââââââââââââââââ \
â </font></div>
<div><font face="monospace, monospace">â
<span \
class="js-phone-number_mailru_css_attribute_postfix"><span \
class="js-phone-number">+0.000471</span></span> â \
\
â 200 OK
(SDP) \
â </font></div>
<div><font face="monospace, monospace">â
21:38:54.686986 â \
\
â
\
<ââââââââââââââââââââââââââ \
â </font></div>
<div><font face="monospace, monospace">â
<span \
class="js-phone-number_mailru_css_attribute_postfix"><span \
class="js-phone-number">+0.000394</span></span> â \
200 OK
(SDP) \
â \
â \
</font></div>
<div><font face="monospace, monospace">â
21:38:54.687380 â
\
<ââââââââââââââââââââââââââ \
â
\
â \
</font></div>
<div><font face="monospace, monospace">â
<span \
class="js-phone-number_mailru_css_attribute_postfix"><span \
class="js-phone-number">+0.038694</span></span> â \
ACK \
â \
\
â </font></div>
<div><font face="monospace, monospace">â
21:38:54.726074 â
\
ââââââââââââââââââââââââââ> \
â
\
â \
</font></div>
<div><font face="monospace, monospace">â
<span \
class="js-phone-number_mailru_css_attribute_postfix"><span \
class="js-phone-number">+0.060155</span></span> â \
\
â 200 OK
(SDP) \
â </font></div>
<div><font face="monospace, monospace">â
21:38:54.786229 â \
\
â
\
<<<ââââââââââââââââââââââââ \
â </font></div>
<div><font face="monospace, monospace">â
<span \
class="js-phone-number_mailru_css_attribute_postfix"><span \
class="js-phone-number">+0.000138</span></span> â \
200 OK
(SDP) \
â \
â \
</font></div>
<div><font face="monospace, monospace">â
21:38:54.786367 â
\
<<<ââââââââââââââââââââââââ \
â \
â </font></div>
<div><font face="monospace, monospace">â
<span \
class="js-phone-number_mailru_css_attribute_postfix"><span \
class="js-phone-number">+0.005721</span></span> â \
ACK \
â \
\
â </font></div> </div>
<div><br>
</div>
<div><br>
</div>
</div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a \
href="//e.mail.ru/compose/?mailto=mailto%3asr%2dusers@lists.kamailio.org" \
target="_blank" rel="noopener noreferrer noopener \
noreferrer">sr-users@lists.kamailio.org</a><br> <a \
href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank" \
rel="noreferrer noopener noreferrer noopener \
noreferrer">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br> \
</blockquote> </div>
<br>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a \
href="//e.mail.ru/compose/?mailto=mailto%3asr%2dusers@lists.kamailio.org" \
target="_blank" rel="noopener noreferrer noopener \
noreferrer">sr-users@lists.kamailio.org</a><br> <a \
href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank" \
rel="noreferrer noopener noreferrer noopener \
noreferrer">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br> \
<br> </blockquote>
</div>
<br>
</div>
<br>
<fieldset \
class="m_-8198175070496905379m_-4396643334452035221mimeAttachmentHeader_mailru_css_attribute_postfix_mailru_css_attribute_postfix"></fieldset>
<br>
<pre>_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="m_-8198175070496905379m_-4396643334452035221moz-txt-link-abbreviated_mailru_css_attribute_postfix_mailru_css_attribute_postfix" \
href="//e.mail.ru/compose/?mailto=mailto%3asr%2dusers@lists.kamailio.org" \
target="_blank" rel="noopener noreferrer noopener \
noreferrer">sr-users@lists.kamailio.org</a> <a \
class="m_-8198175070496905379m_-4396643334452035221moz-txt-link-freetext_mailru_css_attribute_postfix_mailru_css_attribute_postfix" \
href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank" \
rel="noopener noreferrer noopener \
noreferrer">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a> </pre>
</blockquote>
<br>
</div>
</div>
<span class="m_-8198175070496905379HOEnZb_mailru_css_attribute_postfix_mailru_css_attribute_postfix"><font \
color="#888888">
<pre \
class="m_-8198175070496905379m_-4396643334452035221moz-signature_mailru_css_attribute_postfix_mailru_css_attribute_postfix" \
cols="72">-- Daniel-Constantin Mierla
<a class="m_-8198175070496905379m_-4396643334452035221moz-txt-link-abbreviated_mailru_css_attribute_postfix_mailru_css_attribute_postfix" \
href="http://www.twitter.com/miconda" target="_blank" rel="noopener noreferrer \
noopener noreferrer">www.twitter.com/miconda</a> -- <a \
class="m_-8198175070496905379m_-4396643334452035221moz-txt-link-abbreviated_mailru_css_attribute_postfix_mailru_css_attribute_postfix" \
href="http://www.linkedin.com/in/miconda" target="_blank" rel="noopener noreferrer \
noopener noreferrer">www.linkedin.com/in/miconda</a> Kamailio Advanced Training - <a \
class="m_-8198175070496905379m_-4396643334452035221moz-txt-link-abbreviated_mailru_css_attribute_postfix_mailru_css_attribute_postfix" \
href="http://www.asipto.com" target="_blank" rel="noopener noreferrer noopener \
noreferrer">www.asipto.com</a> Kamailio World Conference - May 14-16, 2018 - <a \
class="m_-8198175070496905379m_-4396643334452035221moz-txt-link-abbreviated_mailru_css_attribute_postfix_mailru_css_attribute_postfix" \
href="http://www.kamailioworld.com" target="_blank" rel="noopener noreferrer \
noopener noreferrer">www.kamailioworld.com</a><br data-mce-bogus="1"></pre> \
</font></span></div> </blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<pre class="m_-8198175070496905379moz-signature_mailru_css_attribute_postfix_mailru_css_attribute_postfix" \
cols="72">-- Daniel-Constantin Mierla
<a class="m_-8198175070496905379moz-txt-link-abbreviated_mailru_css_attribute_postfix_mailru_css_attribute_postfix" \
href="http://www.twitter.com/miconda" target="_blank" rel="noopener noreferrer \
noopener noreferrer">www.twitter.com/miconda</a> -- <a \
class="m_-8198175070496905379moz-txt-link-abbreviated_mailru_css_attribute_postfix_mailru_css_attribute_postfix" \
href="http://www.linkedin.com/in/miconda" target="_blank" rel="noopener noreferrer \
noopener noreferrer">www.linkedin.com/in/miconda</a> Kamailio Advanced Training - <a \
class="m_-8198175070496905379moz-txt-link-abbreviated_mailru_css_attribute_postfix_mailru_css_attribute_postfix" \
href="http://www.asipto.com" target="_blank" rel="noopener noreferrer noopener \
noreferrer">www.asipto.com</a> Kamailio World Conference - May 14-16, 2018 - <a \
class="m_-8198175070496905379moz-txt-link-abbreviated_mailru_css_attribute_postfix_mailru_css_attribute_postfix" \
href="http://www.kamailioworld.com" target="_blank" rel="noopener noreferrer \
noopener noreferrer">www.kamailioworld.com</a><br data-mce-bogus="1"></pre> \
</div></div></div>
</blockquote></div><br></div>
</div></div>
<div>_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="//e.mail.ru/compose/?mailto=mailto%3asr%2dusers@lists.kamailio.org" \
target="_blank" rel=" noopener noreferrer">sr-users@lists.kamailio.org</a><br> <a \
href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank" \
rel=" noopener noreferrer">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div>
</div>
</div>
</div>
</blockquote>
<br>
<br>-- <br>С Ñважением,<br>Ðвгений Ðолей<br>
</div></div>
<base target="_self" href="https://e.mail.ru/">
</div>
</div>
</div>
</blockquote>
<br>
<br>-- <br>С Ñважением,<br>Ðвгений Ðолей<br></BODY></HTML>
[Attachment #6 (text/plain)]
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic