[sr-dev] git:master:8960a3e7: dialplan: use PV_IDX_ITR

Victor Seva linuxmaniac at torreviejawireless.org
Thu Mar 19 18:03:11 CET 2015


Module: kamailio
Branch: master
Commit: 8960a3e7aa52f706676806c175e70d228cc11549
URL: https://github.com/kamailio/kamailio/commit/8960a3e7aa52f706676806c175e70d228cc11549

Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: 2015-03-19T18:01:41+01:00

dialplan: use PV_IDX_ITR

---

Modified: modules/dialplan/dp_repl.c

---

Diff:  https://github.com/kamailio/kamailio/commit/8960a3e7aa52f706676806c175e70d228cc11549.diff
Patch: https://github.com/kamailio/kamailio/commit/8960a3e7aa52f706676806c175e70d228cc11549.patch

---

diff --git a/modules/dialplan/dp_repl.c b/modules/dialplan/dp_repl.c
index 5c63ef1..bfeda07 100644
--- a/modules/dialplan/dp_repl.c
+++ b/modules/dialplan/dp_repl.c
@@ -156,7 +156,7 @@ int dpl_detect_avp_indx(const pv_elem_p elem, pv_elem_p *avp)
 
 	for(e=elem, num=num_avp_all=0; e!=NULL; e=e->next, num++) {
 		if(e->spec!=NULL && e->spec->type==PVT_AVP &&
-			e->spec->pvp.pvi.type==PV_IDX_ALL)
+			e->spec->pvp.pvi.type==PV_IDX_ITR)
 		{
 			*avp = e;
 			num_avp_all++;




More information about the sr-dev mailing list