Hi All,
Can anyone tell me for which message types I should call lookup("location") before t_relay()?
ACK BYE CANCEL INVITE NOTIFY REFER SUBSCRIBE
REGISTER and NOTIFY
-----Original Message----- From: serusers-bounces@iptel.org [mailto:serusers-bounces@lists.iptel.org] On Behalf Of Java Rockx Sent: Wednesday, February 23, 2005 12:12 PM To: serusers@lists.iptel.org Subject: [Serusers] Which SIP messages types use lookup("location")?
Hi All,
Can anyone tell me for which message types I should call lookup("location") before t_relay()?
ACK BYE CANCEL INVITE NOTIFY REFER SUBSCRIBE
_______________________________________________ Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Ups
INVITE and NOTIFY of course.
All other should go by loose route or another method (strict?).
-----Original Message----- From: serusers-bounces@iptel.org [mailto:serusers-bounces@lists.iptel.org] On Behalf Of Vitaly Nikolaev Sent: Wednesday, February 23, 2005 12:31 PM To: 'Java Rockx' Cc: serusers@lists.iptel.org Subject: RE: [Serusers] Which SIP messages types use lookup("location")?
REGISTER and NOTIFY
-----Original Message----- From: serusers-bounces@iptel.org [mailto:serusers-bounces@lists.iptel.org] On Behalf Of Java Rockx Sent: Wednesday, February 23, 2005 12:12 PM To: serusers@lists.iptel.org Subject: [Serusers] Which SIP messages types use lookup("location")?
Hi All,
Can anyone tell me for which message types I should call lookup("location") before t_relay()?
ACK BYE CANCEL INVITE NOTIFY REFER SUBSCRIBE
_______________________________________________ Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
_______________________________________________ Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Vitaly Nikolaev wrote:
All other should go by loose route or another method (strict?).
Maybe often answerd, but I still haven't got it:
How exactly should loose_route() be used? Can I in any case do
setflag(1); # account the message if(loose_route()) { t_relay(); break; } # messages without route headers go here and have to be lookup()-ed
or are there some exceptions? Are the loose-routed messages accounted correctly?
Thanks, Andy
Loose_route in my understanding of the man who too lazy to read RFC is just look at SIP header and if it see that request belong to already established dialog (if there Route inside) send it straight to the destination without further processing. I do not use ACC but I remember when I tried it there was CDRs for ACK. Means it do account it right.
That why you do not need to worry that other messages then register and invite will do lookup.. they will not because they simply will be routed before, and if not - mistake.
Juts make sure REGISTER will never go there
-----Original Message----- From: Andreas Granig [mailto:andreas.granig@inode.info] Sent: Thursday, February 24, 2005 4:46 AM To: Vitaly Nikolaev Cc: 'Java Rockx'; serusers@lists.iptel.org Subject: Re: [Serusers] Which SIP messages types use lookup("location")?
Vitaly Nikolaev wrote:
All other should go by loose route or another method (strict?).
Maybe often answerd, but I still haven't got it:
How exactly should loose_route() be used? Can I in any case do
setflag(1); # account the message if(loose_route()) { t_relay(); break; } # messages without route headers go here and have to be lookup()-ed
or are there some exceptions? Are the loose-routed messages accounted correctly?
Thanks, Andy
In my logic, lookup is called for all types (except REGISTER) for all sip phones.
-----Original Message----- From: serusers-bounces@iptel.org [mailto:serusers-bounces@lists.iptel.org] On Behalf Of Java Rockx Sent: Wednesday, February 23, 2005 7:12 AM To: serusers@lists.iptel.org Subject: [Serusers] Which SIP messages types use lookup("location")?
Hi All,
Can anyone tell me for which message types I should call lookup("location") before t_relay()?
ACK BYE CANCEL INVITE NOTIFY REFER SUBSCRIBE
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Great! But is that necessary? I mean if an ACK is being processed, does lookup('location') really need to be called?
The same thing for BYE.
I only see that lookup() needs to be called for SUBSCRIBE, NOTIFY, INVITE, and possibly REFER
Regards, Paul
On Wed, 23 Feb 2005 07:56:55 -1000, Richard richard@o-matrix.org wrote:
In my logic, lookup is called for all types (except REGISTER) for all sip phones.
-----Original Message----- From: serusers-bounces@iptel.org [mailto:serusers-bounces@lists.iptel.org] On Behalf Of Java Rockx Sent: Wednesday, February 23, 2005 7:12 AM To: serusers@lists.iptel.org Subject: [Serusers] Which SIP messages types use lookup("location")?
Hi All,
Can anyone tell me for which message types I should call lookup("location") before t_relay()?
ACK BYE CANCEL INVITE NOTIFY REFER SUBSCRIBE
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
You are right. However loose-route should always be called first before other processing. So in theory ACK shouldn't reach lookup().
-----Original Message----- From: Java Rockx [mailto:javarockx@gmail.com] Sent: Wednesday, February 23, 2005 8:04 AM To: Richard Cc: serusers@lists.iptel.org Subject: Re: [Serusers] Which SIP messages types use lookup("location")?
Great! But is that necessary? I mean if an ACK is being processed, does lookup('location') really need to be called?
The same thing for BYE.
I only see that lookup() needs to be called for SUBSCRIBE, NOTIFY, INVITE, and possibly REFER
Regards, Paul
On Wed, 23 Feb 2005 07:56:55 -1000, Richard richard@o-matrix.org wrote:
In my logic, lookup is called for all types (except REGISTER) for all
sip
phones.
-----Original Message----- From: serusers-bounces@iptel.org [mailto:serusers-bounces@lists.iptel.org]
On
Behalf Of Java Rockx Sent: Wednesday, February 23, 2005 7:12 AM To: serusers@lists.iptel.org Subject: [Serusers] Which SIP messages types use lookup("location")?
Hi All,
Can anyone tell me for which message types I should call lookup("location") before t_relay()?
ACK BYE CANCEL INVITE NOTIFY REFER SUBSCRIBE
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
lookup("location") has to be used for any request that has the domain part of R-URI pointing to your SIP server, should be delivered to an end-user and does not have to follow any Route header -- it does not matter the type of method. Could be said that only REGISTERs are just for servers, the others are either mixed (e.g, OPTIONS) or only for end-users.
Daniel
On 02/23/05 19:04, Java Rockx wrote:
Great! But is that necessary? I mean if an ACK is being processed, does lookup('location') really need to be called?
The same thing for BYE.
I only see that lookup() needs to be called for SUBSCRIBE, NOTIFY, INVITE, and possibly REFER
Regards, Paul
On Wed, 23 Feb 2005 07:56:55 -1000, Richard richard@o-matrix.org wrote:
In my logic, lookup is called for all types (except REGISTER) for all sip phones.
-----Original Message----- From: serusers-bounces@iptel.org [mailto:serusers-bounces@lists.iptel.org] On Behalf Of Java Rockx Sent: Wednesday, February 23, 2005 7:12 AM To: serusers@lists.iptel.org Subject: [Serusers] Which SIP messages types use lookup("location")?
Hi All,
Can anyone tell me for which message types I should call lookup("location") before t_relay()?
ACK BYE CANCEL INVITE NOTIFY REFER SUBSCRIBE
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Hi all!
Every message which is in-dialog should be forwarded without lookup().
That means, for the first INVITE you make a lookup(), but if there are othere messages within this dialog (re-INVITE, INFO, REFER, ACK, BYE, MESSAGE ...) you don't use lookup.
dialog-creating requests and messages which are always outside a dialog will use lookup(), e.g.: INVITE, SUBSCRIBE, MESSAGE, PUBLISH
For NOTIFY: these belong to an existing dialog, so there is no need use lookup().
regards, klaus
Java Rockx wrote:
Great! But is that necessary? I mean if an ACK is being processed, does lookup('location') really need to be called?
The same thing for BYE.
I only see that lookup() needs to be called for SUBSCRIBE, NOTIFY, INVITE, and possibly REFER
Regards, Paul
On Wed, 23 Feb 2005 07:56:55 -1000, Richard richard@o-matrix.org wrote:
In my logic, lookup is called for all types (except REGISTER) for all sip phones.
-----Original Message----- From: serusers-bounces@iptel.org [mailto:serusers-bounces@lists.iptel.org] On Behalf Of Java Rockx Sent: Wednesday, February 23, 2005 7:12 AM To: serusers@lists.iptel.org Subject: [Serusers] Which SIP messages types use lookup("location")?
Hi All,
Can anyone tell me for which message types I should call lookup("location") before t_relay()?
ACK BYE CANCEL INVITE NOTIFY REFER SUBSCRIBE
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Only for requests that are not sent within a dialog, that rules out ACK, BYE, NOTIFY.
The rest of the messages -- INVITE, REFER, SUBSCRIBER either establish a dialog or are sent out of dialogs.
If any of them contains pre-loaded route set (one or more Route header fields) which will instruct your server to forward them elsewhere then you will not call lookup("location") because loose_route would return true and that is typically followed by t_relay. In such a case the route of the request is determined by the sender and there is no need for you to do user location lookup.
If they contain no Route header fields than it is up to you to decide how to route them if the domain part of the Request-URI contains one of domains or IP addresses your proxy is reponsible for. In this case the proxy would probably use lookup("location") to find out the registered contact.
If the domain part of the Request-URI does not contain one of your domains or IP address, then it probably makes no sense to perform lookup("location") because you would not have the contact of the callee in the user location database anyway. In this case one could either relay or reject the request, depending on the local policy.
Jan.
On 23-02 12:12, Java Rockx wrote:
Hi All,
Can anyone tell me for which message types I should call lookup("location") before t_relay()?
ACK BYE CANCEL INVITE NOTIFY REFER SUBSCRIBE
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers