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

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

 



why not try sipp?

On Sun, Oct 26, 2008 at 7:13 PM, cedric leveque
<levequecedric at hotmail.com>wrote:

> Thanks,
>
> I use the parser and it's an easier way than my previous way.
>
> I need too managed dialog by Session Invite, so I parse my message, create
> a dialog, update tag, branch, call-id, and create a Session Invite with this
> dialog.
>
>
>
>
> ------------------------------
>
> > Date: Wed, 22 Oct 2008 20:14:13 +0700
> > From: nanang@xxxxxxxxx
> > To: pjsip at lists.pjsip.org
> > Subject: Re: Create an INVITE request based on content of a text
> file.
>
> >
> > Hi,
> >
> > To generate stateless INVITE request and less care about the response
> > (e.g: for offer/answer validation purpose), I think it will be easier
> > to just use PJLIB file operation and transport to read and send the
> > text file, then the response may be parsed using PJSIP SIP parser. It
> > depends on what you want to achieve though.
> >
> > Regards,
> > nanang
> >
> >
> > On Tue, Oct 21, 2008 at 9:31 PM, cedric leveque
> > <levequecedric at hotmail.com> wrote:
> > > 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.0
> > > Record-Route: sip:172.16.0.2:5060;lr
> > > Via: SIP/2.0/UDP
> > > 11.0.0.253:5070
> ;rport;branch=z9hG4bKPj48d06b6b-890c-4da4-ac0b-f2af3edb1b6e
> > > Max-Forwards: 70
> > > From: <sip:MN@11.0.0.253 <sip%3AMN at 11.0.0.253>
> >;tag=dcc62b08-0d0c-417d-a8a5-0c22dc84e534
> > > To: sip:172.16.0.3
> > > Contact: <sip:MN at 11.0.0.253:5070>
> > > Call-ID: 6959b01e-9faa-4879-ab39-5daa7fc70a75
> > > CSeq: 21736 INVITE
> > > Route: <sip:172.16.0.2:5060;lr>
> > > Allow: INVITE, ACK, BYE, CANCEL, UPDATE, PRACK
> > > Supported: 100rel
> > > Require: 100rel
> > > Content-Type: application/sdp
> > > Content-Length: 258
> > > v=0
> > > o=- 3433220172 3433220172 IN IP4 11.0.0.253
> > > s=pjmedia
> > > c=IN IP4 11.0.0.253
> > > t=0 0
> > > m=audio 4070 RTP/AVP 0 8 101
> > > a=rtcp:4071 IN IP4 11.0.0.253
> > > a=rtpmap:0 PCMU/8000
> > > a=rtpmap:8 PCMA/8000
> > > a=sendrecv
> > > a=rtpmap:101 telephone-event/8000
> > > a=fmtp:101 0-15
> > >
> > > Thanks by advance for your help.
> > >
> > > C?dric.
> > >
> > > ________________________________
> > > Discutez sur Messenger o? que vous soyez ! Mettez Messenger sur votre
> mobile
> > > !
> > > _______________________________________________
> > > Visit our blog: http://blog.pjsip.org
> > >
> > > pjsip mailing list
> > > pjsip at lists.pjsip.org
> > > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
> > >
> > >
> >
> > _______________________________________________
> > Visit our blog: http://blog.pjsip.org
> >
> > pjsip mailing list
> > pjsip at lists.pjsip.org
> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
> ------------------------------
> Qui vous permet d'enregistrer la TV sur votre PC et lire vos emails sur
> votre mobile ? la r?ponse en vid?o la r?ponse en vid?o<http://www.microsoft.com/france/windows/bts/default.mspx>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20081028/45369bb7/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