Hi Gang

To process spiraling calls without the dialog module. I'm trying to use
a rr param to identify in which iteration I am.

So when I have a call spiraling through the same instance 3 times,
every time I process an invite I would do something like:

add_rr_param(";sp-count=$avp(sp-count)");

But to initialize that counter, I need to be able to read what is in
there beforehand.

if (check_route_param("sp-count=") {
        get_route_param(msg, "sp-count", $avp(sp-count))
        $avp(sp-count) = $avp(sp-count) + 1;
        add_rr_param(";sp-count=$avp(sp-count)");
} else {
        add_rr_param(";sp-count=1");
}

But what do I pass as msg parameter?

Is it the PV $msg(hdrs) ?

PS: I need this to append this to the call ID for rtpengine so I
hopefully can match new transactions no matter from which side they are
initiated to the correct rtp stream.

Mit freundlichen Grüssen

-Benoît Panizzon-
-- 
I m p r o W a r e   A G    -    Leiter Commerce Kunden
______________________________________________________

Zurlindenstrasse 29             Tel  +41 61 826 93 00
CH-4133 Pratteln                Fax  +41 61 826 93 01
Schweiz                         Web  http://www.imp.ch
______________________________________________________
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:

Reply via email to