pjsip INVITE with URN support

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

 



Hi
Does pjsip have support for RFC5031?,

For emergency call I have to send INVITE with header: "TO URN" with "urn:sercice:sos".
Do you know how to do this via pjsua2 api?
I try something like this:

final SipHeaderVector headerVector prm.getTxOption().getHeaders();
SipHeader sosheader = new SipHeader();
sosheader.setHName("To URN");
sosheader.setHValue("URN:service:sos");
headerVector.add(sosheader);
prm.getTxOption().setHeaders(headerVector);
super.makeCall(dst_uri, prm);

it's add, but also add with normal "To" header with 112@domain etc. and this is wrong.

It is possible to send INVITE without "To" header?

Regards
Andrzej


[https://tools.ietf.org/html/rfc5031]

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org



[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