Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For a user with number alias REGISTER works with both id and number-alias, but INVITEs are routed only when REGISTER uses the id #1870

Open
dilyanpalauzov opened this issue Nov 21, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@dilyanpalauzov
Copy link
Contributor

The problem report is that for a directory with <user id="localhost-gnomecalls" number-alias="13"> using as User ID 13 or localhost-gnomecalls in REGISTER both works, but calls to number 13 are only routed by FreeSWITCH if REGISTER has used localhost-gnomecalls as username.

Ideally the calls shall be routed irrespective of whether 13 or localhost-gnomecalls was used in REGISTER. But at least REGISTER with ID 13 shall be rejected, if subsequent INVITEs on 13 are going to be rejected with 480 Temporarily Unavailable.

I have a directory-user defined as

<include>
  <user id="localhost-gnomecalls" number-alias="13">
    <params>
      <param name="password" value="111"/>
      <param name="vm-password" value="444123"/>
    </params>
    <variables>
      <variable name="toll_allow" value="domestic,international,local"/>
      <variable name="accountcode" value="13"/>
      <variable name="user_context" value="default"/>
      <variable name="effective_caller_id_name" value="Gnome Calls"/>
      <variable name="effective_caller_id_number" value="13"/>
      <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
      <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
      <!--      <variable name="callgroup" value="techsupport"/> -->
    </variables>
  </user>
</include>

As SIP-client I use Gnome Calls. When I set there as user-ID localhost-gnomecalls, it REGISTERs with

send 977 bytes to udp/[192.168.0.199]:5066 at 12:07:41.460033:
------------------------------------------------------------------------
REGISTER sip:192.168.0.199:5066 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.199:35567;rport;branch=z9hG4bKtpQv2KDyFvSej
Max-Forwards: 70
From: <sip:localhost-gnomecalls@192.168.0.199:35567>;tag=NZjc12gS2vB7K
To: <sip:localhost-gnomecalls@192.168.0.199:35567>
Call-ID: 2d2d7e58-e427-123b-bcb2-e4aaeae9dd8b
CSeq: 59958838 REGISTER
Contact: localhost 13 <sip:localhost-gnomecalls@192.168.0.199:35567;user=phone>;methods="INVITE,ACK,BYE,CANCEL,OPTIONS,PRACK,MESSAGE,SUB
SCRIBE,NOTIFY,REFER,UPDATE"
Expires: 180
User-Agent: calls sofia-sip/1.13.9 
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE
Supported: timer, 100rel, replaces, gruu, outbound
Authorization: Digest username="localhost-gnomecalls", realm="192.168.0.199", nonce="a91d5912-d7e2-49a3-8a64-522bbccd5f8a", cnonce="JPPJ
H+QmEjuyvOSq6undiw", algorithm=MD5, uri="sip:192.168.0.199:5066", response="3062779ddb611670c93298b947741ded", qop=auth, nc=00000004
Content-Length: 0

recv 673 bytes from udp/[192.168.0.199]:5066 at 12:07:41.468261:
------------------------------------------------------------------------
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.199:35567;rport=35567;branch=z9hG4bKtpQv2KDyFvSej
From: <sip:localhost-gnomecalls@192.168.0.199:35567>;tag=NZjc12gS2vB7K
To: <sip:localhost-gnomecalls@192.168.0.199:35567>;tag=501e7Z0e0NSQg 
Call-ID: 2d2d7e58-e427-123b-bcb2-e4aaeae9dd8b
CSeq: 59958838 REGISTER
Contact: <sip:localhost-gnomecalls@192.168.0.199:35567;user=phone>;expires=600
Date: Mon, 21 Nov 2022 10:07:41 GMT
User-Agent: FreeSWITCH-mod_sofia/1.10.8-dev+git~20220610T171719Z~2b4646b53c~64bit
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Content-Length: 0


send 478 bytes to udp/[192.168.0.199]:5066 at 12:07:41.468435:
------------------------------------------------------------------------
OPTIONS sip:localhost-gnomecalls@192.168.0.199:35567 SIP/2.0
v:SIP/2.0/UDP 192.168.0.199:35567;rport;branch=z9hG4bKUZgN4ey1c5F1D
f:<sip:localhost-gnomecalls@192.168.0.199:35567>;tag=NZjc12gS2vB7K
t:<sip:localhost-gnomecalls@192.168.0.199:35567>
i:-Hwq6dyf9I1bsANB8wy6iv
CSeq:59958410 OPTIONS
a:*;require;explicit;methods="INVITE,ACK,BYE,CANCEL,OPTIONS,PRACK,MESSAGE,SUBSCRIBE,NOTIFY,REFER,UPDATE"
Accept:application/vnd.nokia-register-usage
s:REGISTRATION PROBE
l:0

