Hi again, Following up on this and having done some further tests, I was finally able to generate a SIP INVITE request using the following command sequence on the command file.
$uac_req(method)="INVITE";
$uac_req(ruri)=$shv(userAcontact);
$uac_req(turi)="sip:[email protected]";
$uac_req(furi)="sip:[email protected]";
$uac_req(callid)=$var(call_id);
$uac_req(hdrs)="Contact:
<sip:[email protected]:5060;transport=udp\r\n";
$uac_req(hdrs)="Allow: SUBSCRIBE, NOTIFY, INVITE, ACK, CANCEL, BYE,
REFER, INFO, MESSAGE\r\n";
$uac_req(hdrs)="Content-Type: application/sdp\r\n";
$uac_req(body)=$var(offer);
uac_req_send();
I've attached the trace collected on the client side. Transaction/dialogue wise
seems to have the correct behavior, however I found two blocking issues which
are causing the SIP INVITE to be rejected with a 400 "bad request" error code.
The first, it seems we cannot send more than one header on the SIP INVITE. That
is I need to add the "Contact", "Allow" and "Content-Type" fields, but only the
last one is inserted, which is the "Content-Type". If I marked it as a comment
(with #), them the "Allow" is included instead.
The second issue is related with the inclusion of SDP offer on the body of the
message. Since this SDP is quite a long one(1266 bytes) it is being truncated.
I'm currently using kamailio 4.3.0.
Thanks,
Joao
-----Original Message-----
From: sr-users [mailto:[email protected]] On Behalf Of Alex
Balashov
Sent: sexta-feira, 19 de Junho de 2015 22:11
To: [email protected]
Subject: Re: [SR-Users] New SIP INVITE from UAS (new dialogue)
On 06/19/2015 04:30 PM, Joao Alves wrote:
> Tell me one thing. If was not a SIP INVITE but just a SIP INFO or SIP
> MESSAGE (since are stateless), would it be easier to do?
Yes, those would be more viable.
--
Alex Balashov | Principal | Evariste Systems LLC
303 Perimeter Center North, Suite 300
Atlanta, GA 30346
United States
Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
This message and the information contained herein is proprietary and
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp
generated SIP INVITE.pcap
Description: generated SIP INVITE.pcap
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
