Customize the URI field

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everyone,

I developed a simple Android application using PJSUA2 and it?s working fine so far, but I would like to customize the ID URI to make it easier for the users that receive a call to identify who is calling them.

Currently I set the ID URI with the following code:
accConfig.setIdUri("sip:12223334444 at domain.com");

and the user that receives a phone call sees this:
12223334444 at domain.com<mailto:12223334444 at domain.com>

The code above is working great, but I would like the users to see something like this when they receive a call:
"Firstname Lastname" <12223334444 at domain.com<mailto:12223334444 at domain.com>>

I tried to change the code above to this, but it didn?t work:
accConfig.setIdUri("\"Firstname Lastname\" <sip:12223334444 at domain.com>?);

I get the error message "Invalid URI (PJSIP_EINVALIDURI)?

Does anybody know what I?m doing wrong? Thanks in advance.

Best regards,
Vinicius Egidio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140326/1edc1d96/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux