[OpenSER-Users] Help with "lcr" load_contacts() and	next_contacts()
    Iñaki Baz Castillo 
    ibc at aliax.net
       
    Tue Oct 23 10:04:33 CEST 2007
    
    
  
El Lunes, 22 de Octubre de 2007, Iñaki Baz Castillo escribió:
> Hi, I want to try serial forwarding changing "q" values of "location"
> table.
>
> Unfortunatelly my script only does the first INVITE to contact(s) with
> mayor "q". I've tryed everything and read the entire doc and examples, but
> get nothing, could you help me please?
Any help with this please? It's a feature I require and can't get it working as expected.
Note the location table has:
  username    domain                     contact                                         q
  800             mydomain.org          sip:800 at 192.168.1.33:5060        0.80
  800             mydomain.org          sip:800 at 192.168.1.33:5080        0.50
After the "load_contacts() and next_contacts() in route block I get:
  avp(i:711) = <null>
  ds =  Contact: sip:800 at 192.168.1.33:5060
That contacts rejects the call so next_contact() in failure route says:
  avp(i:711) = <null>
  ds =  Contact: sip:800 at 192.168.1.33:5060, <sip:800 at 192.168.1.33:5080>;q=0
Why q=0 in failure_route? why do appear both locations in failure route? how should it be?
Of course, the second call is not done, just the first INVITE to contact with q=0.80.
Thanks for any help.
-- 
Iñaki Baz Castillo
    
    
More information about the Users
mailing list