Pein
Pein

Reputation: 1079

PJSip. What class should be used in order to implement sip request?

Now I'm trying to use PJSip in my project. In documentation I can't find any information about what classes I should use in order to implement SIP request (REGISTER, INVITE, BYE, ACK, CANCEL...)

Can someone help me?

Upvotes: 0

Views: 81

Answers (1)

Nacho
Nacho

Reputation: 1124

The Call class has a method send_request which can be used to send specific requests to the remote call.

For instance, you can get a Call object as a result of a call to the make_call method of your Account object:

call = acc.make_call(dst_uri, cb=my_cb)
call.send_request("INFO")

Upvotes: 1

Related Questions