recv 331 bytes from udp/[192.168.0.199]:5066 at 12:07:41.468613:
------------------------------------------------------------------------
SIP/2.0 481 Call/Transaction Does Not Exist
Via: SIP/2.0/UDP 192.168.0.199:35567;rport=35567;branch=z9hG4bKUZgN4ey1c5F1D
f:<sip:localhost-gnomecalls@192.168.0.199:35567>;tag=NZjc12gS2vB7K
To: <sip:localhost-gnomecalls@192.168.0.199:35567>;tag=69t78tHjXyFac 
i:-Hwq6dyf9I1bsANB8wy6iv
CSeq:59958410 OPTIONS
Content-Length: 0

When I dial 13 from another client, FreeSWITCH forwards the INVITE to the <user id="localhost-gnomecalls" number-alias="13">-registration.

I change in the Gnome Calls the user ID from gnome-calls to 13, delete all rows in the sip_registrations and registrations database-tables and then Register. FreeSWITH shows this traffic:

recv 653 bytes from udp/[192.168.0.199]:35567 at 12:11:42.189599:                                                                       
------------------------------------------------------------------------                                                                
REGISTER sip:192.168.0.199:5066 SIP/2.0                                                                                                 
Via: SIP/2.0/UDP 192.168.0.199:35567;rport;branch=z9hG4bKFetvDFBpcZepH
Max-Forwards: 70
From: <sip:13@192.168.0.199:35567>;tag=FjjgZDFgDrXaD
To: <sip:13@192.168.0.199:35567>
Call-ID: bca9ea03-e427-123b-bcb2-e4aaeae9dd8b
CSeq: 59958959 REGISTER
Contact: localhost 13 <sip:13@192.168.0.199:35567;user=phone>;methods="INVITE,ACK,BYE,CANCEL,OPTIONS,PRACK,MESSAGE,SUBSCRIBE,NOTIFY,REFE
R,UPDATE"
Expires: 180
User-Agent: calls sofia-sip/1.13.9 
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE
Supported: timer, 100rel, replaces, gruu, outbound
Content-Length: 0


send 651 bytes to udp/[192.168.0.199]:35567 at 12:11:42.191474:
------------------------------------------------------------------------
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.0.199:35567;rport=35567;branch=z9hG4bKFetvDFBpcZepH
From: <sip:13@192.168.0.199:35567>;tag=FjjgZDFgDrXaD
To: <sip:13@192.168.0.199:35567>;tag=FUy6re9H3erjm
Call-ID: bca9ea03-e427-123b-bcb2-e4aaeae9dd8b
CSeq: 59958959 REGISTER
User-Agent: FreeSWITCH-mod_sofia/1.10.8-dev+git~20220610T171719Z~2b4646b53c~64bit
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
WWW-Authenticate: Digest realm="192.168.0.199", nonce="6d71e2f8-f637-4afa-ab30-da6567b81a9a", algorithm=MD5, qop="auth"
Content-Length: 0


recv 905 bytes from udp/[192.168.0.199]:35567 at 12:11:42.197269:
------------------------------------------------------------------------
REGISTER sip:192.168.0.199:5066 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.199:35567;rport;branch=z9hG4bKgQKNFavS9748c
Max-Forwards: 70
From: <sip:13@192.168.0.199:35567>;tag=FjjgZDFgDrXaD
To: <sip:13@192.168.0.199:35567>
Call-ID: bca9ea03-e427-123b-bcb2-e4aaeae9dd8b
CSeq: 59958960 REGISTER
Contact: localhost 13 <sip:13@192.168.0.199:35567;user=phone>;methods="INVITE,ACK,BYE,CANCEL,OPTIONS,PRACK,MESSAGE,SUBSCRIBE,NOTIFY,REFE
R,UPDATE"
Expires: 180
User-Agent: calls sofia-sip/1.13.9 
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE
Supported: timer, 100rel, replaces, gruu, outbound
Authorization: Digest username="13", realm="192.168.0.199", nonce="6d71e2f8-f637-4afa-ab30-da6567b81a9a", cnonce="vKpDaOQnEjuyvOSq6undiw
", algorithm=MD5, uri="sip:192.168.0.199:5066", response="508ba204727ce140c801183f0d0762fd", qop=auth, nc=00000001
Content-Length: 0



