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@11.0.0.253:5070Call-ID: 6959b01e-9faa-4879-ab39-5daa7fc70a75CSeq: 21736 INVITERoute: sip:172.16.0.2:5060;lrAllow: 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
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@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;tag=dcc62b08-0d0c-417d-a8a5-0c22dc84e534
To: sip:172.16.0.3
Contact: sip:MN@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@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
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@pjsip.org> To: pjsip@lists.pjsip.org> Subject: Re: [pjsip] 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@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;tag=dcc62b08-0d0c-417d-a8a5-0c22dc84e534> > To: sip:172.16.0.3> > Contact: sip:MN@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@lists.pjsip.org> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org> >> >> > _______________________________________________> Visit our blog: http://blog.pjsip.org> > pjsip mailing list> pjsip@lists.pjsip.org> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Email envoyé avec Windows Live Hotmail. Dites adieux aux spam et virus, passez à Hotmail ! C'est gratuit !
http://www.windowslive.fr/hotmail/default.asp
why not try sipp?
On Sun, Oct 26, 2008 at 7:13 PM, cedric leveque
levequecedric@hotmail.comwrote:
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@pjsip.org
To: pjsip@lists.pjsip.org
Subject: Re: [pjsip] 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@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@11.0.0.253
;tag=dcc62b08-0d0c-417d-a8a5-0c22dc84e534
To: sip:172.16.0.3
Contact: sip:MN@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@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@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éohttp://www.microsoft.com/france/windows/bts/default.mspx
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Thanks, but SiPp need to generate his own Call-ID, or a derived from this Call-ID, and I need to use a specific Call-ID.
So I can't use SiPp.
Date: Tue, 28 Oct 2008 13:02:29 +0800From: gangban.lau@gmail.comTo: pjsip@lists.pjsip.orgSubject: Re: [pjsip] Create an INVITE request based on content of a text file.why not try sipp?
On Sun, Oct 26, 2008 at 7:13 PM, cedric leveque levequecedric@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@pjsip.org> To: pjsip@lists.pjsip.org> Subject: Re: [pjsip] 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@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;tag=dcc62b08-0d0c-417d-a8a5-0c22dc84e534> > To: sip:172.16.0.3> > Contact: sip:MN@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@lists.pjsip.org> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org> >> >> > _______________________________________________> Visit our blog: http://blog.pjsip.org> > pjsip mailing list> pjsip@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_______________________________________________Visit our blog: http://blog.pjsip.orgpjsip mailing listpjsip@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Inédit ! Des Emoticônes Déjantées! Installez les dans votre Messenger !
http://www.ilovemessenger.fr/Emoticones/EmoticonesDejantees.aspx