<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.5730.13" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I solved this problem by myself:</FONT></DIV>
<DIV><FONT face=Arial size=2>define</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>modparam("dialog", "profiles_with_value", "caller ;
callee")<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>solved it.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=jinsong_hu@hotmail.com href="mailto:jinsong_hu@hotmail.com">Jinsong
Hu</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=users@lists.opensips.org
href="mailto:users@lists.opensips.org">users@lists.opensips.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, May 14, 2009 9:47
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [OpenSIPS-Users]
get_profile_size() fails with profile <caller>not definited</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>Does anybody how to define <caller> profile
?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Jimmy</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT><BR></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV><FONT face=Arial size=2>Hi, </FONT></DIV>
<DIV><FONT face=Arial size=2>I tried the sample code in <A
href="http://www.opensips.org/Resources/DocsTutConcurrentCalls">http://www.opensips.org/Resources/DocsTutConcurrentCalls</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>there it has:</FONT></DIV>
<DIV> # get current calls for
uuid<BR>get_profile_size("caller","$avp(s:caller_uuid)","$var(calls)"); <BR><BR></DIV>
<DIV><FONT face=Arial size=2>and when dialog is created, it has caller
profile defined:</FONT></DIV>
<DIV>
create_dialog();<BR>set_dlg_profile("caller","$avp(s:caller_uuid)");</DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>but when I run this, I got the following
exception:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>May 14 05:45:56 [2633]
CRITICAL:dialog:fixup_profile: profile <caller> not definited<BR>May
14 05:45:56 [2633] ERROR:core:fix_actions: fixing failed (code=-6) at cfg
line 753<BR>May 14 05:45:56 [2633] ERROR:core:main: failed to fix
configuration with err code -6<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>does anybody know how to define the
<caller> profile ? </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I read the dialog doc <A
href="http://www.opensips.org/html/docs/modules/1.5.x/dialog.html">http://www.opensips.org/html/docs/modules/1.5.x/dialog.html</A></FONT></DIV>
<DIV><FONT face=Arial size=2>and it looks <FONT face="Times New Roman"
size=3>set_dlg_profile("caller","$avp(s:caller_uuid)"); is the method to
define the dialog,</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3>if that is
the case, why the sample doesn't work ?</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial
size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman"
size=3>Jimmy</FONT></DIV></FONT>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial
size=2></FONT><BR><BR></DIV></BLOCKQUOTE>
<P>
<HR>
<P></P>_______________________________________________<BR>Users mailing
list<BR>Users@lists.opensips.org<BR>http://lists.opensips.org/cgi-bin/mailman/listinfo/users<BR></BLOCKQUOTE></BODY></HTML>