send 619 bytes to udp/[192.168.0.199]:35567 at 12:11:42.206363:
------------------------------------------------------------------------
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.199:35567;rport=35567;branch=z9hG4bKgQKNFavS9748c
From: <sip:13@192.168.0.199:35567>;tag=FjjgZDFgDrXaD
To: <sip:13@192.168.0.199:35567>;tag=g4QZt9SN0Qe5F
Call-ID: bca9ea03-e427-123b-bcb2-e4aaeae9dd8b
CSeq: 59958960 REGISTER
Contact: <sip:13@192.168.0.199:35567;user=phone>;expires=600
Date: Mon, 21 Nov 2022 10:11:42 GMT
User-Agent: FreeSWITCH-mod_sofia/1.10.8-dev+git~20220610T171719Z~2b4646b53c~64bit
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Content-Length: 0


recv 424 bytes from udp/[192.168.0.199]:35567 at 12:11:42.209735:
------------------------------------------------------------------------
OPTIONS sip:13@192.168.0.199:35567 SIP/2.0
v:SIP/2.0/UDP 192.168.0.199:35567;rport;branch=z9hG4bKH0ceH5cX6gUUr
f:<sip:13@192.168.0.199:35567>;tag=FjjgZDFgDrXaD
t:<sip:13@192.168.0.199:35567>
i:Rc0gJWhoq1NxBgvicEiJQv
CSeq:59958959 OPTIONS
a:*;require;explicit;methods="INVITE,ACK,BYE,CANCEL,OPTIONS,PRACK,MESSAGE,SUBSCRIBE,NOTIFY,REFER,UPDATE"
Accept:application/vnd.nokia-register-usage
s:REGISTRATION PROBE
l:0



send 295 bytes to udp/[192.168.0.199]:35567 at 12:11:42.209835:
------------------------------------------------------------------------
SIP/2.0 481 Call/Transaction Does Not Exist
Via: SIP/2.0/UDP 192.168.0.199:35567;rport=35567;branch=z9hG4bKH0ceH5cX6gUUr
f:<sip:13@192.168.0.199:35567>;tag=FjjgZDFgDrXaD
To: <sip:13@192.168.0.199:35567>;tag=HDHrv4aSX04QB
i:Rc0gJWhoq1NxBgvicEiJQv
CSeq:59958959 OPTIONS
Content-Length: 0




send 941 bytes to udp/[192.168.0.199]:35567 at 12:11:42.302159:
------------------------------------------------------------------------
NOTIFY sip:13@192.168.0.199:35567;user=phone SIP/2.0
Via: SIP/2.0/UDP 192.168.0.199:5066;rport;branch=z9hG4bK3gSjrgQmv8tyD
Max-Forwards: 70
From: <sip:13@192.168.0.199>;tag=jpaHyZUvt9taQ
To: <sip:13@192.168.0.199>
Call-ID: bcbb1b39-e427-123b-cbb9-e4aaeae9dd8b
CSeq: 59958959 NOTIFY
Contact: <sip:mod_sofia@192.168.0.199:5066>
User-Agent: FreeSWITCH-mod_sofia/1.10.8-dev+git~20220610T171719Z~2b4646b53c~64bit
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Event: message-summary
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, prese
nce.winfo, message-summary, refer
Subscription-State: terminated;reason=noresource
Content-Type: application/simple-message-summary
Content-Length: 63

Messages-Waiting: no
Message-Account: sip:13@192.168.0.199

The postgresql contains now two registrations:

