Re: [Sofia-sip-devel] local sip port

2011-07-08 Thread Nick Knight
Hi,

I am doing this:

appl-nua = nua_create(appl-root,
app_callback,
appl,
/* tags as necessary ...*/
TAG_NULL());

if (appl-nua != NULL) {
nua_set_params(appl-nua,
NUTAG_AUTOACK(1),
NUTAG_URL(sip:1000@192.168.1.5:34765),
NUTAG_OUTBOUND(use-rport),
/* tags as necessary ... */
TAG_NULL());

But when I use register, it still goes out from 5060? Is this the
right place to do it?

Thanks

Nick

On Thu, Jul 7, 2011 at 7:26 PM, Michael Jerris m...@jerris.com wrote:
 NUTAG_URL()

 pass it a string of the form

 sip:user@ip:port

 in nat scenarios you can add ;maddr=
 with another ip:port

 Mike

 On Jul 7, 2011, at 12:37 PM, Nick Knight wrote:

 Hi,

 I have used sofia sip to create a TAPI bridge which works really
 nicely. But I have a niggle I can't find how to resolve.

 I am sure it is really simple, but for the life of me I cannot find
 out how to use a different local sip port (other than 5060).



--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


Re: [Sofia-sip-devel] local sip port

2011-07-08 Thread EiSl 1972
Hi Nick,

You should do it in the create:
  char url[256] = ;

  sprintf( url,
   _T(sip:%s:%d),
   m_UseInterface,
   m_UsePort );

  m_Stack.nua = nua_create( m_Stack.root,
s_HandleSofiaEvent,
m_Stack,
NUTAG_URL(url),
TAG_NULL());


On Fri, Jul 8, 2011 at 12:36 PM, Nick Knight n...@omniis.com wrote:

 Hi,

 I am doing this:

appl-nua = nua_create(appl-root,
app_callback,
appl,
/* tags as necessary ...*/
TAG_NULL());

if (appl-nua != NULL) {
nua_set_params(appl-nua,
NUTAG_AUTOACK(1),
NUTAG_URL(sip:1000@192.168.1.5:34765),
NUTAG_OUTBOUND(use-rport),
/* tags as necessary ... */
TAG_NULL());

 But when I use register, it still goes out from 5060? Is this the
 right place to do it?

 Thanks

 Nick

 On Thu, Jul 7, 2011 at 7:26 PM, Michael Jerris m...@jerris.com wrote:
  NUTAG_URL()
 
  pass it a string of the form
 
  sip:user@ip:port
 
  in nat scenarios you can add ;maddr=
  with another ip:port
 
  Mike
 
  On Jul 7, 2011, at 12:37 PM, Nick Knight wrote:
 
  Hi,
 
  I have used sofia sip to create a TAPI bridge which works really
  nicely. But I have a niggle I can't find how to resolve.
 
  I am sure it is really simple, but for the life of me I cannot find
  out how to use a different local sip port (other than 5060).
 
 


 --
 All of the data generated in your IT infrastructure is seriously valuable.
 Why? It contains a definitive record of application performance, security
 threats, fraudulent activity, and more. Splunk takes this data and makes
 sense of it. IT sense. And common sense.
 http://p.sf.net/sfu/splunk-d2d-c2
 ___
 Sofia-sip-devel mailing list
 Sofia-sip-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


Re: [Sofia-sip-devel] local sip port

2011-07-08 Thread Nick Knight
Cool thanks, working now

On Fri, Jul 8, 2011 at 1:48 PM, EiSl 1972 eisl1...@gmail.com wrote:
 Hi Nick,

 You should do it in the create:
   char url[256] = ;

   sprintf( url,
    _T(sip:%s:%d),
    m_UseInterface,
    m_UsePort );

   m_Stack.nua = nua_create( m_Stack.root,
     s_HandleSofiaEvent,
     m_Stack,
     NUTAG_URL(url),
     TAG_NULL());


 On Fri, Jul 8, 2011 at 12:36 PM, Nick Knight n...@omniis.com wrote:

 Hi,

 I am doing this:

                appl-nua = nua_create(appl-root,
                        app_callback,
                        appl,
                        /* tags as necessary ...*/
                        TAG_NULL());

                if (appl-nua != NULL) {
                        nua_set_params(appl-nua,
                                NUTAG_AUTOACK(1),
                                NUTAG_URL(sip:1000@192.168.1.5:34765),
                                NUTAG_OUTBOUND(use-rport),
                                /* tags as necessary ... */
                                TAG_NULL());

 But when I use register, it still goes out from 5060? Is this the
 right place to do it?

 Thanks

 Nick

 On Thu, Jul 7, 2011 at 7:26 PM, Michael Jerris m...@jerris.com wrote:
  NUTAG_URL()
 
  pass it a string of the form
 
  sip:user@ip:port
 
  in nat scenarios you can add ;maddr=
  with another ip:port
 
  Mike
 
  On Jul 7, 2011, at 12:37 PM, Nick Knight wrote:
 
  Hi,
 
  I have used sofia sip to create a TAPI bridge which works really
  nicely. But I have a niggle I can't find how to resolve.
 
  I am sure it is really simple, but for the life of me I cannot find
  out how to use a different local sip port (other than 5060).
 
 


 --
 All of the data generated in your IT infrastructure is seriously valuable.
 Why? It contains a definitive record of application performance, security
 threats, fraudulent activity, and more. Splunk takes this data and makes
 sense of it. IT sense. And common sense.
 http://p.sf.net/sfu/splunk-d2d-c2
 ___
 Sofia-sip-devel mailing list
 Sofia-sip-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel



--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


[Sofia-sip-devel] local sip port

2011-07-07 Thread Nick Knight
Hi,

I have used sofia sip to create a TAPI bridge which works really
nicely. But I have a niggle I can't find how to resolve.

I am sure it is really simple, but for the life of me I cannot find
out how to use a different local sip port (other than 5060).

Help

Thanks

Nick

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


Re: [Sofia-sip-devel] local sip port

2011-07-07 Thread Michael Jerris
NUTAG_URL()

pass it a string of the form

sip:user@ip:port

in nat scenarios you can add ;maddr=
with another ip:port

Mike

On Jul 7, 2011, at 12:37 PM, Nick Knight wrote:

 Hi,
 
 I have used sofia sip to create a TAPI bridge which works really
 nicely. But I have a niggle I can't find how to resolve.
 
 I am sure it is really simple, but for the life of me I cannot find
 out how to use a different local sip port (other than 5060).


--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel