[Osip] Using eXosip (or osip2) to create a B2BUA
Angus Comber
Angus.Comber at genesyslab.com
Thu May 21 13:46:28 CEST 2009
This is what I tried:
//attempting subscription to 3000
int i = eXosip_clear_authentication_info();
i = eXosip_add_authentication_info("3001 at 192.168.0.50",
"3001 at 192.168.0.50", "3001", "", "192.168.0.50");
if (i)
{
LogEvent("eXosip_add_authentication_info failed");
return -1;
}
osip_message_t *call = NULL;
int callID = -1;
osip_message_t *subcribe;
//I also tried for presence and message-summary - always received
same 489 error back
i = eXosip_subscribe_build_initial_request(&subcribe,
"sip:3000 at 192.168.0.50", "sip:3000 at 192.168.0.50",
"", "dialog", 3600);
if (i < 0)
{
LogEvent("eXosip_subscribe_build_initial_request failed");
return -1;
}
i = eXosip_subscribe_send_initial_request(subcribe);
if (i < 0)
{
LogEvent("eXosip_subscribe_send_initial_request failed");
return -1;
}
event logging:
16/05/2009 22:01:48:0952 other
16/05/2009 22:01:48:0952 Event '4xx received for SUBSCRIBE!' received
16/05/2009 22:01:48:0952 response = '489'
I tried on minisipserver -
http://www.myvoipapp.com/minisipserver/index.html. I also tried
AsteriksWin32 - http://www.asteriskwin32.com/. Received 489 error in
both cases. I am going to setup Asterisk proper to see how it behaves.
I wondered about the eXosip_subscribe_build_initial_request parameters.
Does that look ok?
Ultimately I want to use this on an Asterisk (running on linux) so main
thing is it must work for Asterisk. Would be good if it could also run
for other SIP Servers.
Angus
-----Original Message-----
From: Aymeric Moizard [mailto:jack at atosc.org]
Sent: 20 May 2009 17:21
To: Angus Comber
Cc: osip mailing list
Subject: Re: [Osip] Using eXosip (or osip2) to create a B2BUA
On Wed, 20 May 2009, Angus Comber wrote:
> Hello
>
> I have played with eXosip and can see it makes job of writing a SIP UA
> very easy.
tks! I take this as a compliment...
> My requirement is to monitor a SIP UA and on a inbound INVITE log
items
> such as Contact, From field etc. I thought I could achieve this using
> Subscribe to dialog event. But it seems most SIP servers do not
support
> this.
This feature is supposed to be implemented by client, not server!
> And I do want to the product to work with most SIP servers. In
> addition, not entirely sure if would get all information I need using
> SUBSCRIBE.
>
> So next step would be to go the whole way and write a back to back
user
> agent. Would eXosip be suitable for this? Or maybe osip? Or should
I
> really look elsewhere?
I usually don't advise to write B2BUA however it's definitly possible to
write one with eXosip2.
> If suitable any tips on how to get started would be most appreciated.
client to client feature are always more profitable to end-user:
Consider using SUBSCRIBE/NOTIFY for dialog package!
Regards,
Aymeric
> Angus
>
>
>
>
>
>
------------------------------------------------------------------------
-------------------------------------------
> CONFIDENTIALITY NOTICE: This e-mail and any files attached may contain
confidential and proprietary information of Alcatel-Lucent and/or its
affiliated entities. Access by the intended recipient only is
authorized. Any liability arising from any party acting, or refraining
from acting, on any information contained in this e-mail is hereby
excluded. If you are not the intended recipient, please notify the
sender immediately, destroy the original transmission and its
attachments and do not disclose the contents to any other person, use it
for any purpose, or store or copy the information in any medium.
Copyright in this e-mail and any attachments belongs to Alcatel-Lucent
and/or its affiliated entities.
>
> _______________________________________________
> Osip mailing list
> Osip at atosc.org
> http://www.atosc.org/mailinglist/listinfo/osip
>
-------------------------------------------------------------------------------------------------------------------
CONFIDENTIALITY NOTICE: This e-mail and any files attached may contain confidential and proprietary information of Alcatel-Lucent and/or its affiliated entities. Access by the intended recipient only is authorized. Any liability arising from any party acting, or refraining from acting, on any information contained in this e-mail is hereby excluded. If you are not the intended recipient, please notify the sender immediately, destroy the original transmission and its attachments and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Copyright in this e-mail and any attachments belongs to Alcatel-Lucent and/or its affiliated entities.
More information about the Osip
mailing list