freeswitch=# SELECT * FROM registrations ;
┌─[ RECORD 1 ]──┬─────────────────────────────────────────────────────────┐
│ reg_user      │ 13                                                      │
│ realm         │ 192.168.0.199                                           │
│ token         │ bca9ea03-e427-123b-bcb2-e4aaeae9dd8b                    │
│ url           │ sofia/internal/sip:13@192.168.0.199:35567;user=phone    │
│ expires       │ 1669026162                                              │
│ network_ip    │ 192.168.0.199                                           │
│ network_port  │ 35567                                                   │
│ network_proto │ udp                                                     │
│ hostname      │ d                                                       │
│ metadata      │                                                         │
├─[ RECORD 2 ]──┼─────────────────────────────────────────────────────────┤
│ reg_user      │ hol                                                     │
│ realm         │ 192.168.0.199                                           │
│ token         │ 313636393031373231333237313535-hl31bj928954             │
│ url           │ sofia/internal/sip:hol@192.168.0.171:3072;line=q5ygydyo │
│ expires       │ 1669026274                                              │
│ network_ip    │ 192.168.0.171                                           │
│ network_port  │ 3072                                                    │
│ network_proto │ udp                                                     │
│ hostname      │ d                                                       │
│ metadata      │                                                         │
└───────────────┴─────────────────────────────────────────────────────────┘

and the sip_registrations table also has two rows:

freeswitch=# SELECT * FROM sip_registrations;

┌─[ RECORD 1 ]─────┬────────────────────────────────────────────────────────┐
│ call_id          │ 313636393031373231333237313535-hl31bj928954            │
│ sip_user         │ hol                                                    │
│ sip_host         │ 192.168.0.199                                          │
│ presence_hosts   │ 192.168.0.199,192.168.0.199                            │
│ contact          │ "V" <sip:hol@192.168.0.171:3072;line=q5ygydyo>         │
│ status           │ Registered(UDP)                                        │
│ ping_status      │ Reachable                                              │
│ ping_count       │ 0                                                      │
│ ping_time        │                                                        │
│ force_ping       │ 0                                                      │
│ rpid             │ unknown                                                │
│ expires          │ 1669026274                                             │
│ ping_expires     │ 1669025772                                             │
│ user_agent       │ snom870/8.7.5.35                                       │
│ server_user      │ hol                                                    │
│ server_host      │ 192.168.0.199                                          │
│ profile_name     │ internal                                               │
│ hostname         │ d                                                      │
│ network_ip       │ 192.168.0.171                                          │
│ network_port     │ 3072                                                   │
│ sip_username     │ hol                                                    │
│ sip_realm        │ 192.168.0.199                                          │
│ mwi_user         │ hol                                                    │
│ mwi_host         │ 192.168.0.199                                          │
│ orig_server_host │ 192.168.0.199                                          │
│ orig_hostname    │ d                                                      │
│ sub_host         │ 192.168.0.199                                          │
├─[ RECORD 2 ]─────┼────────────────────────────────────────────────────────┤
│ call_id          │ bca9ea03-e427-123b-bcb2-e4aaeae9dd8b                   │
│ sip_user         │ 13                                                     │
│ sip_host         │ 192.168.0.199                                          │
│ presence_hosts   │ 192.168.0.199,192.168.0.199                            │
│ contact          │ "localhost 13" <sip:13@192.168.0.199:35567;user=phone> │
│ status           │ Registered(UDP)                                        │
│ ping_status      │ Reachable                                              │
│ ping_count       │ 0                                                      │
│ ping_time        │                                                        │
│ force_ping       │ 0                                                      │
│ rpid             │ unknown                                                │
│ expires          │ 1669026162                                             │
│ ping_expires     │ 1669025784                                             │
│ user_agent       │ calls sofia-sip/1.13.9                                 │
│ server_user      │ 13                                                     │
│ server_host      │ 192.168.0.199                                          │
│ profile_name     │ internal                                               │
│ hostname         │ d                                                      │
│ network_ip       │ 192.168.0.199                                          │
│ network_port     │ 35567                                                  │
│ sip_username     │ 13                                                     │
│ sip_realm        │ 192.168.0.199                                          │
│ mwi_user         │ 13                                                     │
│ mwi_host         │ 192.168.0.199                                          │
│ orig_server_host │ 192.168.0.199                                          │
│ orig_hostname    │ d                                                      │
│ sub_host         │ 192.168.0.199                                          │
└──────────────────┴────────────────────────────────────────────────────────┘

The problem report is that once I call number 13 from account hol this happens (answer from FreeSWITCH is 480 Temporarily Unavailable):


