Does anybody how to define <caller> profile ?

Jimmy


  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


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to