Hi,
I need to have ANI support in my application. Does PJSIP support it?
If not then how should I go about to add it?
Thanks.
Best Regards,
Hitesh
I think you just need to parse the call_info struct and get the
remote_contact.
Mesquita
On Mon, 2008-03-10 at 10:07 -0700, logan wrote:
Hi,
I need to have ANI support in my application. Does PJSIP support it?
If not then how should I go about to add it?
Thanks.
Best Regards,
Hitesh
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
That assumes there is a SIP standard that includes this and your
gateway supports it. In my case, I added a custom header to send
extra information (DNIS in my case.) Caller ID is sent in the
call_info, but ANI is different than Caller ID and your gateway could
insert any or none of these in there.
Norman Franke
Answering Service for Directors, Inc.
www.myasd.com
On Mar 10, 2008, at 3:07 PM, João Mesquita wrote:
I think you just need to parse the call_info struct and get the
remote_contact.
Mesquita
On Mon, 2008-03-10 at 10:07 -0700, logan wrote:
Hi,
I need to have ANI support in my application. Does PJSIP support it?
If not then how should I go about to add it?
Thanks.
Best Regards,
Hitesh
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
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 Guys,
Is it possible for you to show me how a SIP message should look with
ANI and DNIS (an Ethereal trace will be great)? The thing is that I'm
not entirely sure how the SIP message should carry it. Once I know it
then it should be easy to add it.
Thanks.
Best Regards,
Hitesh
On Mon, Mar 10, 2008 at 12:55 PM, Norman Franke norman@myasd.com wrote:
That assumes there is a SIP standard that includes this and your gateway
supports it. In my case, I added a custom header to send extra information
(DNIS in my case.) Caller ID is sent in the call_info, but ANI is different
than Caller ID and your gateway could insert any or none of these in there.
Norman Franke
Answering Service for Directors, Inc.
www.myasd.com
On Mar 10, 2008, at 3:07 PM, João Mesquita wrote:
I think you just need to parse the call_info struct and get the
remote_contact.
Mesquita
On Mon, 2008-03-10 at 10:07 -0700, logan wrote:
Hi,
I need to have ANI support in my application. Does PJSIP support it?
If not then how should I go about to add it?
Thanks.
Best Regards,
Hitesh
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
I don't do ANI yet.
For Caller ID, I parse it out from call_info.remote_info. (From
pjsua_call_get_info)
Then to get the DNIS that I added via a header, I use:
pjsip_msg_find_hdr_by_name.
How to add it depends on what your server is running. I'm using
Asterisk, so it sets the Caller ID for me an I call SIPAddHeader in
my dial plan. If using PJSUA to add the header, then use:
pjsip_generic_string_hdr hdr1;
pj_str_t hvalue, hname;
pjsua_msg_data md;
pjsua_msg_data_init(&md);
hname = pj_str("X-My-Header");
pj_cstr(&hvalue, "MyValue");
pjsip_generic_string_hdr_init2(&hdr1, &hname, &hvalue);
pj_list_push_back(&md.hdr_list, &hdr1);
Norman Franke
Answering Service for Directors, Inc.
www.myasd.com
On Mar 10, 2008, at 5:39 PM, logan wrote:
Hi Guys,
Is it possible for you to show me how a SIP message should look with
ANI and DNIS (an Ethereal trace will be great)? The thing is that I'm
not entirely sure how the SIP message should carry it. Once I know it
then it should be easy to add it.
Thanks.
Best Regards,
Hitesh
On Mon, Mar 10, 2008 at 12:55 PM, Norman Franke norman@myasd.com
wrote:
That assumes there is a SIP standard that includes this and your
gateway
supports it. In my case, I added a custom header to send extra
information
(DNIS in my case.) Caller ID is sent in the call_info, but ANI is
different
than Caller ID and your gateway could insert any or none of these
in there.
Norman Franke
Answering Service for Directors, Inc.
www.myasd.com
On Mar 10, 2008, at 3:07 PM, João Mesquita wrote:
I think you just need to parse the call_info struct and get the
remote_contact.
Mesquita
On Mon, 2008-03-10 at 10:07 -0700, logan wrote:
Hi,
I need to have ANI support in my application. Does PJSIP support it?
If not then how should I go about to add it?
Thanks.
Best Regards,
Hitesh
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
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 Norman,
Thanks a lot. That clears it up for me.
Best Regards,
Hitesh
On Tue, Mar 11, 2008 at 8:00 AM, Norman Franke norman@myasd.com wrote:
I don't do ANI yet.
For Caller ID, I parse it out from call_info.remote_info. (From
pjsua_call_get_info)
Then to get the DNIS that I added via a header, I use:
pjsip_msg_find_hdr_by_name.
How to add it depends on what your server is running. I'm using Asterisk, so
it sets the Caller ID for me an I call SIPAddHeader in my dial plan. If
using PJSUA to add the header, then use:
pjsip_generic_string_hdr hdr1;
pj_str_t hvalue, hname;
pjsua_msg_data md;
pjsua_msg_data_init(&md);
hname = pj_str("X-My-Header");
pj_cstr(&hvalue, "MyValue");
pjsip_generic_string_hdr_init2(&hdr1, &hname, &hvalue);
pj_list_push_back(&md.hdr_list, &hdr1);
Norman Franke
Answering Service for Directors, Inc.
www.myasd.com
On Mar 10, 2008, at 5:39 PM, logan wrote:
Hi Guys,
Is it possible for you to show me how a SIP message should look with
ANI and DNIS (an Ethereal trace will be great)? The thing is that I'm
not entirely sure how the SIP message should carry it. Once I know it
then it should be easy to add it.
Thanks.
Best Regards,
Hitesh
On Mon, Mar 10, 2008 at 12:55 PM, Norman Franke norman@myasd.com wrote:
That assumes there is a SIP standard that includes this and your gateway
supports it. In my case, I added a custom header to send extra information
(DNIS in my case.) Caller ID is sent in the call_info, but ANI is different
than Caller ID and your gateway could insert any or none of these in there.
Norman Franke
Answering Service for Directors, Inc.
www.myasd.com
On Mar 10, 2008, at 3:07 PM, João Mesquita wrote:
I think you just need to parse the call_info struct and get the
remote_contact.
Mesquita
On Mon, 2008-03-10 at 10:07 -0700, logan wrote:
Hi,
I need to have ANI support in my application. Does PJSIP support it?
If not then how should I go about to add it?
Thanks.
Best Regards,
Hitesh
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org