[OpenSIPS-Users] [PATCHes] support for text message billing with callcontrol

Paul Wise pabs3 at bonedaddy.net
Sun Oct 14 08:53:41 CEST 2012


Hi all,

At my last job we developed text messaging via SIP and OpenSIPS,
including billing with callcontrol. The company is now defunct and my
ex-boss has asked that I contribute these patches to OpenSIPS and
callcontrol. I've updated our patches so they apply to OpenSIPS SVN
trunk and callcontrol darcs head. The patches are attached, hopefully
they are useful to someone. To use them you want something like this:

if (is_method("MESSAGE")) {
	your SMS sending function here
	if( $avp(s:sms_status) == "accepted" ){
		call_control_start();
		call_control_stop();
		t_reply("200", "OK");
		exit;
	} else {
		call_control_stop();
		t_reply("500", "Error sending SMS");
		exit;
	}
}

-- 
bye,
pabs

http://bonedaddy.net/pabs3/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: callcontrol-text-billing.patch
Type: text/x-patch
Size: 14308 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20121014/79c9d08f/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opensips-text-billing.patch
Type: text/x-patch
Size: 5764 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20121014/79c9d08f/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.opensips.org/pipermail/users/attachments/20121014/79c9d08f/attachment-0001.pgp>


More information about the Users mailing list