[asterisk-dev] SIP request

Joshua Colp jcolp at digium.com
Sun Dec 1 20:02:49 CST 2013


Stas Kobzar wrote:
> Hello list,
>
> I am trying to develop my own Asterisk module.
> I need to create and send PUBLISH SIP message with special headers
> and/or message body.
>
> I found in that in include folder there is a sip_api.h (Asterisk 11), an
> API for INFO method. But I can not figure out how to access to other
> methods.
>
> Is it possible to use chan_sip methods in other modules? If yes, could
> you, please, give me a hint where to look?

There is no way to do this. It doesn't provide any APIs to extend it. 
Any additional functionality has to be built into chan_sip itself.

In Asterisk 12 the new PJSIP based modules DO provide various APIs to 
allow you to do exactly this.

Cheers,

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at:  www.digium.com  & www.asterisk.org



More information about the asterisk-dev mailing list