[OpenSIPS-Users] get_profile_size("caller","$avp(s:caller_uuid)","$var(calls)"); fails with profile <caller> not definited
Jinsong Hu
jinsong_hu at hotmail.com
Thu May 14 08:33:44 CEST 2009
Hi,
I tried the sample code in http://www.opensips.org/Resources/DocsTutConcurrentCalls
there it has:
# get current calls for uuid
get_profile_size("caller","$avp(s:caller_uuid)","$var(calls)");
and when dialog is created, it has caller profile defined:
create_dialog();
set_dlg_profile("caller","$avp(s:caller_uuid)");
but when I run this, I got the following exception:
May 14 05:45:56 [2633] CRITICAL:dialog:fixup_profile: profile <caller> not definited
May 14 05:45:56 [2633] ERROR:core:fix_actions: fixing failed (code=-6) at cfg line 753
May 14 05:45:56 [2633] ERROR:core:main: failed to fix configuration with err code -6
does anybody know how to define the <caller> profile ?
I read the dialog doc http://www.opensips.org/html/docs/modules/1.5.x/dialog.html
and it looks set_dlg_profile("caller","$avp(s:caller_uuid)"); is the method to define the dialog,
if that is the case, why the sample doesn't work ?
Jimmy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20090513/a560a951/attachment.htm
More information about the Users
mailing list