[OpenSIPS-Users] Authentication problem with softphone X-Lite
Iñaki Baz Castillo
ibc at aliax.net
Thu Dec 11 13:46:04 CET 2008
2008/12/11 <mmarzuola at interfree.it>:
>
> If the port 5060 is assigned to the X-Lite softphone the from uri is correct while if the port number is different from 5060 the uri becomes: sip:1001 at mysip.com:5061
> Softphones and proxy are in the same domain.
Ok, very estrange anyway.
I'm not sure about if "myself" also matches the port, I 'd say that it
doesn't do it, but if you say...
Instead of:
if ( from_uri==myself )
Use:
if ( $rd == DOMAIN )
Of course, this is just valid if you have just few domains:
if ( $rd == DOMAIN_1 || $rd == DOMAIN_2 )
If not, you can use "domain" module that uses a DB table to store all
the domains and provide simple functions to match the RURI or From
domain against existing domains in the table.
--
Iñaki Baz Castillo
<ibc at aliax.net>
More information about the Users
mailing list