[OpenSER-Users] Problem with RINSTANCE in X-LITE 3.0

Thiago Maluf malufrj at gmail.com
Wed Nov 14 19:27:41 CET 2007


Hi Mr. Castillo,
I tried it, but don't work.
My problem is:
- Each Register created by X-LITE 3.0 is a new contact because each message
have  parameter RINSTANCE with new value.
- So OpenSER will keep in your location table all the contacts received.
- I want break it, so for each Register Message Openser will update this
contact in your location table.

My location table (Replace My Ip Number to xxxxxxxxxxxx):

 id | username | domain |                           contact       | received
| path |       expires       |  q   |
callid                    | cseq |    last_modified    | flags | cflags
|            user_agent            |          socket          | methods
----+----------+--------+-------------------------------------------------------------+----------+------+---------------------+------+----------------------------------------------+------+---------------------+-------+--------+----------------------------------+--------------------------+---------
 36 | teste1   |        | sip:teste1 at xxxxxxxxx:27420;rinstance=457f14a9ad568c74
|          |      | 2007-11-14 16:54:05 | 0.00 |
YjY5YmFkZDRkZjBmOTliOWFiNmY2ODViMmRmMTg3ZjQ. |    2 | 2007-11-14 15:54:05
|     0 |      0 | X-Lite release 1011s stamp 41150 | udp:xxxxxxxxxxxx:5060
|    5951
 37 | teste1   |        |
sip:teste1 at xxxxxxxxxxxx:9150;rinstance=d491e76ae7d17c63
|          |      | 2007-11-14 17:01:09 | 0.00 |
OTdiNDM4Y2M4NWEzMjIwMmU5MWE1Y2E5M2E3N2VkNjY. |    2 | 2007-11-14 16:01:09
|     0 |      0 | X-Lite release 1011s stamp 41150 | udp:xxxxxxxxxxxx:5060
|    5951
 38 | teste1   |        |
sip:teste1 at xxxxxxxxxxxxx:32448;rinstance=a88d552b74e3ebbc
|          |      | 2007-11-14 17:07:13 | 0.00 |
ZTE4YTE4OTVlOGJjYTExM2IxM2RiZjFlOGMyNzI3Nzk. |    2 | 2007-11-14 16:07:13
|     0 |      0 | X-Lite release 1011s stamp 41150 | udp:xxxxxxxxxxxx:5060
|    5951


Then this problem is just with X-LITE 3.0
Already talked with CounterPath' Support and this error is knowledge them
and in the next version will be removed.
But still in demo this new version, and will need long time to be released.

Wait your help.
Thiago!


--------------------------------------------------------------------------------------------

El Wednesday 14 November 2007 14:55:00 Thiago Maluf escribi?:
> Hi list,
> The X-Lite 3.0 create one new rinstance to each REGISTER Message.
> Therefore the next register will be one new contact in location table.
> Because this new register have new contact.
> So it's my problem. I should in soon config my OpenSER to just allow one
> register by user. And with this problem, I won't config it.
> Thanks in Advanced,

Ok, then you can use:
 modparam("registrar", "method_filtering", 1)
so just contacts that "Allow" the actual method (INVITE, MESSAGE or
whatever)
will be called.

For this you should, in each REGISTER, do a DB query (or FIFO command) to
test
if there was a previous entry for this location, and in that case modify
the "methods" field of new entry:

http://openser.svn.sourceforge.net/viewvc/openser/trunk/parser/msg_parser.h?revision=2802&view=markup


--
I?aki Baz Castillo
ibc at in.ilimit.es


-- 
----------------------------------------------------------------
THIAGO MALUF RESENDE
e-mail: malufrj at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20071114/089ebfe4/attachment.htm 


More information about the Users mailing list