[OpenSIPS-Users] Registrar not saving received from Path header

Nathaniel L Keeling III keeling at akan-tech.com
Thu May 23 16:44:47 CEST 2013


Hello Bogdan,

The change that you did is now causing things to work. I have attached a 
snippet of the log file and I have listed the output from the extra 
debug lines from your patch within the email:

May 23 09:31:28   OpenSips[23458]: [ID 197553 local1.error] SAVING THE 
SUBSCRIBER INTO THE LOCATION TABLE, test with extra debug 
.......................................
May 23 09:31:28   OpenSips[23458]: [ID 795617 local1.debug] 
DBG:registrar:save_aux: xXx - flags param is 10038f8a0
May 23 09:31:28   OpenSips[23458]: [ID 956053 local1.debug] 
DBG:registrar:save_aux: xXx - flags string is <p0>
May 23 09:31:28   OpenSips[23458]: [ID 154992 local1.debug] 
DBG:registrar:save_aux: xXx - flags bitmask is <20>
May 23 09:31:28   OpenSips[23458]: [ID 497291 local1.debug] 
DBG:core:parse_headers: flags=ffffffffffffffff
.
.
May 23 09:31:28   OpenSips[23458]: [ID 497291 local1.debug] 
DBG:core:parse_headers: flags=8000000
May 23 09:31:28   OpenSips[23458]: [ID 269964 local1.debug] 
DBG:registrar:pack_ci: xXx - flags are 20
May 23 09:31:28   OpenSips[23458]: [ID 692724 local1.debug] 
DBG:registrar:pack_ci: xXx - saving path into usrloc
May 23 09:31:28   OpenSips[23458]: [ID 497291 local1.debug] 
DBG:core:parse_headers: flags=ffffffffffffffff

Thanks

Nathaniel L Keeling

