[OpenSIPS-Users] Opensips mid registar module 2 interface configuration

Liviu Chircu liviu at opensips.org
Wed Jan 24 03:34:28 EST 2018


Hi guys,

Setting the $du is optional, since a NULL $du will cause t_relay() to 
route out to the current $ru. Is OpenSIPS listening on an interface 
belonging to that private network? Are there any relevant error logs? 
Does the message get sent out at all, even if not received on the other 
side? Have you checked your firewall configurations on both boxes?

Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 24.01.2018 10:15, Srigo Kanapathipillai wrote:
> Hi,
>
> In your case1, you have to put (destination uri) $du = 
> "sip:192.168.100.100:5070 <http://192.168.100.100:5070/>";
>
> Srigo
> Sent from my iPhone
>
> On 15 Jan 2018, at 11:27, Kirill Galinurov <k.galinurov at gmail.com 
> <mailto:k.galinurov at gmail.com>> wrote:
>
>> Hi I try mid register module in Opensips 2.3
>>
>> My very simple config is:
>>
>> mhomed=1
>>
>> listen=udp:10.23.96.193:5060 <http://10.23.96.193:5060>   # CUSTOMIZE ME
>> listen=udp:192.168.100.200:5060 <http://192.168.100.200:5060>   # 
>> CUSTOMIZE ME
>>
>>
>>         if (is_method("REGISTER"))
>>        {
>> mid_registrar_save("location");
>>    switch ($retcode) {
>>        case 1:
>>            xlog("L_INFO", "forwarding REGISTER to main registrar...\n");
>>            $ru = "sip:192.168.100.100:5070 
>> <http://192.168.100.100:5070>";
>>            if (!t_relay()) {
>>                send_reply("500", "Server Internal Error 1");
>>                }
>>
>>            break;
>>        case 2:
>>            xlog("L_INFO", "REGISTER has been absorbed!\n");
>>            break;
>>        default:
>>            xlog("L_ERR", "mid-registrar error!\n");
>>            send_reply("500", "Server Internal Error 2");
>>    }
>>
>> But REGISTER message is'nt  relayed to 192.168.100.100
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20180124/4e18e290/attachment.html>


More information about the Users mailing list