Registration with pjsip-lib, pjsip_regc_init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for that, I get my address !

By the way when I was trying getting my address with another method, I tried
to use *pj_sockaddr_get_addr()* function defined here
<http://www.pjsip.org/pjlib/docs/html/group__PJ__SOCK.htm#g4a95c76c409f793d8053b2f4cf04e9c9>.
I got an error in compilation, saying that this is not declared. I searched
PJSIP project for this function with eclipse and I could not find it.

Cheers,

Damien


On Fri, May 16, 2008 at 3:10 AM, Benny Prijono <bennylp at pjsip.org> wrote:

> On Thu, May 15, 2008 at 8:36 PM, Damien Herraud <d.herraud at gmail.com>
> wrote:
> > Ok sorry I got confused !
> >
> > For creating the socket, I reused the code from simpleua.c :
> >
> >         pj_sockaddr_in addr;
> >
> >         addr.sin_family = pj_AF_INET();
> >         addr.sin_addr.s_addr = 0;
> >          addr.sin_port = pj_htons(5060);
> >
> >         status = pjsip_udp_transport_start( g_endpt, &addr, NULL, 1,
> NULL);
> >         if (status != PJ_SUCCESS) {
> >             app_perror(THIS_FILE, "Unable to start UDP transport",
> status);
> >              return 1;
> >         }
> > So I can't directly use getsockname(). Can I still get my listening
> address
> > this way ?
> >
>
> If you have the SIP transport instance, you could use "local_name"
> field to get the listening address.
>
> Cheers
>  Benny
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080516/bcf412f1/attachment.html 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux