Sebastián Acosta
New Member
Problem Summary
When Flashphoner registers a SIP extension (e.g., 116), it adds a random numeric suffix to the Contact username:
text
Contact: <sip:116-587886243@54.233.122.89:30002>;expires=3600
The PBX (Yeastar/Asterisk) correctly stores this Contact and sends incoming INVITEs to that exact address:
text
INVITE sip:116-587886243@127.0.0.1:4070 SIP/2.0
However, Flashphoner fails to match the incoming INVITE and logs:
text
SipUserAgent not found for incoming request (Send 404 to server)
It seems Flashphoner cannot find a SipUserAgent for 116-587886243 because internally it only knows 116 (the login username).
Traffic Capture Evidence
We performed a traffic capture on the Flashphoner server. It clearly shows:
My Questions
text
sip.accept_any_invite_for_registered_user=true
sip.invite_username_match_strategy=prefix
sip.ignore_invite_username_validation=true
sip.invite_username_filter=true
sip.generate_contact_with_suffix=false
sip.force_contact_user=true
sip.contact_user_equals_login=true
None of these prevented the suffix from appearing or enabled prefix matching.
Environment
Best regards,
When Flashphoner registers a SIP extension (e.g., 116), it adds a random numeric suffix to the Contact username:
text
Contact: <sip:116-587886243@54.233.122.89:30002>;expires=3600
The PBX (Yeastar/Asterisk) correctly stores this Contact and sends incoming INVITEs to that exact address:
text
INVITE sip:116-587886243@127.0.0.1:4070 SIP/2.0
However, Flashphoner fails to match the incoming INVITE and logs:
text
SipUserAgent not found for incoming request (Send 404 to server)
It seems Flashphoner cannot find a SipUserAgent for 116-587886243 because internally it only knows 116 (the login username).
Traffic Capture Evidence
We performed a traffic capture on the Flashphoner server. It clearly shows:
- Flashphoner sends the REGISTER with a suffix: sip:116-587886243@...
- Yeastar responds 200 OK and stores that contact
- Yeastar sends a NOTIFY to that same contact: sip:116-587886243@...
- Flashphoner responds with 481 (Subscription does not exist)
My Questions
- Can Flashphoner be configured to match incoming INVITEs by PREFIX?
- For example, ignore everything after the dash - and match 116-587886243 to the registered user 116.
- Is there a setting like sip.invite_username_match_strategy=prefix that actually works for this scenario? (We tried it and it didn't work.)
- If prefix matching is not possible or reliable, how can we COMPLETELY DISABLE the random numeric suffix generation?
- We want Flashphoner to register with the exact login name: sip:116@54.233.122.89:30002 instead of sip:116-xxxxxx@....
- What are the correct configuration parameters for this?
- How can we apply the solution for multiple extensions (116, 113, 114, etc.) without hardcoding each one?
- We need a global configuration that works for all registered extensions.
text
sip.accept_any_invite_for_registered_user=true
sip.invite_username_match_strategy=prefix
sip.ignore_invite_username_validation=true
sip.invite_username_filter=true
sip.generate_contact_with_suffix=false
sip.force_contact_user=true
sip.contact_user_equals_login=true
None of these prevented the suffix from appearing or enabled prefix matching.
Environment
- Flashphoner WCS version: 5.2.2105
- PBX: Yeastar PSE (Asterisk 13.7.0)
- SIP transport: UDP
- Network: Flashphoner: 54.233.122.89 (public), 10.10.2.61 (local)
- Traffic capture (PCAP) showing the REGISTER with suffix and the failing NOTIFY
Best regards,
Attachments
-
1.9 KB Views: 93