<div dir="ltr"><div>The AVP stands for Attribute Value Pair. If you are familiar with any programming language then it is like a variable, which can be assigned any String or Integer value, you can later use that variable in your script (kamailio.cfg) or pass it to any module function that accepts AVP in its input arguments. e.g.<br><br></div><div>$avp(myuser) = "someone";                                                       # AVP declaration with simple string value assignment.<br></div><div>$avp(myuri) = "sip:" + $avp(myuser) + "@<a href="http://somedomain.com">somedomain.com</a>";  # AVP value assignment may include other AVPs.<br></div><div>m_store($avp(myuri));                                                               # The value of AVP will be passed to module function m_store.<br></div><div><br></div>There are several modules which allow you to declare an AVP in module parameters section. You can then assign value to that AVP in your script, and any function call after that assignment will allow module's internal code to use that AVP value and/or store the result of function in that AVP. e.g.<br><br>modparam("msilo", "extra_hdrs_avp", "$avp(myhdrs)")           # AVP declaration<br>...<br><div>$avp(myhdrs) = "P-Network-Info: 3G/LTE\r\n";                         # Assign value to AVP<br></div><div>m_store($tu);                                                                            # m_store, will check if you have assigned any value to declared AVP and uses it.<br><br></div><div>Hope this helps.<br><br></div><div>Thank you.<br></div><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 18, 2014 at 2:50 PM, Mahmoud Ramadan Ali <span dir="ltr"><<a href="mailto:cisco.and.more.blog@gmail.com" target="_blank">cisco.and.more.blog@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hiiii everyone,<br></div>Forgive me for such simple question but i'm newbie to Kamailio. i was reading about the dispatcher module<br><a href="http://www.kamailio.org/docs/modules/4.2.x/modules/dispatcher.html#dispatcher.p.db_url" target="_blank">http://www.kamailio.org/docs/modules/4.2.x/modules/dispatcher.html#dispatcher.p.db_url</a>      and i want someone to explain to me in a simple way what is AVP , for example the AVP in the <b><i>modparam("dispatcher", "grp_avp", "$avp(dsgrp)")</i></b>  and what the "dsgrp" represents and how to configure the AVP values ...<br></div><div>Kinda Regards<br></div>Thanks in advance...</div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>