Bogdan,
can you please hint me of a way to make decisions with the
information in the 302? Could I use the "on_reply"-route for this or
am I still only re-processing INVITEs there aswell?
Br,
/Tobias
Tobias Lindgren said the following on 2008-02-15 15:28:
Hi Bogdan,
cool, didn't know that, thanks!
Br,
/Tobias
Bogdan-Andrei Iancu said the following on 2008-02-15 15:26:
> Hi Tobias,
>
> It is nothing bogus or funny :)...
>
> Shortly, in failure route, you re-process the original INVITE (and
> not the reply that trigger the route). So you will see the source
> ip of the request ;).
>
> For more on this, see the admin training material :
>
http://www.voice-sistem.ro/downloads/2007.08.29-Admin-Course/
>
> Regards,
> Bogdan
>
> Tobias Lindgren wrote:
>> Hi there,
>>
>> I was trying to do this in OpenSER 1.2.2:
>> failure_route[1] {
>> if (t_check_status("302")){
>> xlog("L_ERR", "302 source ip address is $si");
>> if (src_ip == 192.168.5.1) {
>> # Do something
>> };
>> };
>> };
>>
>> But the proxy sending the 302 (192.168.5.1) is not the one who
>> ends up in my logs, instead my sip-server (192.168.1.1) who
>> initiated the call ends up in the log.
>>
>> "302 source ip address is 192.168.1.1".
>>
>> Have I understood the "$si" psuedo variable wrong? Can I find the
>> correct source address of the 302-message somehow?
>>
>> Br,
>> /Tobias
>>
>> _______________________________________________
>> Users mailing list
>> Users(a)lists.openser.org
>>
http://lists.openser.org/cgi-bin/mailman/listinfo/users
>>
>>
>