[OpenSIPS-Users] get_profile_size() fails with profile <caller> not definited

Jinsong Hu jinsong_hu at hotmail.com
Fri May 15 06:47:49 CEST 2009


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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20090514/d02689a1/attachment.htm 


More information about the Users mailing list