[OpenSIPS-Users] how to Register with OpenSIPS?: help needed!!

Christian Cambier cca at voxtron.com
Thu Nov 15 16:33:25 CET 2012


Hello Alex.



Thank you Alexe and Ali and Samy for your feedback.



> - if you register your phones on OpenSIPS there is no need to register


>them also on the PBX

Ok, I forget about the PBX for my registration. but trying to registrate
on openSIPS doesn't work.
It would be really if this problem could be solved!!!

So, I don't manage to register my sipphone.
Here's what I do.

Domain used on opensips-server (ip=10.0.4.34) is added in the mysql
table
mysql> select * from domain;

+----+-----------+---------------------+

| id | domain    | last_modified       |

+----+-----------+---------------------+

|  1 | 10.0.4.34 | 2012-11-13 15:24:23 |

+----+-----------+---------------------+

I have 1 user registered in OpenSIPS (in the subscribe-table, is this
the correct table to add users?)
mysql> select * from subscriber;

+----+----------+-----------+----------+---------------+----------------
------------------+----------------------------------+------+

| id | username | domain    | password | email_address | ha1
| ha1b                             | rpid |

+----+----------+-----------+----------+---------------+----------------
------------------+----------------------------------+------+

|  1 | 5006     | 10.0.4.34 |          |               |
9d576f5a62c6bc6e46b20d1b6d9e2ad7 | c33ca435f9c3c8b87a11b013c32df2c8 |
NULL |

+----+----------+-----------+----------+---------------+----------------
------------------+----------------------------------+------+


Here's what I send from UAC
                username/extension: 5006
                no password
                registrar: 10.0.4.34

REGISTER sip:10.0.4.34:5060 SIP/2.0 
Via: SIP/2.0/TCP
10.0.46.1:50666;rport;branch=z9hG4bKPj5be69cb0d02144bdb9d2777431d88264 
Route: <sip:10.0.4.34:5060;transport=TCP;lr> 
Max-Forwards: 70 
From: "cid5006"
<sip:5006 at 10.0.4.34>;tag=2992022966fa4dca862118d12678d4a1 
To: "cid5006" <sip:5006 at 10.0.4.34> 
Call-ID: 56966ef0ba474bca919ef8a67db0659b 
CSeq: 27976 REGISTER 
User-Agent: VoxtronSipPhone_01.00.009.002 
Supported: outbound, path 
Contact: "cid5006"
<sip:5006 at 10.0.46.1:5081;transport=TCP;ob>;reg-id=1;+sip.instance="<urn:
uuid:00000000-0000-0000-0000-000064bc79c6>" 
Expires: 300 
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY,
REFER, MESSAGE, OPTIONS 
Content-Length: 0 

here's the response

SIP/2.0 403 Preload Route denied 
Via: SIP/2.0/TCP
10.0.46.1:50666;received=10.0.46.1;rport=50666;branch=z9hG4bKPj5be69cb0d
02144bdb9d2777431d88264 
From: "cid5006"
<sip:5006 at 10.0.4.34>;tag=2992022966fa4dca862118d12678d4a1 
To: "cid5006"
<sip:5006 at 10.0.4.34>;tag=cb89901742d7fa34dfcce4fffa472cde.5c91 
Call-ID: 56966ef0ba474bca919ef8a67db0659b 
CSeq: 27976 REGISTER 
Server: OpenSIPS (1.8.0-notls (x86_64/linux)) 
Content-Length: 0 


The response comes from following code that is executred in my config
file 

       # preloaded route checking

        if (loose_route()) {

                xlog("L_ERR",

                "Attempt to route with preloaded Route's
[$fu/$tu/$ru/$ci] );

                if (!is_method("ACK"))

                        sl_send_reply("403","Preload Route denied");

                exit;

        }


How to solve this?

regards
CHris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20121115/a217b7a9/attachment.htm>


More information about the Users mailing list