[SR-Users] Dispatcher Confusion (v3.2.0)

Daniel-Constantin Mierla miconda at gmail.com
Wed Oct 26 05:44:06 CEST 2011


Hello,

On 10/25/11 5:52 PM, Asgaroth wrote:
> Hi Daniel,
>
> Thanks for the clarrification,
>
> On 25/10/2011 16:30, Daniel-Constantin Mierla wrote:
>>
>>
>>       4.6. |ds_mark_dst("s")|
>>
>> Mark the last used address from destination set as inactive 
>> ("i"/"I"/"0"), active ("a"/"A"/"1") or probing ("p"/"P"/"2"). With 
>> this function, an automatic detection of failed gateways can be 
>> implemented. When an address is marked as inactive or probing, it 
>> will be ignored by 'ds_select_dst' and 'ds_select_domain'.
>>
>
> Above is the part that is a little misleading, it says that
>
> "When an address is marked as inactive or probing, it will be ignored 
> by 'ds_select_dst' and 'ds_select_domain'."
>
> This, to me, means that if a gateway is in probing mode 
> (Active-Probing) then it wont be selected in the destination set 
> because it is in probing mode, if this is not the case then maybe the 
> above line should read:
>
> "When an address is marked as inactive or inactive-probing, it will be 
> ignored by 'ds_select_dst' and 'ds_select_domain'."
>
> This brings me to my next question then, how would I set the state of 
> a destination to Inactive-Probing (state: IP) from the routing script. 
> The ds_mark_dst() function only allows one of "a", "i", "p".
>
> If I do a ds_mark_dst("i"), then the state changes to "IX", Inactive 
> with no probing to tell when gateway is back up.
>
> If I do a ds_mark_dst("i") and then right after ds_mark_dst("p"), a 
> log is printed saying that you cannot put a destination into probing 
> state when it is marked as inactive.
are you sure you run the devel version? There is no such case in the 
sources -- send me exactly the log message you get. Only when the 
destination is disabled the probing cannot be set, but not the same case 
of inactive.

>
> Is it possible to set the state of a gateway to inactive-probing from 
> the routing script?

Yes, it should be, no constraint in master branch source code.

Daniel

>
> Thanks
>
>
>
> _______________________________________________
> 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
Kamailio Advanced Training, Dec 5-8, Berlin: http://asipto.com/u/kat
http://linkedin.com/in/miconda -- http://twitter.com/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20111026/85df6c63/attachment.htm>


More information about the sr-users mailing list