Hello,
We would like to carry some proprietary payment info in our initial INVITE message from the client to the proxy.
To do the same we are considering using one of the unused SDP fields or creating one of our own and
transporting the info within the same.
As we need to send the payment info periodically we are planning on making use of the UPDATE or re-INVITE
methods and sending an updated SDP to the proxy. At the proxy end we intend to make use of
an Asterisk server and be able to extract out the payment info field before forwarding the INVITE or UPDATE.
My question is that would this be a reasonable thing to do in PJSIP and Asterisk?
Any guidance from you would be greatly appreciated. Many thanks for your time.
Hitesh
Get the ultimate real-time chat experience - Windows Live Messenger!
http://get.live.com/en-ie/messenger/overview
I'm doing something similar, although not for payment. I add a header
to the INVITE message by setting the message data to
pjsua_call_make_call. Something like this:
hname = pj_str("X-MyHeader");
std::string listr("MyValue");
pj_cstr(&hvalue, listr.c_str());
pjsip_generic_string_hdr_init2(&hdr1, &hname, &hvalue);
pj_list_push_back(&md.hdr_list, &hdr1);
status = pjsua_call_make_call(current_acc, &dialString, 0, NULL,
&md, &id);
Then in Asterisk, just read the header with ${SIP_HEADER(X-MyHeader)}
This works quite well.
Norman Franke
ASD, Inc.
www.myasd.com
On Sep 26, 2007, at 7:57 AM, Hitesh Tewari wrote:
Hello,
We would like to carry some proprietary payment info in our initial
INVITE message from the client to the proxy.
To do the same we are considering using one of the unused SDP
fields or creating one of our own and
transporting the info within the same.
As we need to send the payment info periodically we are planning on
making use of the UPDATE or re-INVITE
methods and sending an updated SDP to the proxy. At the proxy end
we intend to make use of
an Asterisk server and be able to extract out the payment info
field before forwarding the INVITE or UPDATE.
My question is that would this be a reasonable thing to do in PJSIP
and Asterisk?
Any guidance from you would be greatly appreciated. Many thanks for
your time.
Hitesh
Get the ultimate real-time chat experience - Windows Live Messenger!
http://get.live.com/en-ie/messenger/overview
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Hi,
According RFC 2976, SIP INFO method carrying Account Balance
Information ( correct me if i am wrong ) . you can add custom module
to PJSIP to support SIP INFO method....( still SIP INFO is missing in
the FAQ, but AFAIK, there is some answer from benny in the mailing
list about how to add SIP INFO method )
AFAIK , asterisk doesn't send any account balance info since asterisk
has no billing its own. May be you need to modify also asterisk
chan_sip.c for supporting send accounts balance with SIP INFO:)
atik
atik wrote:
Hi,
According RFC 2976, SIP INFO method carrying Account Balance
Information ( correct me if i am wrong ) . you can add custom module
to PJSIP to support SIP INFO method....( still SIP INFO is missing in
the FAQ, but AFAIK, there is some answer from benny in the mailing
list about how to add SIP INFO method )
AFAIK , asterisk doesn't send any account balance info since asterisk
has no billing its own. May be you need to modify also asterisk
chan_sip.c for supporting send accounts balance with SIP INFO:)
atik
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
Benny Prijono
http://www.pjsip.org