freeswitch@d>
recv 1163 bytes from udp/[192.168.0.171]:3072 at 12:17:58.750596:
------------------------------------------------------------------------
INVITE sip:13@192.168.0.199:5066;user=phone SIP/2.0
Via: SIP/2.0/UDP 192.168.0.171:3072;branch=z9hG4bK-qjowt06x4kg5;rport
From: "V" <sip:hol@192.168.0.199:5066>;tag=k2ms3bcgsx
To: <sip:13@192.168.0.199:5066;user=phone>
Call-ID: 313636393032353837363531303732-di04zrbwx21q
CSeq: 1 INVITE
Max-Forwards: 70
User-Agent: snom870/8.7.5.35
Contact: <sip:hol@192.168.0.171:3072;line=q5ygydyo>;reg-id=1
X-Serialnumber: 00041341D89F
P-Key-Flags: resolution="31x13", keys="4"
Accept: application/sdp
Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE, PRACK, MESSAGE, INFO, UPDATE
Allow-Events: talk, hold, refer, call-info
Supported: timer, 100rel, replaces, from-change
Session-Expires: 3600
Min-SE: 90
Content-Type: application/sdp
Content-Length: 382

v=0
o=root 1317519980 1317519980 IN IP4 192.168.0.171
s=call
c=IN IP4 192.168.0.171
t=0 0
m=audio 62508 RTP/AVP 9 0 8 99 112 18 101
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:99 G726-32/8000
a=rtpmap:112 AAL2-G726-32/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv

send 873 bytes to udp/[192.168.0.171]:3072 at 12:17:58.755065:
------------------------------------------------------------------------
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 192.168.0.171:3072;branch=z9hG4bK-qjowt06x4kg5;rport=3072
From: "V" <sip:hol@192.168.0.199:5066>;tag=k2ms3bcgsx
To: <sip:13@192.168.0.199:5066;user=phone>;tag=tymQcr2r3gD0K
Call-ID: 313636393032353837363531303732-di04zrbwx21q
CSeq: 1 INVITE
User-Agent: FreeSWITCH-mod_sofia/1.10.8-dev+git~20220610T171719Z~2b4646b53c~64bit
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Proxy-Authenticate: Digest realm="192.168.0.199", nonce="46d255b4-1567-4e6e-a536-3c2af778c8a3", algorithm=MD5, qop="auth"
Content-Length: 0


recv 436 bytes from udp/[192.168.0.171]:3072 at 12:17:59.096269:
------------------------------------------------------------------------
ACK sip:13@192.168.0.199:5066;user=phone SIP/2.0
Via: SIP/2.0/UDP 192.168.0.171:3072;branch=z9hG4bK-qjowt06x4kg5;rport
From: "V" <sip:hol@192.168.0.199:5066>;tag=k2ms3bcgsx
To: <sip:13@192.168.0.199:5066;user=phone>;tag=tymQcr2r3gD0K
Call-ID: 313636393032353837363531303732-di04zrbwx21q
CSeq: 1 ACK
Max-Forwards: 70
User-Agent: snom870/8.7.5.35
Contact: <sip:hol@192.168.0.171:3072;line=q5ygydyo>;reg-id=1
Content-Length: 0


recv 1414 bytes from udp/[192.168.0.171]:3072 at 12:17:59.104409:
------------------------------------------------------------------------
INVITE sip:13@192.168.0.199:5066;user=phone SIP/2.0
Via: SIP/2.0/UDP 192.168.0.171:3072;branch=z9hG4bK-zwjfd504e2m6;rport
From: "V" <sip:hol@192.168.0.199:5066>;tag=k2ms3bcgsx
To: <sip:13@192.168.0.199:5066;user=phone>
Call-ID: 313636393032353837363531303732-di04zrbwx21q
CSeq: 2 INVITE
Max-Forwards: 70
User-Agent: snom870/8.7.5.35
Contact: <sip:hol@192.168.0.171:3072;line=q5ygydyo>;reg-id=1
X-Serialnumber: 00041341D89F
P-Key-Flags: resolution="31x13", keys="4"
Accept: application/sdp
Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE, PRACK, MESSAGE, INFO, UPDATE
Allow-Events: talk, hold, refer, call-info
Supported: timer, 100rel, replaces, from-change
Session-Expires: 3600
Min-SE: 90
Proxy-Authorization: Digest username="hol",realm="192.168.0.199",nonce="46d255b4-1567-4e6e-a536-3c2af778c8a3",uri="sip:13@192.168.0.199:5066;user=phone",qop=auth,nc=00000001,cnonce="4e5f2720",response="d7287acf59b29e0ec312482fcd1e1bf9",algorithm=MD5
Content-Type: application/sdp
Content-Length: 382

