Opened 9 years ago

Closed 9 years ago

#1139 closed enhancement (fixed)

Support for tel: URI in PJSUA-LIB (thanks Johan Lantz for the suggestion)

Reported by: bennylp Owned by: bennylp
Priority: normal Milestone: release-1.8.5
Component: pjsua-lib Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported:

Description (last modified by bennylp)

While PJSIP has been supporting tel: URI for a long time, support for this is currently disabled in PJSUA-LIB, mainly for cosmetic reason.

This ticket enables tel: URI support in PJSUA-LIB, according to the following specification:

  1. tel: URI in account ID shall be supported, and the tel: URI shall be used as the URI in From header for all requests originated from that account, such as :
    • client registration
    • outgoing calls (including re-INVITE and UPDATE)
    • outgoing REFER
    • outgoing MESSAGE
    • presence PUBLISH (can't do this unless route set is configured)
    • outgoing SUBSCRIBE
    • and any other requests
  2. shall be able to send requests to tel: URI from an account, as long as route set is configured for the account. This includes, but not limited to:
    • outgoing calls (including re-INVITE and UPDATE)
    • outgoing REFER
    • outgoing UPDATE
    • outgoing MESSAGE
    • outgoing SUBSCRIBE (can't add tel: URI as buddy)
    • and any other requests (although sending REGISTER and PUBLISH to a tel: URI is probably not appropriate)
  3. shall be able to receive incoming requests with tel: URI in Request URI and/or To header of:
    • incoming calls
    • incoming MESSAGE
    • incoming REFER
    • incoming SUBSCRIBE
    • and any other requests

The unit tests shall be updated with above test scenarios.

Change History (2)

comment:1 Changed 9 years ago by bennylp

  • Description modified (diff)

comment:2 Changed 9 years ago by bennylp

  • Resolution set to fixed
  • Status changed from new to closed

(In [3323]) Closed #1139 (Support for tel: URI in PJSUA-LIB):

  • added new PJSUA API: pjsua_verify_url() which can be used for tel: URI
  • modified and tested according to spec
  • added new PJSIP error code, PJSIP_ENOROUTESET, to indicate that route set is needed to send to tel: URI
  • added couple of unit tests (we can't cover the whole tel: URI scenario yet)
Note: See TracTickets for help on using tickets.