Hi Wolfgang,
Why are you not using AOC as mentioned in site " http://wiki.snom.com/wiki/index.php/Advice_of_charge_%28AOC%29_in_SIP"Here is my code which does generate the SIP INFO Message: static int sip_send_aocd_to_peer(struct sip_pvt *p) { struct sip_request req; char buf[2048]; reqprep(&req, p, SIP_INFO, 0, 1); // Insert already generated ISDN binary for testing purposesnprintf(buf, sizeof(buf), "91a11a0201000201213012a10d810346522ea206810100820101820100");/* add_header(&req, "AOC", buf); add_header_contentLength(&req, 0); */ add_header(&req, "Content-Type", "application/QSIG"); add_header_contentLength(&req, strlen(buf)); add_line(&req, buf); return send_request(p, &req, 1, p->ocseq); } this does generate the following sip messages: INFO sip:[EMAIL PROTECTED]:5061 SIP/2.0 Via: SIP/2.0/UDP 88.198.158.245:5060;branch=z9hG4bK2a0ddade;rport From: <sip:[EMAIL PROTECTED]>;tag=as5f87418c To: 101 <sip:[EMAIL PROTECTED]:5061>;tag=868274887 Contact: <sip:[EMAIL PROTECTED]> Call-ID: [EMAIL PROTECTED] CSeq: 102 INFO User-Agent: Commoveo Cockpit Max-Forwards: 70 Content-Type: application/QSIG Content-Length: 58 91a11a0201000201213012a10d810346522ea206810100820101820100
INFO sip:[EMAIL PROTECTED] SIP/2.0 From: <[EMAIL PROTECTED]>;tag=5354n3 To: <[EMAIL PROTECTED]>;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
Seems to be quit ok - but want work...
What do you mean it wont work(whats error reported) Sorry if I understand your question wrong. -:( --ibrar
_______________________________________________ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-dev mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-dev
