<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div class="" style=""><span class="" style="">Hi Bogdan,</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;" class=""><span class="" style=""><br class="" style=""></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;" class=""><span class="" style="">With the below workaround, I have managed to make load balancing with Opensips dispather module . I am using record_route for INVITE message. </span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,
'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;" class=""><span class="" style="">Thanks a lot for your support.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;" class=""><span class="" style="">Kind regards,</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;" class=""><span class="" style="">Kaan</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;" class=""><span class="" style=""><br class="" style=""></span></div><div
style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;" class=""><span class="" style=""><br class="" style=""></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;" class=""><span class="" style="font-weight: bold;">Related part of Opensips script</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;" class=""><span class="" style="font-weight: bold;"><br class="" style=""></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande',
sans-serif; font-style: normal; background-color: transparent;" class=""><span class="" style="font-weight: bold;">.......</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;" class=""><span class="" style="font-weight: bold;"><br class="" style=""></span></div><div style="background-color: transparent;" class=""><span style="font-weight: bold;" class=""> </span><span class="">else if (is_method("INVITE")) {</span></div><div style="background-color: transparent;" class=""><span class=""> #load_balance("1","pstn");</span></div><div style="background-color: transparent;" class=""><span class=""> xlog("xlog_initialinvite");</span></div><div style="background-color:
transparent;" class=""><span style="background-color: transparent;"> if($si=="192.168.2.11") {</span><br></div><div style="background-color: transparent;" class=""><span class=""> ds_select_dst("1","1");</span></div><div style="background-color: transparent;" class=""><span class=""> }</span></div><div style="background-color: transparent;" class=""><span class=""> record_route();</span></div><div style="background-color: transparent;" class=""><span class=""> if(!t_relay()) {</span></div><div style="background-color: transparent;" class=""><span class=""> sl_reply_error();</span></div><div style="background-color: transparent;"
class=""><span class=""> xlog("xlog_invitereplyerror");</span></div><div style="background-color: transparent;" class=""><span class=""> }</span></div><div style="background-color: transparent;" class=""><span class=""></span></div><div style="background-color: transparent;" class=""><span class=""> exit;</span></div><div class="" style=""><br class="" style=""></div><div class="" style=""><br></div><div class="" style="">.......</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;" class=""><span class="" style=""><br class="" style=""></span></div><div style="background-color: transparent;" class="">
if (loose_route()) {</div><div style="background-color: transparent;" class=""> xlog("xlog_loose_route");</div><div style="background-color: transparent;" class=""> <span style="background-color: transparent;">if($si=="192.168.2.11") {</span></div><div style="background-color: transparent;" class=""> t_relay();</div><div style="background-color: transparent;" class=""> exit;</div><div style="background-color: transparent;" class=""> }</div><div style="background-color: transparent;" class=""> else if($si=="192.168.2.3" or $si=="192.168.2.5" ) {</div><div style="background-color: transparent;" class="">
$du = "sip:192.168.2.11:4060";</div><div style="background-color: transparent;" class=""> append_branch();</div><div style="background-color: transparent;" class=""> t_relay();</div><div style="background-color: transparent;" class=""> exit;</div><div style="background-color: transparent;" class=""><span class="" style=""></span></div><div style="background-color: transparent;" class=""> }</div><div class="" style="">.....</div><div class="" style=""><strong class="" style="">ims_bench output</strong></div><div class="" style=""><br class="" style=""> 1- ims_uac-0- Scenario Screen - [1-9]: Change Screen - 6663<br class="" style="">
Call-rate(length) Port Total-time Total-calls Remote-host<br class="" style=""> 0.0(0 ms)/1.000s 5060 65.32 s 65 192.168.2.141:4060(UDP)</div><div class="" style=""> </div><div class="" style=""> 0 new calls during 0.287 s period 1 ms scheduler resolution<br class="" style=""> 0 calls (limit 0) Peak was 32 calls, after 45 s<br class="" style=""> 0 Running, 1 Paused, 1 Woken up, 0 Sync<br class="" style=""> 0 out-of-call msg (discarded) <br class="" style=""> 0 open
sockets </div><div class="" style=""> </div><div class="" style=""> Messages Retrans Timeout Unexpected-Msg<br class="" style=""> 0 [ NOP ] <br class="" style=""> 1 [ SENDRMT ] 11 <br class="" style=""> 2 [ RECVRMT
] 11 0 <br class="" style=""> 3 [ SYNC ] 11 </div><div class="" style=""> </div><div class="" style=""> 4 INVITE ----------> B1,2,4 11 0 0 <br class="" style=""> 5 100 <---------- 11
0 0 <br class="" style=""> 6 180 <---------- 11 0 0 <br class="" style=""> 7 183 <---------- 0 0 0 <br class="" style=""> 8 200
<---------- 11 0 0 <br class="" style=""> 9 ACK ----------> 11 0 <br class="" style="">10 180 <---------- 0 0 0 <br class=""
style="">11 Pause [Exp(2:00)] 11 0 <br class="" style="">12 BYE ----------> B3 11 0 0 <br class="" style="">13 180 <---------- 0 0 0 <br class=""
style="">14 200 <---------- E3,4 11 0 0 </div><div class="" style=""> </div><div class="" style="">15 [ RECVRMT ] 11 0 <br class="" style="">------------------------------ Test Terminated --------------------------------</div><div class="" style=""> </div><div class="" style=""> 1- ims_uac-0- Statistics Screen - [1-9]: Change Screen - 6663<br class="" style=""> Start
Time | 2014-10-20 11:17:42 <br class="" style=""> Last Reset Time | 2014-10-20 11:18:34 <br class="" style=""> Current Time | 2014-10-20 11:18:34 <br class=""
style="">-------------------------+---------------------------+--------------------------<br class="" style=""> Counter Name | Periodic value | Cumulative value<br class="" style="">-------------------------+---------------------------+--------------------------<br class="" style=""> Elapsed Time | 00:00:00:290 | 00:00:51:987 <br class="" style=""> Call Rate | 0.000 cps | 0.212
cps <br class="" style="">-------------------------+---------------------------+--------------------------<br class="" style=""> Incoming call created | 0 | 0 <br class="" style=""> OutGoing call created | 0 | 11 <br class="" style=""> Total Call created
| | 11 <br class="" style=""> Current Call | 0 | <br class="" style="">-------------------------+---------------------------+--------------------------<br class="" style=""> Successful call |
3 | 11 <br class="" style=""> Failed call | 0 | 0 <br class="" style="">-------------------------+---------------------------+--------------------------<br class="" style=""> Response Time 1 | 00:00:00:000 |
00:00:00:000 <br class="" style=""> Response Time 2 | 00:00:44:121 | 00:00:55:011 <br class="" style=""> Response Time 3 | 00:00:00:000 | 00:01:07:341 <br class="" style=""> Response Time 4 | 00:00:00:000 | 04:08:44:054 <br class="" style=""> Response Time
5 | 01:14:06:022 | 01:09:59:415 <br class="" style=""> Response Time 7 | 00:01:01:869 | 00:01:10:633 <br class="" style=""> Response Time 8 | 00:00:00:000 | 00:01:35:927 <br class="" style=""> Response Time 9 | 00:00:00:000 |
04:31:24:539 <br class="" style=""> Response Time 10 | 01:16:07:446 | 01:15:34:687 <br class="" style=""> Response Time 12 | 00:00:00:000 | 00:00:00:000 <br class="" style=""> Response Time 13 | 00:00:00:000 | 00:00:00:000 <br class="" style=""> Response Time 14 |
00:00:00:000 | 00:00:00:000 <br class="" style=""> Response Time 15 | 00:00:00:000 | 00:00:00:000 <br class="" style=""> Call Length | 06:30:22:487 | 05:04:58:398 <br class="" style="">------------------------------ Test Terminated --------------------------------</div><div class="" style=""> </div><div class="" style=""><strong class="" style="">over 192.168.2.3</strong></div><div class=""
style=""><strong class="" style="">===================</strong></div><div class="" style=""> </div><div class="" style="">No. Time Source Destination Protocol Info<br class="" style=""> 1604 18.894833 192.168.2.11 192.168.2.141 SIP/SDP Request: INVITE sip:subs004467@open-ims.test, with session description<br class="" style=""> 1605 18.895716 192.168.2.141 192.168.2.11 SIP Status: 100 Giving a try<br class="" style=""> 1606
18.896051 192.168.2.141 192.168.2.3 SIP/SDP Request: INVITE sip:subs004467@open-ims.test, with session description<br class="" style=""> 1607 18.918473 192.168.2.3 192.168.2.141 SIP Status: 100 trying -- your call is important to us<br class="" style=""> 1608 18.929113 192.168.2.3 192.168.2.141 SIP/SDP Request: INVITE sip:subs004467@192.168.2.11:11468, with session description<br class="" style=""> 1609 18.930230 192.168.2.141
192.168.2.3 SIP Status: 100 Giving a try<br class="" style=""> 1611 18.930915 192.168.2.141 192.168.2.11 SIP/SDP Request: INVITE sip:subs004467@192.168.2.11:11468, with session description<br class="" style=""> 1612 18.932105 192.168.2.11 192.168.2.141 SIP Status: 180 Ringing<br class="" style=""> 1613 18.933501 192.168.2.141 192.168.2.3 SIP Status: 180 Ringing<br class="" style=""> 1614 18.949184
192.168.2.3 192.168.2.141 SIP Status: 180 Ringing<br class="" style=""> 1615 18.950056 192.168.2.141 192.168.2.11 SIP Status: 180 Ringing<br class="" style=""> 1658 23.994779 192.168.2.11 192.168.2.141 SIP/SDP Status: 200 OK, with session description<br class="" style=""> 1659 23.995366 192.168.2.141 192.168.2.3 SIP/SDP Status: 200 OK, with session description<br class="" style=""> 1660
24.006893 192.168.2.3 192.168.2.141 SIP/SDP Status: 200 OK, with session description<br class="" style=""> 1661 24.007967 192.168.2.141 192.168.2.11 SIP/SDP Status: 200 OK, with session description<br class="" style=""> 1662 24.008743 192.168.2.11 192.168.2.141 SIP Request: ACK sip:subs004467@192.168.2.11:11468;transport=UDP<br class="" style=""> 1663 24.010836 192.168.2.141 192.168.2.3
SIP Request: ACK sip:subs004467@192.168.2.11:11468;transport=UDP<br class="" style=""> 1664 24.025223 192.168.2.3 192.168.2.141 SIP Request: ACK sip:subs004467@192.168.2.11:11468;transport=UDP<br class="" style=""> 1665 24.027505 192.168.2.141 192.168.2.11 SIP Request: ACK sip:subs004467@192.168.2.11:11468;transport=UDP<br class="" style=""> 2300 27.281032 192.168.2.11 192.168.2.141 SIP Request: BYE sip:subs004467@192.168.2.11:11468;transport=UDP<br class=""
style=""> 2301 27.283582 192.168.2.141 192.168.2.3 SIP Request: BYE sip:subs004467@192.168.2.11:11468;transport=UDP<br class="" style=""> 2302 27.294955 192.168.2.3 192.168.2.141 SIP Request: BYE sip:subs004467@192.168.2.11:11468;transport=UDP<br class="" style=""> 2303 27.297687 192.168.2.141 192.168.2.11 SIP Request: BYE sip:subs004467@192.168.2.11:11468;transport=UDP<br class="" style=""> 2304 27.297689
192.168.2.141 192.168.2.11 SIP Request: BYE sip:subs004467@192.168.2.11:11468;transport=UDP<br class="" style=""> 2305 27.297691 192.168.2.11 192.168.2.141 SIP Status: 200 OK<br class="" style=""> 2307 27.299660 192.168.2.141 192.168.2.3 SIP Status: 200 OK<br class="" style=""> 2308 27.307834 192.168.2.3 192.168.2.141 SIP Status: 200 OK<br class=""
style=""> 2309 27.308408 192.168.2.141 192.168.2.11 SIP Status: 200 OK</div><div class="" style=""> </div><div class="" style=""> </div><div class="" style=""><div class="" style=""><strong class="" style="">over 192.168.2.5</strong></div><div class="" style=""><strong class="" style="">===================</strong></div></div><div class="" style=""> </div><div class="" style=""> </div><div style="background-color: transparent;" class=""><span class="" style=""></span></div><div class="" style="">No. Time Source Destination Protocol Info<br class=""
style=""> 2040 25.595623 192.168.2.11 192.168.2.141 SIP/SDP Request: INVITE sip:subs004783@open-ims.test, with session description<br class="" style=""> 2041 25.596532 192.168.2.141 192.168.2.11 SIP Status: 100 Giving a try<br class="" style=""> 2042 25.596952 192.168.2.141 192.168.2.5 SIP/SDP Request: INVITE sip:subs004783@open-ims.test, with session description<br class="" style=""> 2043 25.628108 192.168.2.5
192.168.2.141 SIP Status: 100 trying -- your call is important to us<br class="" style=""> 2045 25.667842 192.168.2.5 192.168.2.141 SIP/SDP Request: INVITE sip:subs004783@192.168.2.11:11784, with session description<br class="" style=""> 2046 25.668279 192.168.2.141 192.168.2.5 SIP Status: 100 Giving a try<br class="" style=""> 2048 25.668533 192.168.2.141 192.168.2.11 SIP/SDP Request: INVITE sip:subs004783@192.168.2.11:11784, with session
description<br class="" style=""> 2049 25.668980 192.168.2.11 192.168.2.141 SIP Status: 180 Ringing<br class="" style=""> 2050 25.669123 192.168.2.141 192.168.2.5 SIP Status: 180 Ringing<br class="" style=""> 2051 25.698433 192.168.2.5 192.168.2.141 SIP Status: 180 Ringing<br class="" style=""> 2052 25.698618 192.168.2.141 192.168.2.11
SIP Status: 180 Ringing<br class="" style=""> 2407 30.767801 192.168.2.11 192.168.2.141 SIP/SDP Status: 200 OK, with session description<br class="" style=""> 2408 30.768519 192.168.2.141 192.168.2.5 SIP/SDP Status: 200 OK, with session description<br class="" style=""> 2409 30.831684 192.168.2.5 192.168.2.141 SIP/SDP Status: 200 OK, with session description<br class="" style=""> 2410 30.831977 192.168.2.141
192.168.2.11 SIP/SDP Status: 200 OK, with session description<br class="" style=""> 2411 30.832405 192.168.2.11 192.168.2.141 SIP Request: ACK sip:subs004783@192.168.2.11:11784;transport=UDP<br class="" style=""> 2412 30.833398 192.168.2.141 192.168.2.5 SIP Request: ACK sip:subs004783@192.168.2.11:11784;transport=UDP<br class="" style=""> 2413 30.855147 192.168.2.5 192.168.2.141 SIP Request: ACK
sip:subs004783@192.168.2.11:11784;transport=UDP<br class="" style=""> 2414 30.855872 192.168.2.141 192.168.2.11 SIP Request: ACK sip:subs004783@192.168.2.11:11784;transport=UDP<br class="" style=""> 3425 40.770843 192.168.2.11 192.168.2.141 SIP/SDP Status: 200 OK, with session description<br class="" style=""> 3439 43.412789 192.168.2.11 192.168.2.141 SIP Request: BYE sip:subs004783@192.168.2.11:11784;transport=UDP<br class="" style=""> 3440 43.414207
192.168.2.141 192.168.2.5 SIP Request: BYE sip:subs004783@192.168.2.11:11784;transport=UDP<br class="" style=""> 3441 43.467117 192.168.2.5 192.168.2.141 SIP Request: BYE sip:subs004783@192.168.2.11:11784;transport=UDP<br class="" style=""> 3442 43.467826 192.168.2.141 192.168.2.11 SIP Request: BYE sip:subs004783@192.168.2.11:11784;transport=UDP<br class="" style=""> 3443 43.467983 192.168.2.141
192.168.2.11 SIP Request: BYE sip:subs004783@192.168.2.11:11784;transport=UDP<br class="" style=""> 3444 43.468176 192.168.2.11 192.168.2.141 SIP Status: 200 OK<br class="" style=""> 3446 43.468627 192.168.2.141 192.168.2.5 SIP Status: 200 OK<br class="" style=""> 3447 43.490269 192.168.2.5 192.168.2.141 SIP Status: 200 OK<br class="" style=""> 3448 43.490468
192.168.2.141 192.168.2.11 SIP Status: 200 OK</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;" class=""><span class="" style=""><br class="" style=""></span></div><div class="" style=""><br></div> </div></body></html>