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

2013-05-24 Thread Bogdan-Andrei Iancu
Hi Nathaniel,

The branch flags (used for NAT flag) are stored into the cflags in DB.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 05/24/2013 05:21 PM, Nathaniel L Keeling III wrote:
> Hello Bogdan,
>
> Thank you for all of your help! I have one other question for you. How
> does save() flag a request as being NAT'ed or which column within the
> location table is the setting saved? My register requests that are
> behind a NAT are not maintaining their connections. I have tried
> performing the nat ping but I do not see the pings going out with
> ngrep. I am flagging the request as being behind a NAT but I think
> they are not being flagged in the database for later detection for
> nathelper.
>
> Thanks
>
> Nathaniel
>
> On 5/24/13 4:14 AM, Bogdan-Andrei Iancu wrote:
>> Hi Nathaniel,
>>
>> Thanks for the help in troubleshooting this - I pushed the fix on
>> repos (GIT and SVN), so now there are official - remove the patch I
>> sent you and update from repo.
>>
>> Regards,
>> Bogdan-Andrei Iancu
>> OpenSIPS Founder and Developer
>> http://www.opensips-solutions.com
>>
>> On 05/24/2013 03:53 AM, Nathaniel L Keeling III wrote:
>>> 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 
>>> 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=
>>> .
>>> .
>>> May 23 09:31:28   OpenSips[23458]: [ID 497291 local1.debug]
>>> DBG:core:parse_headers: flags=800
>>> 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=
>>>
>>> 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
>>>
>>>
>>> ___
>>> Users mailing list
>>> Users@lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


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

2013-05-24 Thread Nathaniel L Keeling III

Hello Bogdan,

Thank you for all of your help! I have one other question for you. How 
does save() flag a request as being NAT'ed or which column within the 
location table is the setting saved? My register requests that are 
behind a NAT are not maintaining their connections. I have tried 
performing the nat ping but I do not see the pings going out with ngrep. 
I am flagging the request as being behind a NAT but I think they are not 
being flagged in the database for later detection for nathelper.


Thanks

Nathaniel

On 5/24/13 4:14 AM, Bogdan-Andrei Iancu wrote:

Hi Nathaniel,

Thanks for the help in troubleshooting this - I pushed the fix on 
repos (GIT and SVN), so now there are official - remove the patch I 
sent you and update from repo.


Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05/24/2013 03:53 AM, Nathaniel L Keeling III wrote:

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 
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=

.
.
May 23 09:31:28   OpenSips[23458]: [ID 497291 local1.debug] 
DBG:core:parse_headers: flags=800
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=


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



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


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

2013-05-24 Thread Bogdan-Andrei Iancu
Hi Nathaniel,

Thanks for the help in troubleshooting this - I pushed the fix on repos
(GIT and SVN), so now there are official - remove the patch I sent you
and update from repo.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 05/24/2013 03:53 AM, Nathaniel L Keeling III wrote:
> 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 
> 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=
> .
> .
> May 23 09:31:28   OpenSips[23458]: [ID 497291 local1.debug]
> DBG:core:parse_headers: flags=800
> 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=
>
> 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
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


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

2013-05-24 Thread Nathaniel L Keeling III

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 
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=

.
.
May 23 09:31:28   OpenSips[23458]: [ID 497291 local1.debug] 
DBG:core:parse_headers: flags=800
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=


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

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

2013-05-23 Thread Nathaniel L Keeling III

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 
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=

.
.
May 23 09:31:28   OpenSips[23458]: [ID 497291 local1.debug] 
DBG:core:parse_headers: flags=800
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=


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


{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf510
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
\margl1440\margr1440\vieww21340\viewh14540\viewkind0
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural

\f0\fs24 \cf0 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] 
\b DBG:registrar:save_aux: xXx - flags param is 10038f8a0
\b0  \
May 23 09:31:28   OpenSips[23458]: [ID 956053 local1.debug] 
\b DBG:registrar:save_aux: xXx - flags string is 
\b0  \
May 23 09:31:28   OpenSips[23458]: [ID 154992 local1.debug] 
\b DBG:registrar:save_aux: xXx - flags bitmask is <20> 
\b0 \
May 23 09:31:28   OpenSips[23458]: [ID 497291 local1.debug] DBG:core:parse_headers: flags=\
May 23 09:31:28   OpenSips[23458]: [ID 421386 local1.debug] DBG:core:parse_uri: parsed uri:\
May 23 09:31:28type=1 user=(8)\
May 23 09:31:28passwd=<>(0)\
May 23 09:31:28host=(13)\
May 23 09:31:28port=<>(0): 0\
May 23 09:31:28params=<>(0)\
May 23 09:31:28headers=<>(0)\
May 23 09:31:28   OpenSips[23458]: [ID 883594 local1.debug] DBG:core:parse_uri:  uri params:\
May 23 09:31:28  transport=<>, val=<>, proto=0\
May 23 09:31:28   OpenSips[23458]: [ID 996803 local1.debug] DBG:core:parse_uri:user-param=<>, val=<>\
May 23 09:31:28   OpenSips[23458]: [ID 784403 local1.debug] DBG:core:parse_uri:method=<>, val=<>\
May 23 09:31:28   OpenSips[23458]: [ID 185236 local1.debug] DBG:core:parse_uri:ttl=<>, val=<>\
May 23 09:31:28   OpenSips[23458]: [ID 628781 local1.debug] DBG:core:parse_uri:maddr=<>, val=<>\
May 23 09:31:28   OpenSips[23458]: [ID 949013 local1.debug] DBG:core:parse_uri:lr=<>, val=<>\
May 23 09:31:28   OpenSips[23458]: [ID 595631 local1.debug] DBG:core:parse_uri:r2=<>, val=<>\
May 23 09:31:28   OpenSips[23458]: [ID 323951 local1.debug] DBG:db_postgres:db_postgres_val2str: PQescapeStringConn: in: 8 chars, out: 8 chars\
May 23 09:31:28   OpenSips[23458]: [ID 323951 local1.debug] DBG:db_postgres:db_postgres_val2str: PQescapeStringConn: in: 13 chars, out: 13 chars\
May 23 09:31:28   OpenSips[23458]: [ID 181770 local1.debug] DBG:db_postgres:db_postgres_submit_query: 100391220 PQsendQuery(select contact,expires,q,callid,cseq,flags,cflags,user_agent,received,path,socket,methods,last_modified,sip_instance from location where username='nkeeling' AND domain='akanvoice.com' order by q)\
May 23 09:31:28   OpenSips[23458]: [ID 529718 local1.debug] DBG:core:db_new_result: allocate 48 bytes for result set at 1003960d0\
May 23 09:31:28   OpenSips[23458]: [ID 911073 local1.debug] DBG:db_postgres:db_postgres_store_result: 100391220 PQresultStatus(PGRES_TUPLES_OK) PQgetResult(100782900)\
May 23 09:31:28   OpenSips[23458]: [ID 460951 local1.debug] DBG:db_postgres:db_postgres_get_columns: 14 columns returned from the query\
May 23 09:31:28   OpenSips[23458]: [ID 586195 local1.debug] DBG:core:db_allocate_columns: allocate 392 bytes for result columns at 100396358\
May 23 09:31:28   OpenSips[23458]: [ID 412218 local1.debug] DBG:db_postgres:db_postgres_get_columns: RES_NA

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

