[OpenSIPS-Users] fetch_event_params for E_UL_CONTACT_INSERT
Bogdan-Andrei Iancu
bogdan at opensips.org
Wed Jun 21 16:36:53 EDT 2017
Andreas,
The pv_get_callid() function (which triggers the error) is exclusively
used when evaluating the $ci variable. Also, based on the position in
the flow of logs, it looks like being generated when the event route is
executed.
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
OpenSIPS Bootcamp 2017, Houston, US
http://opensips.org/training/OpenSIPS_Bootcamp_2017.html
On 06/21/2017 11:16 PM, Andreas Bøckmann wrote:
> Hello
>
> Not that I can see no, as shown in the examples above both xlog
> statements use the avp fetched from event params.
> I only believe it's related to event_param_set as it happens right
> after E_UL_CONTACT_INSERT.
>
>
> DBG:core:parse_headers: flags=ffffffffffffffff
> DBG:core:evi_param_set: adding string param
> DBG:core:destroy_avp_list: destroying list (nil)
> DBG:core:parse_headers: flags=8000000
> DBG:core:evi_param_set: adding string param
> DBG:core:evi_param_set: adding string param
> DBG:core:evi_param_set: adding string param
> DBG:core:evi_param_set: adding string param
> DBG:core:evi_param_set: adding int param
> DBG:core:evi_param_set: adding string param
> DBG:core:evi_param_set: adding int param
> DBG:core:evi_param_set: adding int param
> DBG:core:evi_param_set: adding string param
> DBG:core:evi_param_set: adding int param
> DBG:core:evi_raise_event_msg: found subscriber E_UL_CONTACT_INSERT
> DBG:core:parse_headers: flags=40
> ERROR:core:pv_get_callid: cannot parse Call-Id header
> DBG:event_route:scriptroute_fetch: Fetching parameters for event
> E_UL_CONTACT_INSERT
> DBG:event_route:scriptroute_fetch: Successfully fetched 10 parameters
> DBG:core:parse_headers: flags=40
> ERROR:core:pv_get_callid: cannot parse Call-Id header
>
> On Wed, Jun 21, 2017 at 9:34 PM, Bogdan-Andrei Iancu
> <bogdan at opensips.org <mailto:bogdan at opensips.org>> wrote:
>
> Hi Andreas,
>
> I guess the error is triggered by the usage of $ci, right ?
>
> Best regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> http://www.opensips-solutions.com <http://www.opensips-solutions.com>
>
> OpenSIPS Bootcamp 2017, Houston, US
> http://opensips.org/training/OpenSIPS_Bootcamp_2017.html
> <http://opensips.org/training/OpenSIPS_Bootcamp_2017.html>
>
> On 06/21/2017 07:22 PM, Andreas Bøckmann wrote:
>> Sorry!
>> I wasn't aware the parameters had to be ordered specifically.
>> Works better again now.
>> I am still seeing the ERROR:core:pv_get_callid: cannot parse
>> Call-Id header error on E_UL_CONTACT_INSERT but I wonder if that
>> might be related to
>> https://github.com/OpenSIPS/opensips/issues/1126
>> <https://github.com/OpenSIPS/opensips/issues/1126> ?
>> Didn't see this error using E_UL_CONTACT_INSERT event in 2.2.
>> xlog correctly prints the CallID from the fetch_event_params
>> parameter and I also tried with simple syntax of 1,2,3,4 etc.
>> which also yields the same error but is able but param contains
>> correct CallID.. so everything seems to work anywho.
>> /fetch_event_params("$avp(1);$avp(2);$avp(3);$avp(4);$avp(5);$avp(6);$avp(7);$avp(8);$avp(9);$avp(10)");/
>> /xlog("L_NOTICE","L40.01, E_UL_INSERT $avp(1), $avp(2), $avp(3),
>> $avp(4), $avp(5), $avp(6), $avp(7), $avp(8), $avp(9), $avp(10)\n"); /
>> //
>> /fetch_event_params("aor=$avp(aor_param);uri=$avp(uri_param);received=$avp(received_param);path=$avp(path_param);qval=$avp(qval_param);socket=$avp(socket_param);bflags=$avp(bflags_param);expires=$avp(expires_param);callid=$av$/
>> /xlog("L_NOTICE","L40.01, E_UL_INSERT cid=$avp(callid_param),
>> $avp(aor_param), $avp(uri_param), $avp(received_param),
>> $avp(bflags_param), $avp(cseq_param), $avp(socket_param),
>> $avp(expires_param), $avp(path_param)\n");/
>> Thanks again!
>> //Andreas
>> On Fri, Jun 16, 2017 at 5:03 PM, Bogdan-Andrei Iancu
>> <bogdan at opensips.org <mailto:bogdan at opensips.org>> wrote:
>>
>> Hi Andreas, Note that the number and order of parameters
>> provided by the E_UL_CONTACT_INSERT event changed starting
>> with 2.3. See:
>> http://www.opensips.org/html/docs/modules/2.4.x/usrloc.html#idp5808768
>> <http://www.opensips.org/html/docs/modules/2.4.x/usrloc.html#idp5808768>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>> OpenSIPS Founder and Developer
>> http://www.opensips-solutions.com
>> <http://www.opensips-solutions.com>
>>
>> OpenSIPS Bootcamp 2017, Houston, US
>> http://opensips.org/training/OpenSIPS_Bootcamp_2017.html
>> <http://opensips.org/training/OpenSIPS_Bootcamp_2017.html>
>>
>> On 06/12/2017 09:43 PM, Andreas Bøckmann wrote:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170621/5f3a8295/attachment-0001.html>
More information about the Users
mailing list