samuel wrote:
responses inline...
cleaned up the useless stuff..
I've also checked and now it works, congratulations!!!!
At least something is working...
It was just a test :p...if it works with weight 0, great. I would alse leave the port as the default.
I changed it to what you said, but the port is the same.
Regarding module,listen, and alias config file statements is another topic...can you post how does the messages the UA send to your proxy look like (mainly the Req-URI) and how do you treat incoming messages (config file).
Right now I'm using X-Lite
here's what it says it sends:
Where is the Req-URI?!?!!?
ooops, missed that line:
[06-11-08]15:38:00.487 | Debug | RESIP:DUM | "SEND: REGISTER sip:mobilia.it SIP/2.0 Via: SIP/2.0/ ;branch=z9hG4bK-d87543-8d63eb457c1ee920-1--d87543-;rport Max-Forwards: 70 Contact: sip:nick;rinstance=8c037b99c697d2f5 To: ""Nick Warr""sip:nick@mobilia.it From: ""Nick Warr""sip:nick@mobilia.it;tag=4354eb72 Call-ID: OTI2N2M1ZjRjM2Y5OGY3OTU1OWY1YjRlZDJmN2M2YmI. CSeq: 1 REGISTER Expires: 3600 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO User-Agent: X-Lite release 1006e stamp 34025 Content-Length: 0
Contact: sip:nick;rinstance=5cc9ab5df931ca7e
Contact without IP|hostname!?!?!? It looks like your X-lit is not properly configured...
or my cut and paste skills are lacking :)
then setting:
listen=89.202.252.16 alias=mobilia.it
I think it would work OK with the myself check...
That's what I thought, but it doesn't seem to want to recognize this:
I tried a line with sipserver.mobilia.it:5060
But it ignores the alias line..
I'm about to go nuts here.
I just grabbed another domain we don't use all that much, and inserted it as the domain for this server. I exported it as the SIP_DOMAIN, set it as an alias, set it as a listen= parameter.. everything.
I added the _sip._udp lines I even added an
IN A 89.202.252.16
line in the zone, so that the domain itself would point back to the IP address assigned to my server.
It still refuses to acknowledge that it is the domain. I can't think of any other ways to tell it.
I guess I just need to move to the is_uri_host_local parameter checks.. and use the domains from the DB.
what a pain in the ass this has been.
On the other hand, is_uri_host_local will check the domain table.... So it depends on your config file to know where the problem is..
I'll be using that method a little later.
For last: export SIP_DOMAIN is only useful for openserctl, not for the behaviour of the server (it will affect how users are treated depending on use_domain...).
Ok, that's what I thought, do I need to have the users use sipserver.mobilia.it as the domain?
If you are using SRV and NAT I would use mobilia.it (look at the To: and From: header of the REGISTER message you posted and you'll see that the domain is mobilia.it.). Unfortunately you'll find "several" problems depending on the UA your customers use and how they handle oubound proxy, NAPTR, and SRV records... But I'll go for it ;)
Well, after I work out how to use is_uri_host_local properly, I hope I can get the rest to go smoothly.
It's been a long one...
Hope it helps,
It has indeed.
Samuel.