Hi all,<br><br>I&#39;m trying to implement parallel forking to different users registered on a Kamailio server. I want to fork the call to a number of different users (not including the called user). <br>To do this I added the piece of code below to the default 3.0.0 config file: <br>

<br><div style="margin-left: 80px;">                              ...<br>          # account only INVITEs<br>    if (is_method(&quot;INVITE&quot;)) {<br>        setflag(1); # do accounting<br>        setflag(4); #dialog aware<br>

<br>        if(avp_db_load(&quot;$ru/username&quot;,&quot;$avp(s:fork)&quot;))<br>        {<br>            avp_pushto(&quot;$ru/username&quot;,&quot;$avp(s:fork)/g&quot;);<br>           <br>           };<br><br>    }<br>
</div>
                                 ....<br><br>This is usr_preference table content:<br><br><div style="margin-left: 80px;">+----+------+----------+--------+-----------+------+-------+---------------------+<br>| id | uuid | username | domain | attribute | type | value | last_modified       |<br>

+----+------+----------+--------+-----------+------+-------+---------------------+<br>|  4 |      | 1000     |        | fork      |    0 | 1001  |              | <br>|  3 |      | 1000     |        | fork      |    0 | 1005  |              | <br>

+----+------+----------+--------+-----------+------+-------+---------------------+<br></div><br>Kamailio correctly forks the call to 1001 and 1005, but the Request-URI of the 1005 user is not correctly set, because the proxy IP is used instead of the IP where the user is registered (10.1.2.15). You can see the INVITEs below.<br>

<br>Could anybody tell me what I&#39;m doing badly? <br><br>Thanks for your time,<br>best regards<br><br>Anton   <br>----------------------------------------------------------------------------------------------------------------------------------------<br>

<div style="margin-left: 80px;">#<br>U +0.000328 <a href="http://10.1.20.103:5060" target="_blank">10.1.20.103:5060</a> -&gt; <a href="http://10.1.3.18:5061" target="_blank">10.1.3.18:5061</a><br>INVITE <a href="http://sip:1001@10.1.3.18:5061" target="_blank">sip:1001@10.1.3.18:5061</a> SIP/2.0<br>

Record-Route: &lt;sip:10.1.20.103;lr=on;did=c34.3ed81d77&gt;<br>Via: SIP/2.0/UDP 10.1.20.103;branch=z9hG4bKc40b.ec3572a3.0<br>Via: SIP/2.0/UDP 10.1.3.15:5061;branch=z9hG4bK-213aa77<br>From: &quot;1002&quot; &lt;<a href="mailto:sip%3A1002@10.1.20.103" target="_blank">sip:1002@10.1.20.103</a>&gt;;tag=280da520d15d62cfo1<br>

To: &quot;1000&quot; &lt;<a href="mailto:sip%3A1000@10.1.20.103" target="_blank">sip:1000@10.1.20.103</a>&gt;<br>Call-ID: <a href="mailto:8973c34-427096cb@10.1.3.15" target="_blank">8973c34-427096cb@10.1.3.15</a><br>CSeq: 102 INVITE<br>
Max-Forwards: 69<br>
Contact: &quot;1002&quot; &lt;<a href="http://sip:1002@10.1.3.15:5061" target="_blank">sip:1002@10.1.3.15:5061</a>&gt;<br>Expires: 240<br>User-Agent: Linksys/SPA941-5.1.5<br>Content-Length: 202<br>Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER<br>

Supported: replaces<br>Content-Type: application/sdp<br><br>v=0<br>o=- 2003696 2003696 IN IP4 10.1.3.15<br>...<br><br>#<br>U +0.000052 <a href="http://10.1.20.103:5060" target="_blank">10.1.20.103:5060</a> -&gt; <a href="http://10.1.20.103:5060" target="_blank">10.1.20.103:5060</a><br>

INVITE <a href="mailto:sip%3A1005@10.1.20.103" target="_blank">sip:1005@10.1.20.103</a> SIP/2.0<br>Record-Route: &lt;sip:10.1.20.103;lr=on;did=c34.3ed81d77&gt;<br>Via: SIP/2.0/UDP 10.1.20.103;branch=z9hG4bKc40b.ec3572a3.1<br>
Via: SIP/2.0/UDP 10.1.3.15:5061;branch=z9hG4bK-213aa77<br>
From: &quot;1002&quot; &lt;<a href="mailto:sip%3A1002@10.1.20.103" target="_blank">sip:1002@10.1.20.103</a>&gt;;tag=280da520d15d62cfo1<br>To: &quot;1000&quot; &lt;<a href="mailto:sip%3A1000@10.1.20.103" target="_blank">sip:1000@10.1.20.103</a>&gt;<br>
Call-ID: <a href="mailto:8973c34-427096cb@10.1.3.15" target="_blank">8973c34-427096cb@10.1.3.15</a><br>
CSeq: 102 INVITE<br>Max-Forwards: 69<br>Contact: &quot;1002&quot; &lt;<a href="http://sip:1002@10.1.3.15:5061" target="_blank">sip:1002@10.1.3.15:5061</a>&gt;<br>Expires: 240<br>User-Agent: Linksys/SPA941-5.1.5<br>Content-Length: 202<br>

Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER<br>Supported: replaces<br>Content-Type: application/sdp<br><br>v=0<br>o=- 2003696 2003696 IN IP4 10.1.3.15<br>...<br></div><br>----------------------------------------------------------------------------------------------------------------------------------------<br>

<br><br><br>