if (uri==myself) {
force_rport();
fix_nated_contact();
if (uri=~"^sip:*@*") {
rewritehostport("aaa.bbb.ccc.ddd:5060"); # forward to the SIP server
route(1);
return;
};
lookup("aliases");
if (!uri==myself) {
append_hf("P-hint: outbound alias\r\n");
route(1);
};
# native SIP destinations are handled using our USRLOC DB
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
exit;
};
append_hf("P-hint: usrloc applied\r\n");
}; # END-OF_( "if (uri==myself)" )
route(1);
}
U 2006/11/27 14:31:47.515721 <UAC's IP>:5060 -> <OpenSER's IP>:5060
NOTIFY sip:<MY DOMAIN> SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.6:5060;branch=z9hG4bK-9afb502d.
From: <USER1> <sip:<MY ACCT NO.>@<MY DOMAIN>>;tag=c0eac8eb24dd8c66o1.
To: <sip:<MY DOMAIN>>.
Call-ID: a3281cc3-9ad08a6e@192.168.1.6
.
CSeq: 11 NOTIFY.
Max-Forwards: 70.
Event: keep-alive.
User-Agent: Linksys/PAP2-2.0.12(LS).
Content-Length: 0.
.
############################
U 2006/11/27 14:31:48.013624 <UAC's IP>:5060 -> <OpenSER's IP>:5060
NOTIFY sip:<MY DOMAIN> SIP/2.0.
Via: SIP/2.0/UDP
192.168.1.6:5060;branch=z9hG4bK-9afb502d.
From: <USER1> <sip:<MY ACCT NO.>@<MY DOMAIN>>;tag=c0eac8eb24dd8c66o1.
To: <sip:<MY DOMAIN>>.
Call-ID:
a3281cc3-9ad08a6e@192.168.1.6.
CSeq: 11 NOTIFY.
Max-Forwards: 70.
Event: keep-alive.
User-Agent: Linksys/PAP2-2.0.12(LS).
Content-Length: 0.
.
######################################################
U 2006/11/27 14:31:49.014389 <UAC's IP>:5060 -> <OpenSER's IP>:5060
NOTIFY sip:<MY DOMAIN> SIP/2.0.
Via: SIP/2.0/UDP
192.168.1.6:5060;branch=z9hG4bK-9afb502d.
From: <USER1> <sip:<MY ACCT NO.>@<MY DOMAIN>>;tag=c0eac8eb24dd8c66o1.
To: <sip:<MY DOMAIN>>.
Call-ID:
a3281cc3-9ad08a6e@192.168.1.6.
CSeq: 11 NOTIFY.
Max-Forwards: 70.
Event: keep-alive.
User-Agent: Linksys/PAP2-2.0.12(LS).
Content-Length: 0.
.
#######################################################################################
U 2006/11/27 14:31:51.013908 <UAC's IP>:5060 -> <OpenSER's IP>:5060
NOTIFY sip:<MY DOMAIN> SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.6:5060;branch=z9hG4bK-9afb502d.
From: <USER1> <sip:<MY ACCT NO.>@<MY DOMAIN>>;tag=c0eac8eb24dd8c66o1.
To: <sip:<MY DOMAIN>>.
Call-ID: a3281cc3-9ad08a6e@192.168.1.6.
CSeq: 11 NOTIFY.
Max-Forwards: 70.
Event: keep-alive.
User-Agent: Linksys/PAP2-2.0.12(LS).
Content-Length: 0.
.
#################################################################################################################################################################################
U 2006/11/27 14:31:54.431844 <OpenSER's IP>:5060 -> <UAC's IP>:5060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 192.168.1.6:5060;branch=z9hG4bK-9afb502d;rport=5060;received=<UAC's IP>.
From: <USER1> <sip:<MY ACCT NO.>@<MY DOMAIN>>;tag=c0eac8eb24dd8c66o1.
To: <sip:<MY DOMAIN>>;tag=01a9973244fdde83b61ad80a93303da1.0b93.
Call-ID: a3281cc3-9ad08a6e@192.168.1.6.
CSeq: 11 NOTIFY.
Content-Length: 0.
.
############################
U 2006/11/27 14:31:54.433384 <OpenSER's IP>:5060 -> <UAC's IP>:5060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 192.168.1.6:5060;branch=z9hG4bK-9afb502d;rport=5060;received=<UAC's IP>.
From: <USER1> <sip:<MY ACCT NO.>@<MY DOMAIN>>;tag=c0eac8eb24dd8c66o1.
To: <sip:<MY DOMAIN>>;tag=01a9973244fdde83b61ad80a93303da1.0b93.
Call-ID:
a3281cc3-9ad08a6e@192.168.1.6.
CSeq: 11 NOTIFY.
Content-Length: 0.
.
#################################################################
U 2006/11/27 14:31:54.634717 <OpenSER's IP>:5060 -> <UAC's IP>:5060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP
192.168.1.6:5060;branch=z9hG4bK-9afb502d;rport=5060;received=<UAC's IP>.
From: <USER1> <sip:<MY ACCT NO.>@<MY DOMAIN>>;tag=c0eac8eb24dd8c66o1.
To: <sip:<MY DOMAIN>>;tag=
01a9973244fdde83b61ad80a93303da1.0b93.
Call-ID: a3281cc3-9ad08a6e@192.168.1.6.
CSeq: 11 NOTIFY.
Content-Length: 0.
On 12/15/06 21:27, Jiri Kuthan wrote:
> At 10:37 15/12/2006, Daniel-Constantin Mierla wrote:
>
>
>
>> On 12/14/06 17:03, samuel wrote:
>>
>>> It might be due to a DNS query....whenver a request has to be
>>> forwarded to a domain, openSER makes a DNS query to resolv the IP.
>>> During this operation, the child processing the request will not
>>> answer to further incoming messages.
>>>
>> If proves to be because of DNS, the best is to install nscd (name service cache daemon) which will speed-up a lot DNS interaction. Having it in the system will help other applications to do DNS queries faster ( e.g., asterisk, mail servers ...). It looks to be really powerful being able to cache many services, not only DNS. It comes packaged with most of common distributions.
>>
>
> Actually we have tried this one and yet another one (whose name I can't recall)
> and there were some reliability issues. Unfortunately, I remember this very remotely,
> cc-ed thus serusers as this debate was there once going on -- hopefuly someone
> with better memory than myself will speak up.
>
nscd is part of GNU C Library, I am sure a lot of people will be happy
to learn about and many will strive to fix as soon as possible, if you
can describe the issues you had with it -- it is part of a core
component in all Unixes.
Also, the name of the other one and the issues will help the developers
to make it better -- testing and feedback is the most appreciated.
Cheers,
Daniel
> -jiri
>
> --
> Jiri Kuthan http://iptel.org/~jiri/
>
>
>
_______________________________________________
Users mailing list
Users@openser.org
http://openser.org/cgi-bin/mailman/listinfo/users