[OpenSIPS-Users] get_profile_size("caller","$avp(s:caller_uuid)","$var(calls)"); fails with profile <caller> not definited

Bogdan-Andrei Iancu bogdan at voice-system.ro
Sat May 16 09:24:32 CEST 2009


Hi Jimmy,

you need to define the dialog profile as dialog module parameter:
    modparam("dialog", "profiles_with_value", "caller")

See: http://www.opensips.org/html/docs/modules/1.5.x/dialog.html#id271893

I extended the tutorial example to include the profile definition.

Regards,
Bogdan

Jinsong Hu wrote:
> 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
>   




More information about the Users mailing list