2013-05-23 Thread Bogdan-Andrei Iancu
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:opensip...@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,


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

2013-05-22 Thread Nathaniel L Keeling III

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:opensip...@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,

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

2013-05-22 Thread Bogdan-Andrei Iancu
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:opensip...@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 TAB

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

2013-05-22 Thread Nathaniel L Keeling III

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:opensip...@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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/user

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

2013-05-22 Thread Bogdan-Andrei Iancu
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:opensip...@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@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>> ___
>>> Users mailing list
>>> Users@lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


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

2013-05-21 Thread Nathaniel L Keeling III

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:opensip...@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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


May 21 23:39:15   OpenSips[14397]: [ID 197553 local1.error] SAVING THE 
SUBSCRIBER INTO THE LOCATION TABLE 

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 497291 local1.debug] 
DBG:core:parse_headers: flags=
May 21 23:39:15   OpenSips[14397]: [ID 421386 local1.debug] DBG:core:parse_uri: 
parsed uri:
May 21 23:39:15type=1 user=(8)
May 21 23:39:15passwd=<>(0)
May 21 23:39:15host=(13)
May 21 23:39:15port=<>(0): 0
May 21 23:39:15params=<>(0)
May 21 23:39:15headers=<>(0)
May 21 23:39:15   OpenSips[14397]: [ID 883594 local1.debug] DBG:core:parse_uri: 
 uri params:
May 21 23:39:15  transport=<>, val=<>, proto=0
May 21 23:39:15   OpenSips[14397]: [ID 996803 local1.debug] DBG:core:parse_uri: 
   user-param=<>, val=<>
May 21 23:39:15   OpenSips[14397]: [ID 784403 local1.debug] DBG:core:parse_uri: 
   method=<>, val=<>
May 21 23:39:15   OpenSips[14397]: [ID 185236 local1.debug] DBG:core:parse_uri: 
   ttl=<>, val=<>
May 21 23:39:15   OpenSips[14397]: [ID 628781 local1.debug] DBG

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

2013-05-20 Thread Bogdan-Andrei Iancu
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:opensip...@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@lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Index: modules/registrar/save.c
===
--- modules/registrar/save.c	(revision 10023)
+++ modules/registrar/save.c	(working copy)
@@ -247,11 +247,14 @@
 		}
 
 		/* extract Path headers */
