<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [sip.js](./sip.js.md) &gt; [UserAgent](./sip.js.useragent.md) &gt; [makeURI](./sip.js.useragent.makeuri.md)

## UserAgent.makeURI() method

Create a URI instance from a string.

<b>Signature:</b>

```typescript
static makeURI(uri: string): URI | undefined;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  uri | <code>string</code> | The string to parse. |

<b>Returns:</b>

`URI | undefined`

## Example


```ts
const uri = UserAgent.makeURI("sip:edgar@example.com");

```

