<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Hi Wolfgang,<br>
<br>
<br>
<br>
<blockquote cite="mid20137789.1186426763385.JavaMail.root@mail.yosd.at"
type="cite"><font face="times new roman, new york, times, serif"
size="3"><br>
Here is my code which does generate the SIP INFO Message:<br>
<br>
static int sip_send_aocd_to_peer(struct sip_pvt *p)<br>
{<br>
struct sip_request req;<br>
char buf[2048];<br>
<br>
reqprep(&req, p, SIP_INFO, 0, 1);<br>
// Insert already generated ISDN binary for testing purpose<br>
snprintf(buf, sizeof(buf),
"91a11a0201000201213012a10d810346522ea206810100820101820100");<br>
/* add_header(&req, "AOC", buf);<br>
add_header_contentLength(&req, 0); */<br>
<br>
add_header(&req, "Content-Type", "application/QSIG");<br>
add_header_contentLength(&req, strlen(buf));<br>
add_line(&req, buf);<br>
<br>
return send_request(p, &req, 1, p->ocseq);<br>
}<br>
<br>
this does generate the following sip messages:<br>
<br>
INFO <a class="moz-txt-link-freetext" href="sip:101@90.146.5.134:5061">sip:101@90.146.5.134:5061</a> SIP/2.0<br>
Via: SIP/2.0/UDP 88.198.158.245:5060;branch=z9hG4bK2a0ddade;rport<br>
From: <a class="moz-txt-link-rfc2396E" href="sip:031620837999550@vpbx.yosd.at"><sip:031620837999550@vpbx.yosd.at></a>;tag=as5f87418c<br>
To: 101 <a class="moz-txt-link-rfc2396E" href="sip:101@vpbx.yosd.at:5061"><sip:101@vpbx.yosd.at:5061></a>;tag=868274887<br>
Contact: <a class="moz-txt-link-rfc2396E" href="sip:031620837999550@88.198.158.245"><sip:031620837999550@88.198.158.245></a><br>
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:010D7008-214C-4D45-B75B-F8C6CA2EA09E@10.200.0.22">010D7008-214C-4D45-B75B-F8C6CA2EA09E@10.200.0.22</a><br>
CSeq: 102 INFO<br>
User-Agent: Commoveo Cockpit<br>
Max-Forwards: 70<br>
Content-Type: application/QSIG<br>
Content-Length: 58<br>
<br>
91a11a0201000201213012a10d810346522ea206810100820101820100<br>
<br>
<br>
</font></blockquote>
Why are you not using AOC as mentioned in site <a class="moz-txt-link-rfc2396E" href="http://wiki.snom.com/wiki/index.php/Advice_of_charge_%28AOC%29_in_SIP">"
http://wiki.snom.com/wiki/index.php/Advice_of_charge_%28AOC%29_in_SIP"</a> <br>
<br>
<pre>INFO <a class="moz-txt-link-freetext" href="sip:bla@snom.com">sip:bla@snom.com</a> SIP/2.0
From: <a class="moz-txt-link-rfc2396E" href="mailto:biller@snom.com"><biller@snom.com></a>;tag=5354n3
To: <a class="moz-txt-link-rfc2396E" href="mailto:ua@snom.com"><ua@snom.com></a>;tag=33rfh3
CSeq: 23423 INFO
Call-ID: 3452tw43dt354dm03
AOC: charging;state=active;
charging-info=currency;
currency=EUR;
amount=2000;
multiplier=0.001
Content-Length: 0</pre>
<br>
<blockquote cite="mid20137789.1186426763385.JavaMail.root@mail.yosd.at"
type="cite"><font face="times new roman, new york, times, serif"
size="3">Seems to be quit ok - but want work...<br>
<br>
</font></blockquote>
What do you mean it wont work(whats error reported)<br>
<br>
<br>
Sorry if I understand your question wrong. -:(<br>
<br>
--ibrar<br>
</body>
</html>