[OpenSIPS-Devel] trunk/ACC module

Anton Zagorskiy a.zagorskiy at oyster-telecom.ru
Mon Dec 6 14:38:28 CET 2010


Hi, Bogdan.

Thanks for the answer.





WBR, Anton Zagorskiy
VoIP Developer, Oyster Telecom
Phone.: +7 812 601-0666
Fax: +7 812 601-0593
a.zagorskiy at oyster-telecom.ru
www.oyster-telecom.ru



> -----Original Message-----
> From: devel-bounces at lists.opensips.org [mailto:devel-
> bounces at lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu
> Sent: Monday, December 06, 2010 4:32 PM
> To: OpenSIPS devel mailling list
> Subject: Re: [OpenSIPS-Devel] trunk/ACC module
> 
> Hi Anton,
> 
> The error tells that the src and dst AVP are not recognized (as names).
> 
> An AVP can be defined via an ID (numerical $avp(i:10) or string
> $avp(s:foobar) ) or via an alias $avp(dst) (where the alias must be
> defined via avp_aliases core param - see
> http://www.opensips.org/Resources/DocsCoreFcn16#toc27).
> 
> So, either define the "dst" and "src" avp aliases, either use a
> different naming for your avp (using IDs)
> 
> For more see http://www.opensips.org/Resources/DocsCoreVar16#toc2
> 
> Regards,
> Bogdan
> 
> Anton Zagorskiy wrote:
> > Using example (modparam("acc",
> > "multi_leg_info","text1=$avp(src);text2=$avp(dst)")) I've got
> > ERROR:core:pv_parse_avp_name: bad avp name [src]
> > ERROR:core:pv_parse_spec: pvar "avp" has an invalid name param [src]
> > ERROR:core:pv_parse_spec: wrong char [)/41] in
> [$avp(src);text2=$avp(dst)]
> > at [8 (5)]
> > ERROR:acc:parse_acc_extra: parse failed in
> <text1=$avp(src);text2=$avp(dst)>
> > around position 6
> > ERROR:acc:parse_acc_extra: error
> > ERROR:acc:parse_acc_leg: failed to parse extra leg
> > ERROR:acc:mod_init: failed to parse multileg_info param
> >
> >
> >
> >
> >
> >
> > WBR, Anton Zagorskiy
> > VoIP Developer, Oyster Telecom
> > Phone.: +7 812 601-0666
> > Fax: +7 812 601-0593
> > a.zagorskiy at oyster-telecom.ru
> > www.oyster-telecom.ru
> >
> >
> >
> >
> >> -----Original Message-----
> >> From: devel-bounces at lists.opensips.org [mailto:devel-
> >> bounces at lists.opensips.org] On Behalf Of Vlad Paiu
> >> Sent: Monday, December 06, 2010 4:03 PM
> >> To: OpenSIPS devel mailling list
> >> Subject: Re: [OpenSIPS-Devel] trunk/ACC module
> >>
> >> Hello Anton,
> >>
> >> You are not properly using the multi_leg_info feature. The parameter
> >> value must be a list of tuples in the form of
> >> "text1=$avp(src);text2=$avp(dst)", for example.
> >> Depending on what is the back-end that you are using for accounting,
> >> the
> >> first text part has a different
> >> meaning.
> >> You can read more about this here :
> >> http://www.opensips.org/html/docs/modules/devel/acc.html#id292964
> >>
> >> Regards,
> >>
> >>
> >> On 12/06/2010 02:54 PM, Anton Zagorskiy wrote:
> >>
> >>> Hello.
> >>>
> >>> ACC module from trunk generates errors on a multi_leg_info
> parameter:
> >>> ERROR:acc:parse_acc_extra: parse failed in<$avp(src)>  around
> >>>
> >> position 9
> >>
> >>> ERROR:acc:parse_acc_extra: error
> >>> ERROR:acc:parse_acc_leg: failed to parse extra leg
> >>> ERROR:acc:mod_init: failed to parse multileg_info param
> >>> 						 ^^^^^^^^^^^^^
> >>> ACC sayed 'multileg_info' despite I wrote
> >>> modparam("acc", "multi_leg_info", "$avp(src)")
> >>>
> >>>
> >>>
> >>>
> >>> WBR, Anton Zagorskiy
> >>> VoIP Developer, Oyster Telecom
> >>> Phone.: +7 812 601-0666
> >>> Fax: +7 812 601-0593
> >>> a.zagorskiy at oyster-telecom.ru
> >>> www.oyster-telecom.ru
> >>>
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> Devel mailing list
> >>> Devel at lists.opensips.org
> >>> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
> >>>
> >>>
> >>>
> >> --
> >> Vlad Paiu
> >> www.voice-system.ro
> >>
> >>
> >> _______________________________________________
> >> Devel mailing list
> >> Devel at lists.opensips.org
> >> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
> >>
> >
> >
> > _______________________________________________
> > Devel mailing list
> > Devel at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
> >
> >
> 
> 
> --
> Bogdan-Andrei Iancu
> OpenSIPS Bootcamp
> 15 - 19 November 2010, Edison, New Jersey, USA
> www.voice-system.ro
> 
> 
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel




More information about the Devel mailing list