I dont seem to be able to get a match when I send a call from my gw to ser registered user. Debug indicates that user Not found in usrloc even though the database shows the users registered. I am able to make out bound calls the gw just fine. If anyone can shed some light in it it would be great.
Part 1 of 2 Part to follow with ser.cfg
Thanks
============================================================================ ================================= mysql> select * from location; +----------+--------+------------------------+----------+------------------- --+-------+----------------------------------+------+----------------+------ -----+-------+-------+----------------------------+ | username | domain | contact | received | expires | q | callid | cseq | last_modified | replicate | state | flags | user_agent | +----------+--------+------------------------+----------+------------------- --+-------+----------------------------------+------+----------------+------ -----+-------+-------+----------------------------+ | 9901 | | sip:9901@69.250.205.31 | NULL | 2005-02-26 03:31:09 | -1.00 | e5201b3819008718@192.168.199.102 | 107 | 20050226033016 | 0 | 0 | 0 | Grandstream BT100 1.0.5.11 | +----------+--------+------------------------+----------+------------------- --+-------+----------------------------------+------+----------------+------ -----+-------+-------+----------------------------+ 1 row in set (0.01 sec)
====debugt output====================================================================== =========================
20(18672) parse_headers: flags=256 20(18672) find_first_route: No Route headers found 20(18672) loose_route: There is no Route HF 20(18672) lookup(): '9901' Not found in usrloc
============================================================================ =================================
U 69.19.88.16:5060 -> 69.19.88.19:5060 INVITE sip:9901@69.19.88.19 SIP/2.0..Via: SIP/2.0/UDP 69.19.88.16:5060;branch=z9hG4bK2fb13d17..From: "Cell Phone MD" <sip:4103532264 @69.19.88.16>;tag=as149fbe93..To: sip:9901@69.19.88.19..Contact: sip:4103532264@69.19.88.16..Call-ID: 745bcf587074e77d4a8118dc212 ccba7@69.19.88.16..CSeq: 102 INVITE..User-Agent: Asterisk PBX..Date: Sat, 26 Feb 2005 08:41:01 GMT..Allow: INVITE, ACK, CANCEL, OPTIONS , BYE, REFER..Content-Type: application/sdp..Content-Length: 240....v=0..o=root 11581 11581 IN IP4 69.19.88.16..s=session..c=IN IP4 66. 159.88.16..t=0 0..m=audio 14934 RTP/AVP 0 8 101..a=rtpmap:0 PCMU/8000..a=rtpmap:8 PCMA/8000..a=rtpmap:101 telephone-event/8000..a=fmtp:1 01 0-16..a=silenceSupp:off - - - -.. # U 69.19.88.19:5060 -> 69.19.88.16:5060 SIP/2.0 100 trying -- your call is important to us..Via: SIP/2.0/UDP 69.19.88.16:5060;branch=z9hG4bK2fb13d17..From: "Cell Phone MD" < sip:4103532264@69.19.88.16>;tag=as149fbe93..To: sip:9901@69.19.88.19..Call-ID: 745bcf587074e77d4a8118dc212ccba7@69.19.88.16..CSeq: 102 INVITE..Server: Sip EXpress router (0.9.0 (i386/linux))..Content-Length: 0..Warning: 392 69.19.88.19:5060 "Noisy feedback tells: p id=18682 req_src_ip=69.19.88.16 req_src_port=5060 in_uri=sip:9901@69.19.88.19 out_uri=sip:9901@69.19.88.16:5060 via_cnt==1".... # U 69.19.88.19:5060 -> 69.19.88.16:5060 INVITE sip:9901@69.19.88.16:5060 SIP/2.0..Max-Forwards: 10..Record-Route: sip:69.19.88.19;ftag=as149fbe93;lr=on..Via: SIP/2.0/UDP 66 .159.88.19;branch=z9hG4bK96c9.80b8ddd7.0..Via: SIP/2.0/UDP 69.19.88.16:5060;branch=z9hG4bK2fb13d17..From: "Cell Phone MD" <sip:410353 2264@69.19.88.16>;tag=as149fbe93..To: sip:9901@69.19.88.19..Contact: sip:4103532264@69.19.88.16..Call-ID: 745bcf587074e77d4a8118d c212ccba7@69.19.88.16..CSeq: 102 INVITE..User-Agent: Asterisk PBX..Date: Sat, 26 Feb 2005 08:41:01 GMT..Allow: INVITE, ACK, CANCEL, OPT IONS, BYE, REFER..Content-Type: application/sdp..Content-Length: 240..P-hint: GATEWAY....v=0..o=root 11581 11581 IN IP4 69.19.88.16..s= session..c=IN IP4 69.19.88.16..t=0 0..m=audio 14934 RTP/AVP 0 8 101..a=rtpmap:0 PCMU/8000..a=rtpmap:8 PCMA/8000..a=rtpmap:101 telephone -event/8000..a=fmtp:101 0-16..a=silenceSupp:off - - - -.. # U 69.19.88.16:5060 -> 69.19.88.19:5060 SIP/2.0 482 Loop Detected..Via: SIP/2.0/UDP 69.19.88.19;branch=z9hG4bK96c9.80b8ddd7.0..Via: SIP/2.0/UDP 69.19.88.16:5060;branch=z9hG4b K2fb13d17..From: "Cell Phone MD" sip:4103532264@69.19.88.16;tag=as149fbe93..To: sip:9901@69.19.88.19;tag=as149fbe93..Call-ID: 74 5bcf587074e77d4a8118dc212ccba7@69.19.88.16..CSeq: 102 INVITE..User-Agent: Asterisk PBX..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER ..Contact: sip:4103532264@69.19.88.16..Content-Length: 0....
Hi
i dont think the DB is queried, I think the location in the memory is though
try using serctl to display what is in memory
Iqbal
Glenn Dalgliesh wrote:
I don’t seem to be able to get a match when I send a call from my gw to ser registered user. Debug indicates that user Not found in usrloc even though the database shows the users registered. I am able to make out bound calls the gw just fine. If anyone can shed some light in it it would be great.
Part 1 of 2 Part to follow with ser.cfg
Thanks
============================================================================
mysql> select * from location; +----------+--------+------------------------+----------+------------------- --+-------+----------------------------------+------+----------------+------ -----+-------+-------+----------------------------+ | username | domain | contact | received | expires | q | callid | cseq | last_modified | replicate | state | flags | user_agent | +----------+--------+------------------------+----------+------------------- --+-------+----------------------------------+------+----------------+------ -----+-------+-------+----------------------------+ | 9901 | | sip:9901@69.250.205.31 | NULL | 2005-02-26 03:31:09 | -1.00 | e5201b3819008718@192.168.199.102 | 107 | 20050226033016 | 0 | 0 | 0 | Grandstream BT100 1.0.5.11 | +----------+--------+------------------------+----------+------------------- --+-------+----------------------------------+------+----------------+------ -----+-------+-------+----------------------------+ 1 row in set (0.01 sec)
====debugt output====================================================================== =========================
20(18672) parse_headers: flags=256 20(18672) find_first_route: No Route headers found 20(18672) loose_route: There is no Route HF 20(18672) lookup(): '9901' Not found in usrloc
============================================================================
U 69.19.88.16:5060 -> 69.19.88.19:5060 INVITE sip:9901@69.19.88.19 SIP/2.0..Via: SIP/2.0/UDP 69.19.88.16:5060;branch=z9hG4bK2fb13d17..From: "Cell Phone MD" <sip:4103532264 @69.19.88.16>;tag=as149fbe93..To: sip:9901@69.19.88.19..Contact: sip:4103532264@69.19.88.16..Call-ID: 745bcf587074e77d4a8118dc212 ccba7@69.19.88.16..CSeq: 102 INVITE..User-Agent: Asterisk PBX..Date: Sat, 26 Feb 2005 08:41:01 GMT..Allow: INVITE, ACK, CANCEL, OPTIONS , BYE, REFER..Content-Type: application/sdp..Content-Length: 240....v=0..o=root 11581 11581 IN IP4 69.19.88.16..s=session..c=IN IP4 66. 159.88.16..t=0 0..m=audio 14934 RTP/AVP 0 8 101..a=rtpmap:0 PCMU/8000..a=rtpmap:8 PCMA/8000..a=rtpmap:101 telephone-event/8000..a=fmtp:1 01 0-16..a=silenceSupp:off - - - -.. # U 69.19.88.19:5060 -> 69.19.88.16:5060 SIP/2.0 100 trying -- your call is important to us..Via: SIP/2.0/UDP 69.19.88.16:5060;branch=z9hG4bK2fb13d17..From: "Cell Phone MD" < sip:4103532264@69.19.88.16>;tag=as149fbe93..To: sip:9901@69.19.88.19..Call-ID: 745bcf587074e77d4a8118dc212ccba7@69.19.88.16..CSeq: 102 INVITE..Server: Sip EXpress router (0.9.0 (i386/linux))..Content-Length: 0..Warning: 392 69.19.88.19:5060 "Noisy feedback tells: p id=18682 req_src_ip=69.19.88.16 req_src_port=5060 in_uri=sip:9901@69.19.88.19 out_uri=sip:9901@69.19.88.16:5060 via_cnt==1".... # U 69.19.88.19:5060 -> 69.19.88.16:5060 INVITE sip:9901@69.19.88.16:5060 SIP/2.0..Max-Forwards: 10..Record-Route: sip:69.19.88.19;ftag=as149fbe93;lr=on..Via: SIP/2.0/UDP 66 .159.88.19;branch=z9hG4bK96c9.80b8ddd7.0..Via: SIP/2.0/UDP 69.19.88.16:5060;branch=z9hG4bK2fb13d17..From: "Cell Phone MD" <sip:410353 2264@69.19.88.16>;tag=as149fbe93..To: sip:9901@69.19.88.19..Contact: sip:4103532264@69.19.88.16..Call-ID: 745bcf587074e77d4a8118d c212ccba7@69.19.88.16..CSeq: 102 INVITE..User-Agent: Asterisk PBX..Date: Sat, 26 Feb 2005 08:41:01 GMT..Allow: INVITE, ACK, CANCEL, OPT IONS, BYE, REFER..Content-Type: application/sdp..Content-Length: 240..P-hint: GATEWAY....v=0..o=root 11581 11581 IN IP4 69.19.88.16..s= session..c=IN IP4 69.19.88.16..t=0 0..m=audio 14934 RTP/AVP 0 8 101..a=rtpmap:0 PCMU/8000..a=rtpmap:8 PCMA/8000..a=rtpmap:101 telephone -event/8000..a=fmtp:101 0-16..a=silenceSupp:off - - - -.. # U 69.19.88.16:5060 -> 69.19.88.19:5060 SIP/2.0 482 Loop Detected..Via: SIP/2.0/UDP 69.19.88.19;branch=z9hG4bK96c9.80b8ddd7.0..Via: SIP/2.0/UDP 69.19.88.16:5060;branch=z9hG4b K2fb13d17..From: "Cell Phone MD" sip:4103532264@69.19.88.16;tag=as149fbe93..To: sip:9901@69.19.88.19;tag=as149fbe93..Call-ID: 74 5bcf587074e77d4a8118dc212ccba7@69.19.88.16..CSeq: 102 INVITE..User-Agent: Asterisk PBX..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER ..Contact: sip:4103532264@69.19.88.16..Content-Length: 0....
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
.
Yes, it should get written to DB but maintained in member. Below is the serctl ul show indicating that the entry exists.
[root@baltodb ~]# serctl ul show Dumping all contacts may take long: are you sure you want to proceed? [Y|N] y ===Domain list=== ---Domain--- name : 'aliases' size : 512 table: 0xb61b1acc d_ll { n : 1 first: 0xb61b3afc last : 0xb61b3afc }
...Record(0xb61b3afc)... domain: 'aliases' aor : '4107358517' ~~~Contact(0xb61b3b90)~~~ domain : 'aliases' aor : '4107358517' Contact : 'sip:9901@baltodb.popvox.com' Expires : -211028 q : 1 Call-ID : 'The-Answer-To-The-Ultimate-Question-Of-Life-Universe-And-Everything' CSeq : 42 replic : 0 User-Agent: 'SIP Express Router FIFO' received : '' State : CS_SYNC Flags : 128 next : (nil) prev : (nil) ~~~/Contact~~~~ .../Record...
---/Domain--- ---Domain--- name : 'location' size : 512 table: 0xb61af9d0 d_ll { n : 1 first: 0xb61b3d10 last : 0xb61b3d10 }
...Record(0xb61b3d10)... domain: 'location' aor : '9901' ~~~Contact(0xb61b3d9c)~~~ domain : 'location' aor : '9901' Contact : 'sip:9901@69.250.205.31' Expires : 46 q : Call-ID : '19a14fa21143a08a@192.168.199.102' CSeq : 101 replic : 0 User-Agent: 'Grandstream BT100 1.0.5.11' received : '' State : CS_SYNC Flags : 0 next : (nil) prev : (nil) ~~~/Contact~~~~ .../Record...
---/Domain--- ===/Domain list===
-----Original Message----- From: Iqbal Gandham [mailto:iqbal@gigo.co.uk] Sent: Monday, February 28, 2005 12:37 PM To: Glenn Dalgliesh Cc: serusers@lists.iptel.org Subject: Re: [Serusers] lookup not finding local users
Hi
i dont think the DB is queried, I think the location in the memory is though
try using serctl to display what is in memory
Iqbal