v=0
o=root 1317519980 1317519980 IN IP4 192.168.0.171
s=call
c=IN IP4 192.168.0.171
t=0 0
m=audio 62508 RTP/AVP 9 0 8 99 112 18 101
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:99 G726-32/8000
a=rtpmap:112 AAL2-G726-32/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv

send 369 bytes to udp/[192.168.0.171]:3072 at 12:17:59.122368:
------------------------------------------------------------------------
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.0.171:3072;branch=z9hG4bK-zwjfd504e2m6;rport=3072
From: "V" <sip:hol@192.168.0.199:5066>;tag=k2ms3bcgsx
To: <sip:13@192.168.0.199:5066;user=phone>
Call-ID: 313636393032353837363531303732-di04zrbwx21q
CSeq: 2 INVITE
User-Agent: FreeSWITCH-mod_sofia/1.10.8-dev+git~20220610T171719Z~2b4646b53c~64bit
Content-Length: 0


send 1156 bytes to udp/[192.168.0.171]:3072 at 12:17:59.142360:
------------------------------------------------------------------------
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 192.168.0.171:3072;branch=z9hG4bK-zwjfd504e2m6;rport=3072
From: "V" <sip:hol@192.168.0.199:5066>;tag=k2ms3bcgsx
To: <sip:13@192.168.0.199:5066;user=phone>;tag=U7DgeKKv0S3jF
Call-ID: 313636393032353837363531303732-di04zrbwx21q
CSeq: 2 INVITE
Contact: <sip:13@192.168.0.199:5066;transport=udp>
User-Agent: FreeSWITCH-mod_sofia/1.10.8-dev+git~20220610T171719Z~2b4646b53c~64bit
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 222
Remote-Party-ID: "13" <sip:13@192.168.0.199>;party=calling;privacy=off;screen=no

v=0
o=FreeSWITCH 1669002037 1669002038 IN IP4 192.168.0.199
s=FreeSWITCH
c=IN IP4 192.168.0.199
t=0 0
m=audio 23842 RTP/AVP 9 101
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20

2022-11-21 12:17:59.150571 94.20% [ERR] mod_dptools.c:1867 LOCAL 13
send 869 bytes to udp/[192.168.0.171]:3072 at 12:17:59.158964:
------------------------------------------------------------------------
SIP/2.0 480 Temporarily Unavailable
Via: SIP/2.0/UDP 192.168.0.171:3072;branch=z9hG4bK-zwjfd504e2m6;rport=3072
Max-Forwards: 70
From: "V" <sip:hol@192.168.0.199:5066>;tag=k2ms3bcgsx
To: <sip:13@192.168.0.199:5066;user=phone>;tag=U7DgeKKv0S3jF
Call-ID: 313636393032353837363531303732-di04zrbwx21q
CSeq: 2 INVITE
User-Agent: FreeSWITCH-mod_sofia/1.10.8-dev+git~20220610T171719Z~2b4646b53c~64bit
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Reason: SIP;cause=806;text="USER_NOT_REGISTERED"
Content-Length: 0
Remote-Party-ID: "13" <sip:13@192.168.0.199>;party=calling;privacy=off;screen=no


recv 436 bytes from udp/[192.168.0.171]:3072 at 12:17:59.216036:
------------------------------------------------------------------------
ACK sip:13@192.168.0.199:5066;user=phone SIP/2.0
Via: SIP/2.0/UDP 192.168.0.171:3072;branch=z9hG4bK-zwjfd504e2m6;rport
From: "V" <sip:hol@192.168.0.199:5066>;tag=k2ms3bcgsx
To: <sip:13@192.168.0.199:5066;user=phone>;tag=U7DgeKKv0S3jF
Call-ID: 313636393032353837363531303732-di04zrbwx21q
CSeq: 2 ACK
Max-Forwards: 70
User-Agent: snom870/8.7.5.35
Contact: <sip:hol@192.168.0.171:3072;line=q5ygydyo>;reg-id=1
Content-Length: 0
@dilyanpalauzov dilyanpalauzov added the bug Something isn't working label Nov 21, 2022
@dilyanpalauzov
Copy link
Contributor Author

When I enter as User Id an alphanumeric string, or a number, for which no entry exists in the user-directory, and perform REGISTER, freeSWITCH returns eventually OK and inserts a row in each of the sql tables sip_registrations and registrations.

The problem report is that when non-existing userid is used in REGISTER, FreeSWITCH returns OK and completes the registration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant