Re: [reSIProcate] SIP Info Message
You can use the GenericContents if you don't want to create your own
subclass. e.g.
GenericContents g("Signal=5\r\nDuration=160\r\n", Mime("application",
"dtmf-relay"));
On 8/2/05, stensil <stensil@xxxxxxx> wrote:
> IMHO, you must realize your own special class for DTMF like SdpContents
> for SDP and some more classes inherited from Contents. I did it some
> time ago and my class works enough for me.
>
> s> I want to send SIP Info message as dtmf using the INFO Method but how can I
> s> do that?
> s>
> s> In between session I have function like Info() that will be used to send
> the
> s> INFO Message
> s>
> s> But this function take Contents as parameter . how can I create my
> customize
> s> contents ?
> s>
> s> I need my Info Message Look like .
> s>
> s>
> s>
> s> INFO sip:7007471000@xxxxxxxxxxx SIP/2.0
> s> Via: SIP/2.0/UDP alice.uk.example.com:5060
> s> From: <sip:7007471234@xxxxxxxxxxxxxxxxxxxx>;tag=d3f423d
> s> To: <sip:7007471000@xxxxxxxxxxx>;tag=8942
> s> Call-ID: 312352@myphone
> s> CSeq: 5 INFO
> s> Content-Length: 24
> s> Content-Type: application/dtmf-relay
> s>
> s> Signal=5
> s> Duration=160
> s>
> s>
> s>
> s> So I need to add Signal and Duration as content
>
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel@xxxxxxxxxxxxxxxxxxx
> https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
>