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

Jinsong Hu jinsong_hu at hotmail.com
Fri May 15 07:09:00 CEST 2009


I solved this problem by myself:
define

modparam("dialog", "profiles_with_value", "caller ; callee")

solved it.


  ----- Original Message ----- 
  From: Jinsong Hu 
  To: users at lists.opensips.org 
  Sent: Thursday, May 14, 2009 9:47 PM
  Subject: Re: [OpenSIPS-Users] get_profile_size() fails with profile <caller>not definited


  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
  Users at lists.opensips.org
  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20090514/1e781696/attachment.htm 


More information about the Users mailing list