Your NUTAG_URL is flawed, it must represent the local-URL where your device can 
be reached, try "0.0.0.0"

Regards,
Andreas






Alexander Heinrich <alexan...@sn0wfreeze.de> schrieb am 0:46 Dienstag, 
12.November 2013:
 
Hey developers, 

I am currently working on an iPhone port of Sofia SIP. 
I already got the library compiled for the iPhone and its running. 
But now I am not getting any further. 

I used the short message example provided by gitorious for sending and 
receiving messages. 

And now I am struggling here: 
        * Connecting to a SIP Server ( in this case iptel.org) 

Here’s my code. I don’t know what is right and what isn’t 

 nua = nua_create(root, 
                     event_callback, 
                     NULL, 
                     NUTAG_REGISTRAR("sip:sfdsip:vghl9...@iptel.org:5060"),
                     SIPTAG_FROM_STR("sip:sfdsip:vghl9...@iptel.org:5060"),
                     NUTAG_M_USERNAME("sfdsip"),
                     NUTAG_URL("sip:sfdsip:vghl9...@iptel.org:5060"),
             TAG_END()); 

My Output: 
su_socket_port_init(0x1565f460, 0x10e19c) called
su_pthread_port_init(0x1565f460, 0x10e19c) called
nua: nua_create: entering
su_socket_port_init(0x15562270, 0x10e19c) called
su_pthread_port_init(0x15562270, 0x10e19c) called
nua: nua_stack_init: entering
nua: nua_stack_set_params: entering
soa_create("default", 0x15582e40, 0x155a1e20) called
soa_set_params(static::0x15679800, ...) called
soa_set_params(static::0x15679800, ...) called
nta_agent_create: initialized hash tables
nta_agent_create: initialized transports
nta_agent_create: initialized random identifiers
nta_agent_create: initialized timer
nta_agent_create: initialized resolver
tport_create(): 0x15664fc0
nta: master transport created
tport_bind_server(0x15664fc0) to */iptel.org:5060/sip
tport_bind_server(0x15664fc0): calling tport_listen for udp
tport_alloc_primary(0x15664fc0): new primary tport 0x155a1560
tport_listen(0x15664fc0): bind(pf=2 udp/[212.79.111.155]:5060): Can't assign 
requested address
tport_bind_server(0x15664fc0): calling tport_listen for tcp
tport_alloc_primary(0x15664fc0): new primary tport 0x155a1560
tport_listen(0x15664fc0): bind(pf=2 tcp/[212.79.111.155]:5060): Can't assign 
requested address
nta: bind(iptel.org:5060;transport=*): Can't assign requested address
nua: initializing SIP stack failed
nua: nua_stack_deinit: entering
sres_sofia_update(0x15661230, -1, -1)
sres_sofia_update(0x0, -1, -1)
tport_destroy(0x15664fc0)
su_kqueue_port_deinit(0x15562270) called



I tried the nua_register method, too. 
I don’t know which one I have to use for my registration at iptel.org. 
I want that every SIP call works over my SIP Account at iptel 
(Very much I’s by the way… Perhaps I am a bit egoistic 😉) 

I hope there are still some cool developers, who could help me here. 
Because this topic is really not that public. 

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to