+		LM_DBG("xXx - flags are %X \n",_flags);
 		if ( _flagsĀ®_SAVE_PATH_FLAG ) {
+			LM_DBG("xXx - saving path into usrloc \n");
 			if (build_path_vector(_m, &path, &path_received, _flags) < 0) {
 rerrno = R_PARSE_PATH;
 goto error;
 			}
+			LM_DBG("xXx - path is <%.*s>(%d)\n",path.len,path.s,path.len);
 			if (path.len && path.s) {
 ci.path = &path;
 /* save in msg too for reply */
@@ -749,11 +752,13 @@
 	sctx.max_contacts = -1;
 
 	sctx.flags = 0;
+	LM_DBG("xXx - flags param is %s \n",_f);
 	if (_f && _f[0]!=0) {
 		if (fixup_get_svalue( _m, (gparam_p)_f, &flags_s)!=0) {
 			LM_ERR("invalid flags parameter");
 			return -1;
 		}
+		LM_DBG("xXx - flags string is <%.*s> \n",flags_s.len,flags_s.s);
 		for( st=0 ; st< flags_s.len ; st++ ) {
 			switch (flags_s.s[st]) {
 case 'm': sctx.flags |= REG_SAVE_MEMORY_FLAG; break;
@@ -799,6 +804,7 @@
 			}
 		}
 	}
+	LM_DBG("xXx - flags bitmask is <%X> \n",sctx.flags);
 	if(route_type == ONREPLY_ROUTE)
 		sctx.flags |= REG_SAVE_NOREPLY_FLAG;
 
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


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

2013-05-17 Thread Nathaniel L Keeling III

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:opensip...@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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


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

2013-05-17 Thread Bogdan-Andrei Iancu
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@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


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

2013-05-16 Thread Nathaniel L Keeling III

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; 


May 16 23:35:53   OpenSips[4378]: [ID 292666 local1.debug] DBG:core:parse_msg: 
SIP Request:
May 16 23:35:53   OpenSips[4378]: [ID 776402 local1.debug] DBG:core:parse_msg:  
method:  
May 16 23:35:53   OpenSips[4378]: [ID 700387 local1.debug] DBG:core:parse_msg:  
uri: 
May 16 23:35:53   OpenSips[4378]: [ID 641661 local1.debug] DBG:core:parse_msg:  
version: 
May 16 23:35:53   OpenSips[4378]: [ID 497291 local1.debug] 
DBG:core:parse_headers: flags=2
May 16 23:35:53   OpenSips[4378]: [ID 202288 local1.debug] 
DBG:core:parse_via_param: found param type 232,  = ; 
state=16
May 16 23:35:53   OpenSips[4378]: [ID 218084 local1.debug] DBG:core:parse_via: 
end of header reached, state=5
May 16 23:35:53   OpenSips[4378]: [ID 636936 local1.debug] 
DBG:core:parse_headers: via found, flags=2
May 16 23:35:53   OpenSips[4378]: [ID 481110 local1.debug] 
DBG:core:parse_headers: this is the first via
May 16 23:35:53   OpenSips[4378]: [ID 994387 local1.debug] 
DBG:core:parse_headers: header field type 1, name=, body=
May 16 23:35:53   OpenSips[4378]: [ID 499462 local1.debug] DBG:core:parse_msg:  
first  via:  <209.252.110.38:5060(5060)>
May 16 23:35:53   OpenSips[4378]: [ID 573780 local1.debug] DBG:core:parse_msg: 
;
May 16 23:35:53   OpenSips[4378]: [ID 937246 local1.debug] DBG:core:parse_msg: 
May 16 23:35:53   OpenSips[4378]: [ID 979351 local1.debug] DBG:core:parse_msg: 
exiting
May 16 23:35:53   OpenSips[4378]: [ID 911547 local1.debug] 
DBG:core:receive_msg: After parse_msg...
May 16 23:35:53   OpenSips[4378]: [ID 451678 local1.debug] 
DBG:core:receive_msg: preparing to run routing scripts...
May 16 23:35:53   OpenSips[4378]: [ID 497291 local1.debug] 
DBG:core:parse_headers: flags=40
May 16 23:35:53   OpenSips[4378]: [ID 202288 local1.debug] 
DBG:core:parse_via_param: found param type 234,  = <208.54.44.253>; 
state=6
May 16 23:35:53   OpenSips[4378]: [ID 202288 local1.debug] 
DBG:core:parse_via_param: found param type 235,  = <44494>; state=6
May 16 23:35:53   OpenSips[4378]: [ID 202288 local1.debug] 
DBG:core:parse_via_param: found param type 232,  = ; 
state=16
May 16 23:35:53   OpenSips[4378]: [ID 218084 local1.debug] DBG:core:parse_via: 
end of header reached, state=5
May 16 23:35:53   OpenSips[4378]: [ID 636936 local1.debug] 
DBG:core:parse_headers: via found, flags=40
May 16 23:35:53   OpenSips[4378]: [ID 903840 local1.debug] 
DBG:core:parse_headers: parse_headers: this is the second via
May 16 23:35:53   OpenSips[4378]: [ID 994387 local1.debug] 
DBG:core:parse_headers: header field type 1, name=, body=
May 16 23:35:53   OpenSips[4378]: [ID 994387 local1.debug] 
DBG:core:parse_headers: header field type 8, name=, body=<30>
May 16 23:35:53   OpenSips[4378]: [ID 218084 local1.debug] DBG:core:parse_to: 
end of header reached, state=10
May 16 23:35:53   OpenSips[4378]: [ID 841317 local1.debug] DBG:core:parse_to: 
display={}, ruri={sip:nkeel...@akanvoice.com}
May 16 23:35:53   OpenSips[4378]: [ID 993225 local1.debug] 
DBG:core:get_hdr_field:  [30]; uri=[sip:nkeel...@akanvoice.com] 
May 16 23:35:53   OpenSips[4378]: [ID 159376 local1.debug] 
DBG:core:get_hdr_field: to body [^M
May 16 23:35:53   ]
May 16 23:35:53   OpenSips[4378]: [ID 994387 local1.debug] 
DBG:core:parse_headers: header field type 3, name=, 
body=<>
May 16 23:35:53   OpenSips[4378]: [ID 994387 local1.debug] 
DBG:core:parse_headers: header field type 4, name=, 
body=<;tag=z9hG4bK97036383>
May 16 23:35:53   OpenSips[4378]: [ID 994387 local1.debug] 
DBG:core:parse_headers: header field type 6, name=, 
body=<548361087116@100.229.65.174>
May 16 23:35:53   OpenSips[4378]: [ID 421386 local1.debug] DBG:core:parse_uri: 
parsed uri:
May 16 23:35:53type=1 user=<>(0)
May 16 23:35:53passwd=<>(0)
May 16 23:35:53host=(13)
May 16 23:35:53port=<>(0): 0
May 16 23:35:53params=<>(0)
May 16 23:35:53headers=<>(0)

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

2013-05-16 Thread Bogdan-Andrei Iancu
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.
>
> ##
> # Try to save the Register's requests location information
> ##
>
> 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();
> }
>
> ##
> # Subscriber's register request was successfully authenticated
> # and saved
> ##
>
> xlog("L_NOTICE", "NOTICE:callerid:$ci|end|The subscriber has
> successfully registered with Akan Voice");
> exit;
>
>
> Thanks
>
> Nathaniel
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Index: modules/registrar/save.c
===
--- modules/registrar/save.c	(revision 10023)
+++ modules/registrar/save.c	(working copy)
@@ -247,11 +247,14 @@
 		}
 
 		/* extract Path headers */
+		LM_DBG("xXx - flags are %X \n",_flags);
 		if ( _flagsĀ®_SAVE_PATH_FLAG ) {
+			LM_DBG("xXx - saving path into usrloc \n");
 			if (build_path_vector(_m, &path, &path_received, _flags) < 0) {
 rerrno = R_PARSE_PATH;
 goto error;
 			}
+			LM_DBG("xXx - path is <%.*s>(%d)\n",path.len,path.s,path.len);
 			if (path.len && path.s) {
 ci.path = &path;
 /* save in msg too for reply */
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


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

2013-05-14 Thread Nathaniel L Keeling III

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.


##
# Try to save the Register's requests location information
##

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();
}

##
# Subscriber's register request was successfully authenticated
# and saved
##

xlog("L_NOTICE", "NOTICE:callerid:$ci|end|The subscriber has 
successfully registered with Akan Voice");

exit;


Thanks

Nathaniel
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 292666 
local1.debug] DBG:core:parse_msg: SIP Request:
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 776402 
local1.debug] DBG:core:parse_msg:  method:  
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 700387 
local1.debug] DBG:core:parse_msg:  uri: 
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 641661 
local1.debug] DBG:core:parse_msg:  version: 
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 497291 
local1.debug] DBG:core:parse_headers: flags=2
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 202288 
local1.debug] DBG:core:parse_via_param: found param type 232,  = 
; state=16
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 218084 
local1.debug] DBG:core:parse_via: end of header reached, state=5
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 636936 
local1.debug] DBG:core:parse_headers: via found, flags=2
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 481110 
local1.debug] DBG:core:parse_headers: this is the first via
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 994387 
local1.debug] DBG:core:parse_headers: header field type 1, name=, 
body=
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 499462 
local1.debug] DBG:core:parse_msg:  first  via:  
<209.252.110.38:5060(5060)>
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 573780 
local1.debug] DBG:core:parse_msg: ;
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 937246 
local1.debug] DBG:core:parse_msg: 
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 979351 
local1.debug] DBG:core:parse_msg: exiting
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 911547 
local1.debug] DBG:core:receive_msg: After parse_msg...
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 451678 
local1.debug] DBG:core:receive_msg: preparing to run routing scripts...
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 497291 
local1.debug] DBG:core:parse_headers: flags=40
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 202288 
local1.debug] DBG:core:parse_via_param: found param type 234,  = 
<208.54.44.246>; state=6
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 202288 
local1.debug] DBG:core:parse_via_param: found param type 235,  = 
<12985>; state=6
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 202288 
local1.debug] DBG:core:parse_via_param: found param type 232,  = 
; state=16
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 218084 
local1.debug] DBG:core:parse_via: end of header reached, state=5
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 636936 
local1.debug] DBG:core:parse_headers: via found, flags=40
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 903840 
local1.debug] DBG:core:parse_headers: parse_headers: this is the second via
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 994387 
local1.debug] DBG:core:parse_headers: header field type 1, name=, 
body=
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 994387 
local1.debug] DBG:core:parse_headers: header field type 8, name=, 
body=<30>
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 218084 
local1.debug] DBG:core:parse_to: end of header reached, state=10
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 841317 
local1.debug] DBG:core:parse_to: display={}, ruri={sip:nkeel...@akanvoice.com}
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 993225 
local1.debug] DBG:core:get_hdr_field:  [30]; 
uri=[sip:nkeel...@akanvoice.com] 
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 159376 
local1.debug] DBG:core:get_hdr_field: to body [^M
May 13 18:32:58 kwesi-chicago-registrar1 ]
May 13 18:32:58 kwesi-chicago-registrar1 OpenSips[16233]: [ID 994387

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

2013-05-09 Thread Bogdan-Andrei Iancu
Hi Nathaniel,

Could you please apply the attached patch to the registrar opensips - it
contains some more debugs in regards to saving the path array.

Check if during the save("location","p1") you get ant logs with "xXx"
and post them here.

What db_mode are you using for usrloc ?

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 05/05/2013 07:49 PM, Nathaniel L Keeling III wrote:
> Hello,
>
> On P1, I am using the add_path_received() function which is adding the
> Path header. Actually, it adds 2 Path headers since the request comes
> in using TCP but is forwarded using UDP. On the REGISTER, I use the
> save("location","p0") function but the path header is not saved in the
> PATH column of the location table. I have attached a snippet from the
> REGISTER's log and it looks like the insert into the table in placing
> NULL even though the PATH headers were successfully parsed earlier.
> Also, will the lookup() function use this column to locate the
> subscriber for an INVITE request?
>
> Thanks
>
> Nathaniel
>
>
> On 5/5/13 5:55 AM, Bogdan-Andrei Iancu wrote:
>> The registrar server will store the PATH hdr in the PATH column of
>> the "location" table.
>>
>> If P1 adds a PATH hdr to a REGISTER that is saved on REGISTRAR via
>> save(location, p0) .
>>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>> OpenSIPS Founder and Developer
>> http://www.opensips-solutions.com
>>
>>
>> On 05/04/2013 08:11 PM, Nathaniel L Keeling III wrote:
>>> I am currently using version 1.8.2 of opensips. I am using this code
>>> on the registrar server, save("location","p0v"), when the user is
>>> authenticated. The user is behind a firewall. The register request
>>> is first sent to the sip proxy which forwards it to the registrar
>>> server. The sip proxy adds the Path header with the source IP/Port
>>> of the Register request. From the documentation it sounds like the
>>> save() function should take the "received" parameter from the Path
>>> header and store it in the "received" column of the location table.
>>> When I look at the location table it contains the IP address and
>>> port of the SIP proxy so when I try to locate the user, they are
>>> being sent to the SIP proxy and the call fails. Is my understanding
>>> correct? What is the best approach for this, UAC --> firewall -->
>>> P1  --> REG.
>>>
>>> Thanks
>>>
>>> Nathaniel
>>>
>>> On 5/4/13 4:26 AM, Bogdan-Andrei Iancu wrote:
 Hello Nathaniel,

 See
 http://www.opensips.org/html/docs/modules/1.9.x/registrar.html#id248705
 - this controls the PATH support in REGISTRAR module.

 Regards,

 Bogdan-Andrei Iancu
 OpenSIPS Founder and Developer
 http://www.opensips-solutions.com


 On 05/04/2013 01:31 AM, Nathaniel L Keeling III wrote:
> Hello,
>
> I sent an earlier post concerning NATed registrations not being
> able to locate from the lookup() function when the registration
> request is sent from a opensips proxy server to an opensips
> registration server and from my research it looks like I should be
> using the Path header with the received parameter set. Doing this,
> the Register request is sent to the registrar proxy server with a
> Path header, the user is successfully authorized and saved in the
> location table but when I look at the location table entry, the
> received column either does not contain a value or it contains the
> wrong value. Here is the Register request sent from the proxy to
> the registrar server and the output from the location table.
>
> REGISTER sip:my-sip-domain.com;transport=tcp SIP/2.0.
> Call-ID: 541d070a84f74ca6f61f68732d063d35@0:0:0:0:0:0:0:0.
> CSeq: 2 REGISTER.
> From: "Nathaniel L Keeling III"
> ;tag=cbe17bd3.
> To: "Nathaniel L Keeling III" .
> Max-Forwards: 68.
> User-Agent: Jitsi2.0.4506.10553Mac OS X.
> Expires: 600.
> Contact: "Nathaniel L Keeling III"
> ;expires=600.
> Via: SIP/2.0/UDP
> xxx.xxx.110.38:5060;branch=z9hG4bK-383637-fa379c63d9b82d3f671742fe537882a1;i=04.
> Via: SIP/2.0/TCP
> 192.168.43.237:65457;received=208.54.44.148;branch=z9hG4bK-383637-fa379c63d9b82d3f671742fe537882a1.
> Authorization: Digest
> username="nkeeling3",realm="mydomain2.com",nonce="5184345b003b08c40d29a091fb53e6cb83c3961c1dbb",uri="sip:my-sip-domain.com;transport=tcp",response="987edb51f504ff56c7ba840d594c4bb1".
> Content-Length: 0.
> Path:
> .
> Path: .
>
>
>   id  | username  |domain |
> contact | received |
> path |   expires   | q | callid  |
> cseq | last_modified| flags | cflags | user_agent |
> socket  | methods | sip_instance
> --+---+---++-+--+

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

2013-05-05 Thread Nathaniel L Keeling III

Hello,

On P1, I am using the add_path_received() function which is adding the 
Path header. Actually, it adds 2 Path headers since the request comes in 
using TCP but is forwarded using UDP. On the REGISTER, I use the 
save("location","p0") function but the path header is not saved in the 
PATH column of the location table. I have attached a snippet from the 
REGISTER's log and it looks like the insert into the table in placing 
NULL even though the PATH headers were successfully parsed earlier. 
Also, will the lookup() function use this column to locate the 
subscriber for an INVITE request?


Thanks

Nathaniel


On 5/5/13 5:55 AM, Bogdan-Andrei Iancu wrote:
The registrar server will store the PATH hdr in the PATH column of the 
"location" table.


If P1 adds a PATH hdr to a REGISTER that is saved on REGISTRAR via 
save(location, p0) .


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 05/04/2013 08:11 PM, Nathaniel L Keeling III wrote:
I am currently using version 1.8.2 of opensips. I am using this code 
on the registrar server, save("location","p0v"), when the user is 
authenticated. The user is behind a firewall. The register request is 
first sent to the sip proxy which forwards it to the registrar 
server. The sip proxy adds the Path header with the source IP/Port of 
the Register request. From the documentation it sounds like the 
save() function should take the "received" parameter from the Path 
header and store it in the "received" column of the location table. 
When I look at the location table it contains the IP address and port 
of the SIP proxy so when I try to locate the user, they are being 
sent to the SIP proxy and the call fails. Is my understanding 
correct? What is the best approach for this, UAC --> firewall --> P1  
--> REG.


Thanks

Nathaniel

On 5/4/13 4:26 AM, Bogdan-Andrei Iancu wrote:

Hello Nathaniel,

See 
http://www.opensips.org/html/docs/modules/1.9.x/registrar.html#id248705 
- this controls the PATH support in REGISTRAR module.


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 05/04/2013 01:31 AM, Nathaniel L Keeling III wrote:

Hello,

I sent an earlier post concerning NATed registrations not being 
able to locate from the lookup() function when the registration 
request is sent from a opensips proxy server to an opensips 
registration server and from my research it looks like I should be 
using the Path header with the received parameter set. Doing this, 
the Register request is sent to the registrar proxy server with a 
Path header, the user is successfully authorized and saved in the 
location table but when I look at the location table entry, the 
received column either does not contain a value or it contains the 
wrong value. Here is the Register request sent from the proxy to 
the registrar server and the output from the location table.


REGISTER sip:my-sip-domain.com;transport=tcp SIP/2.0.
Call-ID: 541d070a84f74ca6f61f68732d063d35@0:0:0:0:0:0:0:0.
CSeq: 2 REGISTER.
From: "Nathaniel L Keeling III" 
;tag=cbe17bd3.

To: "Nathaniel L Keeling III" .
Max-Forwards: 68.
User-Agent: Jitsi2.0.4506.10553Mac OS X.
Expires: 600.
Contact: "Nathaniel L Keeling III" 
;expires=600.
Via: SIP/2.0/UDP 
xxx.xxx.110.38:5060;branch=z9hG4bK-383637-fa379c63d9b82d3f671742fe537882a1;i=04.
Via: SIP/2.0/TCP 
192.168.43.237:65457;received=208.54.44.148;branch=z9hG4bK-383637-fa379c63d9b82d3f671742fe537882a1.
Authorization: Digest 
username="nkeeling3",realm="mydomain2.com",nonce="5184345b003b08c40d29a091fb53e6cb83c3961c1dbb",uri="sip:my-sip-domain.com;transport=tcp",response="987edb51f504ff56c7ba840d594c4bb1".

Content-Length: 0.
Path: 
.

Path: .


  id  | username  |domain | 
contact | received | 
path |   expires   | q | callid  | cseq 
| last_modified| flags | cflags | user_agent | 
socket  | methods | sip_instance
--+---+---++-+--+-++--+--+-+---++-+-+-+-- 

 1555 | nkeeling3 | mydomain2.com | 
sip:nkeeling3@192.168.43.237:65420;transport=tcp;registering_acc=mydomain2_com 
| sip:xxx.xxx.110.38:5060 |  | 2013-05-03 17:08:03 | -1 | 
869321ee55e10970ff139673909ab626@0:0:0:0:0:0:0:0 | 10 | 2013-05-03 
16:58:03 | 0 |   1024 | Jitsi2.0.4506.10553Mac OS X | 
udp:xxx.xxx.110.48:5060 | |
 1556 | nkeeling3 | mydomain2.com | 
sip:nkeeling3@192.168.43.237:65457;transport=tcp;registering_acc=mydomain2_com 
| sip:xxx.xxx.110.38:5060 |  | 2013-05-03 17:13:42 | -1 | 
541d070a84f74ca6f61f68732d063d35@0:0:0:0:0:0:0:0 | 2 | 2013-05-03 
17:03:42 | 0 |   1024 | Jitsi2.0.4506.10553

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

2013-05-05 Thread Bogdan-Andrei Iancu
The registrar server will store the PATH hdr in the PATH column of the 
"location" table.


If P1 adds a PATH hdr to a REGISTER that is saved on REGISTRAR via 
save(location, p0) .


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 05/04/2013 08:11 PM, Nathaniel L Keeling III wrote:
I am currently using version 1.8.2 of opensips. I am using this code 
on the registrar server, save("location","p0v"), when the user is 
authenticated. The user is behind a firewall. The register request is 
first sent to the sip proxy which forwards it to the registrar server. 
The sip proxy adds the Path header with the source IP/Port of the 
Register request. From the documentation it sounds like the save() 
function should take the "received" parameter from the Path header and 
store it in the "received" column of the location table. When I look 
at the location table it contains the IP address and port of the SIP 
proxy so when I try to locate the user, they are being sent to the SIP 
proxy and the call fails. Is my understanding correct? What is the 
best approach for this, UAC --> firewall --> P1  --> REG.


Thanks

Nathaniel

On 5/4/13 4:26 AM, Bogdan-Andrei Iancu wrote:

Hello Nathaniel,

See 
http://www.opensips.org/html/docs/modules/1.9.x/registrar.html#id248705 
- this controls the PATH support in REGISTRAR module.


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 05/04/2013 01:31 AM, Nathaniel L Keeling III wrote:

Hello,

I sent an earlier post concerning NATed registrations not being able 
to locate from the lookup() function when the registration request 
is sent from a opensips proxy server to an opensips registration 
server and from my research it looks like I should be using the Path 
header with the received parameter set. Doing this, the Register 
request is sent to the registrar proxy server with a Path header, 
the user is successfully authorized and saved in the location table 
but when I look at the location table entry, the received column 
either does not contain a value or it contains the wrong value. Here 
is the Register request sent from the proxy to the registrar server 
and the output from the location table.


REGISTER sip:my-sip-domain.com;transport=tcp SIP/2.0.
Call-ID: 541d070a84f74ca6f61f68732d063d35@0:0:0:0:0:0:0:0.
CSeq: 2 REGISTER.
From: "Nathaniel L Keeling III" 
;tag=cbe17bd3.

To: "Nathaniel L Keeling III" .
Max-Forwards: 68.
User-Agent: Jitsi2.0.4506.10553Mac OS X.
Expires: 600.
Contact: "Nathaniel L Keeling III" 
;expires=600.
Via: SIP/2.0/UDP 
xxx.xxx.110.38:5060;branch=z9hG4bK-383637-fa379c63d9b82d3f671742fe537882a1;i=04.
Via: SIP/2.0/TCP 
192.168.43.237:65457;received=208.54.44.148;branch=z9hG4bK-383637-fa379c63d9b82d3f671742fe537882a1.
Authorization: Digest 
username="nkeeling3",realm="mydomain2.com",nonce="5184345b003b08c40d29a091fb53e6cb83c3961c1dbb",uri="sip:my-sip-domain.com;transport=tcp",response="987edb51f504ff56c7ba840d594c4bb1".

Content-Length: 0.
Path: 
.

Path: .


  id  | username  |domain | 
contact | received | 
path |   expires   | q | callid  | cseq 
| last_modified| flags | cflags | user_agent | 
socket  | methods | sip_instance
--+---+---++-+--+-++--+--+-+---++-+-+-+-- 

 1555 | nkeeling3 | mydomain2.com | 
sip:nkeeling3@192.168.43.237:65420;transport=tcp;registering_acc=mydomain2_com 
| sip:xxx.xxx.110.38:5060 |  | 2013-05-03 17:08:03  | -1 | 
869321ee55e10970ff139673909ab626@0:0:0:0:0:0:0:0 |   10 | 2013-05-03 
16:58:03 | 0 |   1024 | Jitsi2.0.4506.10553Mac OS X | 
udp:xxx.xxx.110.48:5060 | |
 1556 | nkeeling3 | mydomain2.com | 
sip:nkeeling3@192.168.43.237:65457;transport=tcp;registering_acc=mydomain2_com 
| sip:xxx.xxx.110.38:5060 |  | 2013-05-03 17:13:42  | -1 | 
541d070a84f74ca6f61f68732d063d35@0:0:0:0:0:0:0:0 |2 | 2013-05-03 
17:03:42 | 0 |   1024 | Jitsi2.0.4506.10553Mac OS X | 
udp:xxx.xxx.110.48:5060 | |



Thanks

Nathaniel



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users







___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


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

2013-05-04 Thread Nathaniel L Keeling III
I am currently using version 1.8.2 of opensips. I am using this code on 
the registrar server, save("location","p0v"), when the user is 
authenticated. The user is behind a firewall. The register request is 
first sent to the sip proxy which forwards it to the registrar server. 
The sip proxy adds the Path header with the source IP/Port of the 
Register request. From the documentation it sounds like the save() 
function should take the "received" parameter from the Path header and 
store it in the "received" column of the location table. When I look at 
the location table it contains the IP address and port of the SIP proxy 
so when I try to locate the user, they are being sent to the SIP proxy 
and the call fails. Is my understanding correct? What is the best 
approach for this, UAC --> firewall --> P1  --> REG.


Thanks

Nathaniel

On 5/4/13 4:26 AM, Bogdan-Andrei Iancu wrote:

Hello Nathaniel,

See 
http://www.opensips.org/html/docs/modules/1.9.x/registrar.html#id248705 - 
this controls the PATH support in REGISTRAR module.


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 05/04/2013 01:31 AM, Nathaniel L Keeling III wrote:

Hello,

I sent an earlier post concerning NATed registrations not being able 
to locate from the lookup() function when the registration request is 
sent from a opensips proxy server to an opensips registration server 
and from my research it looks like I should be using the Path header 
with the received parameter set. Doing this, the Register request is 
sent to the registrar proxy server with a Path header, the user is 
successfully authorized and saved in the location table but when I 
look at the location table entry, the received column either does not 
contain a value or it contains the wrong value. Here is the Register 
request sent from the proxy to the registrar server and the output 
from the location table.


REGISTER sip:my-sip-domain.com;transport=tcp SIP/2.0.
Call-ID: 541d070a84f74ca6f61f68732d063d35@0:0:0:0:0:0:0:0.
CSeq: 2 REGISTER.
From: "Nathaniel L Keeling III" 
;tag=cbe17bd3.

To: "Nathaniel L Keeling III" .
Max-Forwards: 68.
User-Agent: Jitsi2.0.4506.10553Mac OS X.
Expires: 600.
Contact: "Nathaniel L Keeling III" 
;expires=600.
Via: SIP/2.0/UDP 
xxx.xxx.110.38:5060;branch=z9hG4bK-383637-fa379c63d9b82d3f671742fe537882a1;i=04.
Via: SIP/2.0/TCP 
192.168.43.237:65457;received=208.54.44.148;branch=z9hG4bK-383637-fa379c63d9b82d3f671742fe537882a1.
Authorization: Digest 
username="nkeeling3",realm="mydomain2.com",nonce="5184345b003b08c40d29a091fb53e6cb83c3961c1dbb",uri="sip:my-sip-domain.com;transport=tcp",response="987edb51f504ff56c7ba840d594c4bb1".

Content-Length: 0.
Path: 
.

Path: .


  id  | username  |domain | 
contact | received | path 
|   expires   | q | callid  | cseq | 
last_modified| flags | cflags | user_agent | 
socket  | methods | sip_instance
--+---+---++-+--+-++--+--+-+---++-+-+-+-- 

 1555 | nkeeling3 | mydomain2.com | 
sip:nkeeling3@192.168.43.237:65420;transport=tcp;registering_acc=mydomain2_com 
| sip:xxx.xxx.110.38:5060 |  | 2013-05-03 17:08:03  | -1 | 
869321ee55e10970ff139673909ab626@0:0:0:0:0:0:0:0 |   10 | 2013-05-03 
16:58:03 | 0 |   1024 | Jitsi2.0.4506.10553Mac OS X | 
udp:xxx.xxx.110.48:5060 | |
 1556 | nkeeling3 | mydomain2.com | 
sip:nkeeling3@192.168.43.237:65457;transport=tcp;registering_acc=mydomain2_com 
| sip:xxx.xxx.110.38:5060 |  | 2013-05-03 17:13:42  | -1 | 
541d070a84f74ca6f61f68732d063d35@0:0:0:0:0:0:0:0 |2 | 2013-05-03 
17:03:42 | 0 |   1024 | Jitsi2.0.4506.10553Mac OS X | 
udp:xxx.xxx.110.48:5060 | |



Thanks

Nathaniel



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users







___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


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

2013-05-04 Thread Bogdan-Andrei Iancu

Hello Nathaniel,

See 
http://www.opensips.org/html/docs/modules/1.9.x/registrar.html#id248705 
- this controls the PATH support in REGISTRAR module.


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 05/04/2013 01:31 AM, Nathaniel L Keeling III wrote:

Hello,

I sent an earlier post concerning NATed registrations not being able 
to locate from the lookup() function when the registration request is 
sent from a opensips proxy server to an opensips registration server 
and from my research it looks like I should be using the Path header 
with the received parameter set. Doing this, the Register request is 
sent to the registrar proxy server with a Path header, the user is 
successfully authorized and saved in the location table but when I 
look at the location table entry, the received column either does not 
contain a value or it contains the wrong value. Here is the Register 
request sent from the proxy to the registrar server and the output 
from the location table.


REGISTER sip:my-sip-domain.com;transport=tcp SIP/2.0.
Call-ID: 541d070a84f74ca6f61f68732d063d35@0:0:0:0:0:0:0:0.
CSeq: 2 REGISTER.
From: "Nathaniel L Keeling III" 
;tag=cbe17bd3.

To: "Nathaniel L Keeling III" .
Max-Forwards: 68.
User-Agent: Jitsi2.0.4506.10553Mac OS X.
Expires: 600.
Contact: "Nathaniel L Keeling III" 
;expires=600.
Via: SIP/2.0/UDP 
xxx.xxx.110.38:5060;branch=z9hG4bK-383637-fa379c63d9b82d3f671742fe537882a1;i=04.
Via: SIP/2.0/TCP 
192.168.43.237:65457;received=208.54.44.148;branch=z9hG4bK-383637-fa379c63d9b82d3f671742fe537882a1.
Authorization: Digest 
username="nkeeling3",realm="mydomain2.com",nonce="5184345b003b08c40d29a091fb53e6cb83c3961c1dbb",uri="sip:my-sip-domain.com;transport=tcp",response="987edb51f504ff56c7ba840d594c4bb1".

Content-Length: 0.
Path: 
.

Path: .


  id  | username  |domain | 
contact | received | path 
|   expires   | q |  
callid  | cseq | last_modified| flags | cflags 
| user_agent | socket  | methods | sip_instance
--+---+---++-+--+-++--+--+-+---++-+-+-+-- 

 1555 | nkeeling3 | mydomain2.com | 
sip:nkeeling3@192.168.43.237:65420;transport=tcp;registering_acc=mydomain2_com 
| sip:xxx.xxx.110.38:5060 |  | 2013-05-03 17:08:03  | -1 | 
869321ee55e10970ff139673909ab626@0:0:0:0:0:0:0:0 |   10 | 2013-05-03 
16:58:03 | 0 |   1024 | Jitsi2.0.4506.10553Mac OS X | 
udp:xxx.xxx.110.48:5060 | |
 1556 | nkeeling3 | mydomain2.com | 
sip:nkeeling3@192.168.43.237:65457;transport=tcp;registering_acc=mydomain2_com 
| sip:xxx.xxx.110.38:5060 |  | 2013-05-03 17:13:42  | -1 | 
541d070a84f74ca6f61f68732d063d35@0:0:0:0:0:0:0:0 |2 | 2013-05-03 
17:03:42 | 0 |   1024 | Jitsi2.0.4506.10553Mac OS X | 
udp:xxx.xxx.110.48:5060 | |



Thanks

Nathaniel



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


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

2013-05-03 Thread Nathaniel L Keeling III

Hello,

I sent an earlier post concerning NATed registrations not being able to 
locate from the lookup() function when the registration request is sent 
from a opensips proxy server to an opensips registration server and from 
my research it looks like I should be using the Path header with the 
received parameter set. Doing this, the Register request is sent to the 
registrar proxy server with a Path header, the user is successfully 
authorized and saved in the location table but when I look at the 
location table entry, the received column either does not contain a 
value or it contains the wrong value. Here is the Register request sent 
from the proxy to the registrar server and the output from the location 
table.


REGISTER sip:my-sip-domain.com;transport=tcp SIP/2.0.
Call-ID: 541d070a84f74ca6f61f68732d063d35@0:0:0:0:0:0:0:0.
CSeq: 2 REGISTER.
From: "Nathaniel L Keeling III" ;tag=cbe17bd3.
To: "Nathaniel L Keeling III" .
Max-Forwards: 68.
User-Agent: Jitsi2.0.4506.10553Mac OS X.
Expires: 600.
Contact: "Nathaniel L Keeling III" 
;expires=600.
Via: SIP/2.0/UDP 
xxx.xxx.110.38:5060;branch=z9hG4bK-383637-fa379c63d9b82d3f671742fe537882a1;i=04.
Via: SIP/2.0/TCP 
192.168.43.237:65457;received=208.54.44.148;branch=z9hG4bK-383637-fa379c63d9b82d3f671742fe537882a1.
Authorization: Digest 
username="nkeeling3",realm="mydomain2.com",nonce="5184345b003b08c40d29a091fb53e6cb83c3961c1dbb",uri="sip:my-sip-domain.com;transport=tcp",response="987edb51f504ff56c7ba840d594c4bb1".

Content-Length: 0.
Path: 
.

Path: .


  id  | username  |domain | 
contact | received | path 
|   expires   | q |  
callid  | cseq | last_modified| flags | cflags 
| user_agent | socket  | methods | sip_instance

--+---+---++-+--+-++--+--+-+---++-+-+-+--
 1555 | nkeeling3 | mydomain2.com | 
sip:nkeeling3@192.168.43.237:65420;transport=tcp;registering_acc=mydomain2_com 
| sip:xxx.xxx.110.38:5060 |  | 2013-05-03 17:08:03  | -1 | 
869321ee55e10970ff139673909ab626@0:0:0:0:0:0:0:0 |   10 | 2013-05-03 
16:58:03 | 0 |   1024 | Jitsi2.0.4506.10553Mac OS X | 
udp:xxx.xxx.110.48:5060 | |
 1556 | nkeeling3 | mydomain2.com | 
sip:nkeeling3@192.168.43.237:65457;transport=tcp;registering_acc=mydomain2_com 
| sip:xxx.xxx.110.38:5060 |  | 2013-05-03 17:13:42  | -1 | 
541d070a84f74ca6f61f68732d063d35@0:0:0:0:0:0:0:0 |2 | 2013-05-03 
17:03:42 | 0 |   1024 | Jitsi2.0.4506.10553Mac OS X | 
udp:xxx.xxx.110.48:5060 | |



Thanks

Nathaniel



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users