[OpenSIPS-Users] DB-ONLY mode call between two proxies failed.
Ross Beer
beer.ross at googlemail.com
Sun Nov 1 17:12:28 CET 2009
You need to add a path to a sip message and then replicate at sip level. The
code I use to do this is:
if (is_method("REGISTER")) {
# Uncomment this if you want to use digest
authentication
if (!www_authorize("", "subscriber"))
{
www_challenge("", "0");
return;
};
save("location");
# REPLICATE TO OTHER SERVER
add_path_received();
t_replicate("sip:<Other Server>:5060");
exit;
};
Then on the other server you will need to catch the registraiton like this:
# RECEIVE REGISTRATIONS FROM OTHER SERVER
if(src_ip==<IP Address Of Server Sending Registration>)
{
xlog("LOG:Registration From Other Server\n");
if (is_method("REGISTER"))
{
save("location");
exit;
}
}
Hope this helps,
Ross
2009/11/1 Jiang Jinke <jiangjinke at gmail.com>
> I'm using the same location table with two/three proxy server, but I
> can't make calls between the proxies.
> Do I have to do replication in SIP level ? I'd like to do this in a
> simple way, but if replication will make the arch more flexible, then
> it's acceptable with a more complicate config.
>
> I'm having the following message in my syslog when the other endpoint
> is not in the same proxy server which was receiving the call.
>
> syslog content:
> WARNING:usrloc:dbrow2info: non-local socket
> <udp:xx.xx.xx.xx:5060>...ignoring
> ERROR:core:get_out_socket: no socket found
> ERROR:tm:update_uac_dst: failed to fwd to af 2, proto 1 (no
> corresponding listening socket)
> ERROR:tm:t_forward_nonack: failure to add branches
>
> Regards,
> Jinke Jiang
>
> _______________________________________________
> 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/20091101/49ab3560/attachment.htm
More information about the Users
mailing list