[OpenSIPS-Users] About L4 Swtich + 2 * opensips

Ali Pey alipey at gmail.com
Wed Sep 5 16:13:30 CEST 2012


Hello Nick,

Set your db_mode to 3.

http://www.opensips.org/html/docs/modules/1.8.x/usrloc.html#id293049

Regards,
Ali Pey


On Tue, Sep 4, 2012 at 10:57 PM, Nick Chang <nick.chang at kland.com.tw> wrote:

> Hello Ali****
>
> ** **
>
> Debug is on****
>
> ** **
>
> I saw log ****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:dialplan:translate: the rule's attrs are usrloc****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:dialplan:translate: the copied attributes are: usrloc****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:dialplan:rule_translate: null replacement****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:dialplan:dp_translate_f: input 0939723377 with dpid 0 => output****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:core:buf_init: initializing...****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]: usrloc****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:core:comp_scriptvar: str 20 : usrloc****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:registrar:lookup: '0939723377 at 202.55.233.195' Not found in usrloc****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]: -1****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:tm:t_newtran: transaction on entrance=(nil)****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:core:parse_headers: flags=ffffffffffffffff****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:core:parse_headers: flags=78****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:tm:t_lookup_request: start searching: hash=18019, isACK=0****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:tm:matching_3261: RFC3261 transaction matching failed****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:tm:t_lookup_request: no transaction found****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:tm:run_reqin_callbacks: trans=0x7f5de97b58c0, callback type 1, id 1
> entered****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:dialog:dlg_onreq: t hash_index = 18019, t label = 688903610****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:dialog:get_dlg_timeout: invalid AVP value, use default timeout****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:tm:run_reqin_callbacks: trans=0x7f5de97b58c0, callback type 1, id 0
> entered****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:core:parse_headers: flags=78****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:core:parse_headers: flags=ffffffffffffffff****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:core:_shm_resize: resize(0) called****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:tm:run_trans_callbacks: trans=0x7f5de97b58c0, callback type 64, id 0
> entered****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:dialog:next_state_dlg: dialog 0x7f5de97b4cd8 changed from state 1 to
> state 5, due event 4****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:dialog:dlg_onreply: dialog 0x7f5de97b4cd8 failed (negative reply)****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:dialog:unref_dlg: unref dlg 0x7f5de97b4cd8 with 1 -> 2****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:tm:cleanup_uac_timers: RETR/FR timers reset****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:tm:set_timer: relative timeout is 500000****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:tm:insert_timer_unsafe: [4]: 0x7f5de97b5a08 (47200000)****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:tm:set_timer: relative timeout is 5****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:tm:insert_timer_unsafe: [0]: 0x7f5de97b5a38 (51)****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:tm:_reply_light: reply sent out. buf=0x7f5def3ee418: SIP/2.0 4...,
> shmem=0x7f5de97b8e00: SIP/2.0 4****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:tm:run_trans_callbacks: trans=0x7f5de97b58c0, callback type 128, id 1
> entered****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:tm:_reply_light: finished****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]: DBG:tm:t_unref:
> UNREF_UNSAFE: [0x7f5de97b58c0] after is 0****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:dialog:unref_dlg: unref dlg 0x7f5de97b4cd8 with 1 -> 1****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:core:destroy_avp_list: destroying list (nil)****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17671]:
> DBG:core:receive_msg: cleaning up****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17672]:
> DBG:core:parse_msg: SIP Request:****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17672]:
> DBG:core:parse_msg:  method:  <ACK>****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17672]:
> DBG:core:parse_msg:  uri:     <sip:0939723377 at 202.55.233.195>****
>
> Sep  5 10:53:07 Sharesip1 /usr/local/sbin/opensips[17672]:
> DBG:core:parse_msg:  version: <SIP/2.0>****
>
> ** **
>
> It tell me , can’t found this user.****
>
> But In my database.****
>
> mysql> select * from location;****
>
>
> +------+--------------+----------------+------------------------------------------------------------+--------------------------+------+---------------------+-------+------------+------+---------------------+-------+--------+--------------------------------+---------------------+---------+--------------+
> ****
>
> | id   | username     | domain         |
> contact                                                    |
> received                 | path | expires             | q     | callid
> | cseq | last_modified       | flags | cflags |
> user_agent                     | socket              | methods |
> sip_instance |****
>
>
> +------+--------------+----------------+------------------------------------------------------------+--------------------------+------+---------------------+-------+------------+------+---------------------+-------+--------+--------------------------------+---------------------+---------+--------------+
> ****
>
> | 4237 | 886988000076 | 202.55.233.195 | sip:886988000076 at 10.1.1.53;line=b690308c3bccdc1
> | sip:118.163.61.141:40698 | NULL | 2012-09-05 11:52:39 | -1.00 |
> 5605       |    2 | 2012-09-05 10:52:39 |     0 |    192 | Linphone/3.5.2
> (eXosip2/3.6.0) | udp:10.1.2.150:5060 |    NULL | NULL         |****
>
> | 4238 | 886988000076 | 202.55.233.195 |
> sip:886988000076 at 118.163.61.141:40698;line=b690308c3bccdc1 | sip:
> 118.163.61.141:40698 | NULL | 2012-09-05 11:52:39 | -1.00 | 5605
> |    4 | 2012-09-05 10:52:39 |     0 |    192 | Linphone/3.5.2
> (eXosip2/3.6.0) | udp:10.1.2.150:5060 |    NULL | NULL         |****
>
> | 4239 | 0939723377   | 202.55.233.195 | sip:0939723377 at 42.73.55.31:3273;line=76a80b0cc2348e9
> | NULL                     | NULL | 2012-09-05 11:05:32 | -1.00 |
> 2002148269 |    2 | 2012-09-05 10:55:32 |     0 |      0 | Linphone/3.5.2
> (eXosip2/3.6.0) | udp:10.1.2.150:5060 |    NULL | NULL         |****
>
>
> +------+--------------+----------------+------------------------------------------------------------+--------------------------+------+---------------------+-------+------------+------+---------------------+-------+--------+--------------------------------+---------------------+---------+--------------+
> ****
>
> 3 rows in set (0.00 sec)****
>
> ** **
>
> I can see it.****
>
> ** **
>
> Do you have any suggest??****
>
> ** **
>
> Thanks for your support.****
>
> Nick****
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120905/9f601c10/attachment.htm>


More information about the Users mailing list