[SR-Users] t_local_replied() ?

Bernhard Suttner bernhard.suttner at winet.ch
Tue Feb 1 20:37:42 CET 2011


argh. I just mixed up the true/false return values in the eMail but you still got it :-)

Thanks a lot!

----- Original Message -----


From: Daniel-Constantin Mierla [mailto:miconda at gmail.com]
To: Bernhard Suttner [mailto:bernhard.suttner at winet.ch]
Cc: sr-users at lists.sip-router.org
Sent: Tue, 01 Feb 2011 20:31:17 +0100
Subject: Re: [SR-Users] t_local_replied() ?


> Hello,
> 
> not sure if you ask about the options, or you tried them and don't give 
> you the needed feature, since there are some improper true/false return 
> codes in your email. t_branch_replied() will return false if the 408 is 
> generated locally.
> 
> Cheers,
> Daniel
> 
> On 2/1/11 8:25 PM, Bernhard Suttner wrote:
> > Hi,
> >
> > just to be sure:
> >
> > - If the gateway does send back a 100 Trying and then a 408 is detected
> within failure_route the method t_branch_replied does return false (means:
> gateway is up and running) - dont go to next gateway (dispatcher)
> >
> > - If the gateway does not respond and a 408 is detected within
> failure_route (= 408 was generated from kamailio) t_branch_replied does
> return true (means: gateway is down) - go to the next gateway (dispatcher)
> >
> > Is that correct or am I wrong?
> >
> > Best regards,
> > Bernhard
> >
> >
> >
> > ----- Original Message -----
> > From: Daniel-Constantin Mierla [mailto:miconda at gmail.com]
> > To: Bernhard Suttner [mailto:bernhard.suttner at winet.ch]
> > Cc: sr-users at lists.sip-router.org
> > Sent: Tue, 01 Feb 2011 13:30:54 +0100
> > Subject: Re: [SR-Users] t_local_replied() ?
> >
> >
> >> Hello,
> >>
> >> On 2/1/11 12:08 PM, Bernhard Suttner wrote:
> >>> Hi,
> >>>
> >>> I am using the dispatcher module and want to check within the
> >> failure_route if the 408 was internally generated from kamailio or it was
> >> received from the dispatcher gateway.
> >>> There was previously a function called t_local_replied() in the
> TM-module
> >> but I could not find this function in the current documentation. Was it
> >> removed?
> >>> Is there a alternative to check if the 408 was local generated or if it
> >> was received from the peer (= from the dispatcher gateway)?
> >> see the example of:
> >> http://kamailio.org/docs/modules/stable/modules/tm.html#t_branch_replied
> >>
> >> Cheers,
> >> Daniel
> >>
> >> -- 
> >> Daniel-Constantin Mierla
> >> http://www.asipto.com
> >>
> >>
> > _______________________________________________
> > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> > sr-users at lists.sip-router.org
> > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> 
> -- 
> Daniel-Constantin Mierla
> http://www.asipto.com
> 
> 



More information about the sr-users mailing list