Create an INVITE request based on content of a text file.

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

 



Hi,
 
I have an INVITE request describe in a text file.
I need to create and send this INVITE via PJSIP.
 
At the moment, I use simpleua example. I read the text file to get different elements, and I create an INVITE Request like in example, with INVITE Session Module.
I used the To, From, Contact, and Request Line get from the file. And for others elements, I modify manually the tdata generated.
 
Is there an easier way to create a request from a file ?
 
 
Example of the texte file :
INVITE sip:172.16.0.3:5080 SIP/2.0Record-Route: sip:172.16.0.2:5060;lrVia: SIP/2.0/UDP 11.0.0.253:5070;rport;branch=z9hG4bKPj48d06b6b-890c-4da4-ac0b-f2af3edb1b6eMax-Forwards: 70From: <sip:MN@11.0.0.253>;tag=dcc62b08-0d0c-417d-a8a5-0c22dc84e534To: sip:172.16.0.3Contact: <sip:MN at 11.0.0.253:5070>Call-ID: 6959b01e-9faa-4879-ab39-5daa7fc70a75CSeq: 21736 INVITERoute: <sip:172.16.0.2:5060;lr>Allow: INVITE, ACK, BYE, CANCEL, UPDATE, PRACKSupported: 100relRequire: 100relContent-Type: application/sdpContent-Length: 258
v=0o=- 3433220172 3433220172 IN IP4 11.0.0.253s=pjmediac=IN IP4 11.0.0.253t=0 0m=audio 4070 RTP/AVP 0 8 101a=rtcp:4071 IN IP4 11.0.0.253a=rtpmap:0 PCMU/8000a=rtpmap:8 PCMA/8000a=sendrecva=rtpmap:101 telephone-event/8000a=fmtp:101 0-15
 
Thanks by advance for your help.
 
C?dric.
_________________________________________________________________
T?l?phonez gratuitement ? tous vos proches avec Windows Live Messenger? !? T?l?chargez-le maintenant !?
http://www.windowslive.fr/messenger/1.asp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20081021/102bca9e/attachment.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