[sr-dev] git:master: pv: use suip2a(...) for $snd(..)

Daniel-Constantin Mierla miconda at gmail.com
Mon Jul 18 22:38:36 CEST 2011


Module: sip-router
Branch: master
Commit: e151a9e99b1fed7805eaed5d16ca3d6466e1f517
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e151a9e99b1fed7805eaed5d16ca3d6466e1f517

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Mon Jul 18 22:37:07 2011 +0200

pv: use suip2a(...) for $snd(..)

- fixes FS#140, reported by Klaus Darilion

---

 modules_k/pv/pv_branch.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules_k/pv/pv_branch.c b/modules_k/pv/pv_branch.c
index a9dd1bc..4081429 100644
--- a/modules_k/pv/pv_branch.c
+++ b/modules_k/pv/pv_branch.c
@@ -395,7 +395,7 @@ int pv_get_sndto(struct sip_msg *msg, pv_param_t *param,
 					(int)snd_inf->len);
 		default:
 			/* 0 - ip */
-			s.s   = su2a(snd_inf->to, sizeof(*snd_inf->to));
+			s.s   = suip2a(snd_inf->to, sizeof(*snd_inf->to));
 			s.len = strlen(s.s);
 			return pv_get_strval(msg, param, res, &s);
 	}




More information about the sr-dev mailing list