On 5/23/13 4:44 AM, Bogdan-Andrei Iancu wrote:
> Hello Nathaniel,
>
> My test was just to see if your opensips hits the fixup function for 
> the flags - and it seems it does (the value I gave you is bogus, so it 
> ended up with error).
>
> Could you try this new patch (remove old one) ? (of course, put back 
> the "p0" param ).
>
> Thanks and regards,
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> http://www.opensips-solutions.com
>
> On 05/23/2013 01:43 AM, Nathaniel L Keeling III wrote:
>> Hello Bogdan,
>>
>> I am using opensips v1.8.3. I was using v1.8.2 earlier but I upgraded 
>> thinking it might fix my issue. When I changed the script to the 
>> save("location", "$((ff))") I get this config error when starting 
>> opensips:
>>
>> May 22 17:39:11 [14757] ERROR:core:pv_parse_spec: pvar ""(inner_name) 
>> not found
>> May 22 17:39:11 [14757] ERROR:core:pv_parse_spec: wrong char [f/102] 
>> in [$((ff))] at [3 (2)]
>> May 22 17:39:11 [14757] ERROR:core:fixup_spve: wrong format[$((ff))]
>> May 22 17:39:11 [14757] ERROR:core:fix_actions: fixing failed 
>> (code=-1) at cfg line 767
>> May 22 17:39:11 [14757] CRITICAL:core:fix_expr: fix_actions error
>> May 22 17:39:11 [14757] ERROR:core:main: failed to fix configuration 
>> with err code -1
>>
>> Thanks
>>
>> Nathaniel L Keeling
>>
>> On 5/22/13 11:46 AM, Bogdan-Andrei Iancu wrote:
>>> Could you try : save("location","$((ff))") ?
>>> Do you get any error ?
>>>
>>> What is your opensips version ?
>>>
>>> Regards,
>>> Bogdan-Andrei Iancu
>>> OpenSIPS Founder and Developer
>>> http://www.opensips-solutions.com
>>>
>>> On 05/22/2013 05:49 PM, Nathaniel L Keeling III wrote:
>>>> Hello Bogdan,
>>>>
>>>> I have validated the script and that i am passing a parameter. I 
>>>> also changed the debug log statement that I displayed right before 
>>>> the save() and I still get the same output. Here is the code that I 
>>>> use in the script:
>>>>
>>>>
>>>>     xlog("SAVING THE SUBSCRIBER INTO THE LOCATION TABLE, test with 
>>>> extra debug .......................................");
>>>>     if (!save("location", "p1"))
>>>>     {
>>>>         xlog("L_ERR", "ERR:callerid:$ci|end|System error trying to 
>>>> save Register's request location");
>>>>         sl_reply_error();
>>>>     }
>>>>
>>>>     xlog("L_INFO", "INFO:callerid:$ci|end|The subscriber has 
>>>> successfully registered with Akan Voice");
>>>>     exit;
>>>>
>>>> Is there a better way to validate? I am not sure of what else to check.
>>>>
>>>> Thanks
>>>>
>>>> Nathaniel L Keeling
>>>>
>>>> On 5/22/13 6:02 AM, Bogdan-Andrei Iancu wrote:
>>>>> Hi Nathaniel,
>>>>>
>>>>> Well, the logs shows that save() does not receive any flags as 
>>>>> params...everything indicates that you do not have the params or 
>>>>> you are using the wrong config file.
>>>>>
>>>>> Regards,
>>>>> Bogdan-Andrei Iancu
>>>>> OpenSIPS Founder and Developer
>>>>> http://www.opensips-solutions.com
>>>>>
>>>>> On 05/22/2013 08:22 AM, Nathaniel L Keeling III wrote:
>>>>>> Hello Bogdan,
>>>>>>
>>>>>> Here is the output from the opensips log. I have also attached a 
>>>>>> snippet from the log file.
>>>>>>
>>>>>> May 21 23:39:15   OpenSips[14397]: [ID 257313 local1.debug] 
>>>>>> DBG:registrar:save_aux: xXx - flags param is
>>>>>> May 21 23:39:15   OpenSips[14397]: [ID 154992 local1.debug] 
>>>>>> DBG:registrar:save_aux: xXx - flags bitmask is <0>
>>>>>>
>>>>>> May 21 23:39:15   OpenSips[14397]: [ID 269964 local1.debug] 
>>>>>> DBG:registrar:pack_ci: xXx - flags are 0
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> Nathaniel L Keeling
>>>>>>
>>>>>> On 5/20/13 11:56 AM, Bogdan-Andrei Iancu wrote:
>>>>>>> Hello Nathaniel,
>>>>>>>
>>>>>>> See the attached patch - it logs more from the part where the 
>>>>>>> params are handled .
>>>>>>>
>>>>>>> Regards,
>>>>>>> Bogdan-Andrei Iancu
>>>>>>> OpenSIPS Founder and Developer
>>>>>>> http://www.opensips-solutions.com
>>>>>>>
>>>>>>> On 05/18/2013 09:33 AM, Nathaniel L Keeling III wrote:
>>>>>>>> Hello Bogdan,
>>>>>>>>
>>>>>>>> Here are snippets from my script. I only have one place where I 
>>>>>>>> execute the save function. Just wondering, could it be 
>>>>>>>> truncating a byte?
>>>>>>>>
>>>>>>>> modparam("usrloc", "nat_bflag", 10)
>>>>>>>> modparam("usrloc", "use_domain", 1)
>>>>>>>> modparam("usrloc", "db_mode", 3)
>>>>>>>> modparam("usrloc", "db_url",
>>>>>>>> "postgres://opensips:opensipsrw@ama.akan.net/opensips181t")
>>>>>>>> modparam("registrar", "tcp_persistent_flag", 7)
>>>>>>>> modparam("registrar", "received_avp", "$avp(received_nh)")
>>>>>>>>
>>>>>>>>
>>>>>>>>     xlog("SAVING THE SUBSCRIBER INTO THE LOCATION TABLE 
>>>>>>>> ....................................................");
>>>>>>>>     if (!save("location","p1"))
>>>>>>>>     {
>>>>>>>>         xlog("L_ERR", "ERR:callerid:$ci|end|System error trying 
>>>>>>>> to save Register's request location");
>>>>>>>>         sl_reply_error();
>>>>>>>>     }
>>>>>>>>
>>>>>>>>     xlog("L_NOTICE", "NOTICE:callerid:$ci|end|The subscriber 
>>>>>>>> has successfully registered with Akan Voice");
>>>>>>>>     exit;
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>>
>>>>>>>> Nathaniel
>>>>>>>>
>>>>>>>> On 5/17/13 6:07 AM, Bogdan-Andrei Iancu wrote:
>>>>>>>>> Hello Nathaniel,
>>>>>>>>>
>>>>>>>>> That is odd.....it's like you do not set the "p1" flag ....
>>>>>>>>>
>>>>>>>>> I tested and I with "p1" flag I get:
>>>>>>>>>     May 17 14:05:03 [7944] DBG:registrar:pack_ci: xXx - flags 
>>>>>>>>> are 10
>>>>>>>>>
>>>>>>>>> Are you sure your script gets to the right save() ??
>>>>>>>>>
>>>>>>>>> Regards,
>>>>>>>>> Bogdan-Andrei Iancu
>>>>>>>>> OpenSIPS Founder and Developer
>>>>>>>>> http://www.opensips-solutions.com
>>>>>>>>>
>>>>>>>>> On 05/17/2013 09:37 AM, Nathaniel L Keeling III wrote:
>>>>>>>>>> Hello Bogdan,
>>>>>>>>>>
>>>>>>>>>> I added the patch and here is what I found: "OpenSips[4378]: 
>>>>>>>>>> [ID 269964 local1.debug] DBG:registrar:pack_ci: xXx - flags 
>>>>>>>>>> are 0". I have also included the log file.
>>>>>>>>>>
>>>>>>>>>> Thanks
>>>>>>>>>>
>>>>>>>>>> Nathaniel Keeling
>>>>>>>>>>
>>>>>>>>>> On 5/16/13 3:47 AM, Bogdan-Andrei Iancu wrote:
>>>>>>>>>>> Hello Nathaniel,
>>>>>>>>>>>
>>>>>>>>>>> Attached is an extended patch - remove the old one and apply 
>>>>>>>>>>> this one. Again look for any xXx logs .
>>>>>>>>>>>
>>>>>>>>>>> Regards,
>>>>>>>>>>> Bogdan-Andrei Iancu
>>>>>>>>>>> OpenSIPS Founder and Developer
>>>>>>>>>>> http://www.opensips-solutions.com
>>>>>>>>>>>
>>>>>>>>>>> On 05/14/2013 02:47 PM, Nathaniel L Keeling III wrote:
>>>>>>>>>>>> Hello Bogdan,
>>>>>>>>>>>>
>>>>>>>>>>>> here is the output from opensips's og file of the save() 
>>>>>>>>>>>> with the patch and the code snippet from the opensips.cfg. 
>>>>>>>>>>>> I did not see any ant logs with "xXx". Also,I have usrloc's 
>>>>>>>>>>>> db_mode set to 3.
>>>>>>>>>>>>
>>>>>>>>>>>>     xlog("SAVING THE SUBSCRIBER INTO THE LOCATION TABLE 
>>>>>>>>>>>> ....................................................");
>>>>>>>>>>>>     if (!save("location","p1"))
>>>>>>>>>>>>     {
>>>>>>>>>>>>         xlog("L_ERR", "ERR:callerid:$ci|end|System error 
>>>>>>>>>>>> trying to save Register's request location");
>>>>>>>>>>>>         sl_reply_error();
>>>>>>>>>>>>     }
>>>>>>>>>>>>     xlog("L_NOTICE", "NOTICE:callerid:$ci|end|The 
>>>>>>>>>>>> subscriber has successfully registered with Akan Voice");
>>>>>>>>>>>>     exit; 
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Users mailing list
>>>>>>>>>> Users at lists.opensips.org
>>>>>>>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Users mailing list
>>>>>>>>> Users at lists.opensips.org
>>>>>>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> 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/20130523/9d2ecc9c/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: registrar-path-debugv4-log.rtf
Type: text/rtf
Size: 12624 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20130523/9d2ecc9c/attachment-0001.bin>


More information about the Users mailing list