Re: [Sofia-sip-devel] Custom Headers in 200 OK to UPDATE requests Freeswitch

2024-09-02 Thread Andreas Wehrmann
On 02.09.24 11:59, Souradeep Bera wrote: Hello, I need to pass some custom headers from Freeswitch in the 200 OK response sent for an incoming UPDATE request. But I think the sofia sip stack is automatically sending the response, not even allowing me to add any custom headers from mod_sofia. I

Re: [Sofia-sip-devel] Reading custom SIP headers

2016-08-29 Thread Andreas Wehrmann
On 08/29/2016 08:32 AM, John Nash wrote: > I am looking for some way to read value of a custom SIP header (starting > with X-). I have access to object ssip_t. Which function I can use to > extract custom SIP header and use its value? > > > >

[Sofia-sip-devel] [FIX] crash when querying adapter addresses failed (Windows)

2016-02-17 Thread Andreas Wehrmann
During long and heavy testruns I encountered seemingly random crashes running on Windows 7. I tracked the problem down to the function static int win_localinfo(su_localinfo_t const hints[1], su_localinfo_t **rresult); which resides in su_localinfo.c. If the call to GetAdapterAddresses() fails,

Re: [Sofia-sip-devel] nua_unsubscribe

2015-06-01 Thread Andreas Wehrmann
I've never used the subscription mechanism before, but you might try to use NUTAG_M_USERNAME(x). Regards, Andreas On 06/01/2015 11:41 PM, Johannes Bauer wrote: > Hi everybody! > > Fisrt I want to thank you developers for your excelent work on this SIP > framework, But as you sure can guess, I h

[Sofia-sip-devel] nua_handle_has_register() not working

2014-10-01 Thread Andreas Wehrmann
Hi! I discovered, that nua_handle_has_register() always returns 0 even when the handle has been used with nua_register()/nua_unregister(). From what I can see in the code, the same goes for nua_handle_has_subscribe() but not for nua_handle_has_invite(). It looks as if the call to nua_stack_set_

[Sofia-sip-devel] Session timer stops when receiving '491 Request pending'

2014-09-23 Thread Andreas Wehrmann
Subject says it all. I ran into an issue with a buggy Asterisk where the re-INVITE (refresh) from my app would overlap with a re-INVITE from the Asterisk. Both parties respond with '491 Request pending' and that's it. The bug in Asterisk is that it never actually retries the re-INVITE (yes, it's

[Sofia-sip-devel] Request specific handle?

2014-09-09 Thread Andreas Wehrmann
Hi! Is there a way to somehow provide an outgoing request with a context/magic specific to that request? In my case, the user application shall be able to send SIP INFO requests inside an active call. The application provides a "request_status" callback in which the final response of the reques

Re: [Sofia-sip-devel] How to change media mode in active call?

2014-09-04 Thread Andreas Wehrmann
On 09/04/2014 03:19 PM, Michael Jerris wrote: > You can do the actual sdp structure as well. For sure you will need the m > lines in the sdp, if you do the structure, it can be sparse just like the > string. > > I rewrote my function to create the SDP as string and supply it to NUA using USER

[Sofia-sip-devel] Typo in soa_tag.h

2014-09-04 Thread Andreas Wehrmann
Hi! I just came across a problem that prevents the use of SOATAG_LOCAL_SDP_STR_REF. In soa_tag.h this SOFIAPUBVAR tag_typedef_t soatag_session_sdp_str_ref; should be SOFIAPUBVAR tag_typedef_t soatag_local_sdp_str_ref; MSVC complained about the undeclared identifier 'soatag_local_sdp_str_ref'

Re: [Sofia-sip-devel] How to change media mode in active call?

2014-09-04 Thread Andreas Wehrmann
t once. Is there a more elegant way than USER_SDP_STR, or is it the recommended way to go? Regards, Andreas 03.09.2014, 15:23, "Michael Jerris" : >  I know it works with USER_SDP_STR, what exactly is your call to > update/invite?  are you doing ACTIVE_AUDIO(1) ? > >  On S

Re: [Sofia-sip-devel] How to change media mode in active call?

2014-09-03 Thread Andreas Wehrmann
On 09/03/2014 03:13 PM, Andreas Wehrmann wrote: > Hi! > > I'm somewhat at a loss here. > I'm in a SIP call that I made or accepted with one of > a=[inactive|recvonly|sendonly|sendrecv] in the SDP. > There is only one media (audio). > When I make or answer a call

[Sofia-sip-devel] How to change media mode in active call?

2014-09-03 Thread Andreas Wehrmann
Hi! I'm somewhat at a loss here. I'm in a SIP call that I made or accepted with one of a=[inactive|recvonly|sendonly|sendrecv] in the SDP. There is only one media (audio). When I make or answer a call, I create the complete SDP and provide it to nua with SOATAG_USER_SDP_STR which is working just

Re: [Sofia-sip-devel] any way to bind client to specific interface(eth/wlan).

2014-08-02 Thread Andreas Wehrmann
On 08/02/2014 02:08 AM, Luca Olivetti wrote: > El 02/08/14 00:28, Nikos Balkanas ha escrit: > >> Oh, and the other patches are needed too >> >> http://code.google.com/p/danube-voip/source/browse/sofia-sip/patches/ >> >> Bye >> -- >> Luca >> >> >> ​Any reason why these wer

Re: [Sofia-sip-devel] any way to bind client to specific interface(eth/wlan).

2014-08-01 Thread Andreas Wehrmann
On 08/01/2014 08:17 AM, Saiyam Doshi wrote: > Hello, > > In nua_create(), providing NUATAG_URL("sip:*:*") is taking 127.0.0.1 as > client iP, if i call nua_create prior to any interface available(Ethernet an > Wlan both are down). > > After this even if i up ethernet and it gets ip, all request

Re: [Sofia-sip-devel] Example compilation

2014-07-21 Thread Andreas Wehrmann
o assume that oper_ctx_[u,t] is the same as operation. These examples > have lots of errors... > > > On Mon, Jul 21, 2014 at 8:16 AM, Andreas Wehrmann > wrote: > >> On 07/21/2014 05:06 AM, Nikos Balkanas wrote: >>> I'm going through the examples in the site. >

Re: [Sofia-sip-devel] Example compilation

2014-07-20 Thread Andreas Wehrmann
On 07/21/2014 05:06 AM, Nikos Balkanas wrote: > I'm going through the examples in the site. > > In app_i_invite it states: > > nua_respond(nh, 200, "OK", SOA_USER_SDP(magic->sdp), TAG_END()); > > Looking at the nua_respond documentation, SOA_USER_SDP is a tag, that is > not defined and gcc errs.

Re: [Sofia-sip-devel] Crash when system time jumps

2014-06-12 Thread Andreas Wehrmann
On 06/12/2014 02:30 PM, Michael Jerris wrote: > + /* check it there are still things queued, if there are, that means > everything scheduled is > 15 days in the future */ > +/* in this case, we had a large time shift, we should schedule for 15 > days in the future (which is probably st

Re: [Sofia-sip-devel] ACK(SDP) is not send by UDP

2014-02-23 Thread Andreas Wehrmann
Could you provide an example code to reproduce the problem? I cannot promise to find a solution, but I would like to take a look at the code. Regards, Andreas On 02/19/2014 08:05 PM, Guilherme César Pilon wrote: > Hello, > > I'm using sofia-sip-1.12.11 and i'm having o problem when i need to sen

Re: [Sofia-sip-devel] nua_invite to IP Adress (DNS problem)

2013-11-27 Thread Andreas Wehrmann
alexan...@sn0wfreeze.de>> wrote: > > > > I thought that, too > > > > So I downloaded a SIP App from the Appstore and tried to call the Mac App > > with > > the SIP App and it worked. > > > > The Mac App is downloaded from the web. It’s called Jitsi. > >

Re: [Sofia-sip-devel] nua_invite to IP Adress (DNS problem)

2013-11-27 Thread Andreas Wehrmann
exander Heinrich On 27 Nov 2013, at 09:01, Andreas Wehrmann wrote: Actually, this looks ok to me. >You send an INVITE and get a response of 100 - Trying which is perfectly >normal. >Whether the peer you're calling sends 180 - Ringing or not is up to him since >this is optiona

Re: [Sofia-sip-devel] nua_invite to IP Adress (DNS problem)

2013-11-27 Thread Andreas Wehrmann
Actually, this looks ok to me. You send an INVITE and get a response of 100 - Trying which is perfectly normal. Whether the peer you're calling sends 180 - Ringing or not is up to him since this is optional. The log "not found by name" should not worry you, I'm not entirely sure what Sofia is tr

Re: [Sofia-sip-devel] nua_invite to IP Adress (DNS problem)

2013-11-25 Thread Andreas Wehrmann
On 11/25/2013 12:20 AM, Alexander Heinrich wrote: > Good evening dear developers, > > I’m currently stuck in another problem. > I am able to retrieve incoming calls. So my nua_create should be right. > > In my nua_invite I’m trying to connect to an IP Address directly. I am using > IP4, but the c

[Sofia-sip-devel] Fwd: Re: Sending nua_invite - DNS Error 503

2013-11-19 Thread Andreas Wehrmann
Original Message Subject:Re: [Sofia-sip-devel] Sending nua_invite - DNS Error 503 Date: Tue, 19 Nov 2013 21:19:37 +0100 From: Alexander Heinrich To: andreas_wehrm...@yahoo.at Hey Andreas, you were right but how can I disable the DNS Lookup in Sofia Sip? Do y

Re: [Sofia-sip-devel] status of sofia sip

2013-11-18 Thread Andreas Wehrmann
On 11/18/2013 02:15 PM, Michael Jerris wrote: > Pekka is no longer at Nokia. I think I am the only one with commit access to > the gitorious tree still around and responding at all. I don't have the > ability to roll releases. There are still plenty of people working on > sofia-sip from what

Re: [Sofia-sip-devel] status of sofia sip

2013-11-18 Thread Andreas Wehrmann
On 11/18/2013 10:04 AM, Dave Horton wrote: > Hi Andreas - > > Yes, I went back and read your question. Looks like it never really got > answered, and then sidetracked into a specific bug fix discussion. And while > it would be great to get fixes from Freeswitch back in, that clearly isn't > h

Re: [Sofia-sip-devel] status of sofia sip

2013-11-17 Thread Andreas Wehrmann
On 11/17/2013 04:53 PM, Dave Horton wrote: > I've been using sofia sip quite happily for a few years in various projects, > but I am wondering about whether it is still being actively supported. I'm > heading into a new project where I will need a lot of 3GPP headers that don't > appear to hav

Re: [Sofia-sip-devel] Sending nua_invite - DNS Error 503

2013-11-17 Thread Andreas Wehrmann
On 11/18/2013 12:12 AM, Huang, Kun-Yao wrote: > Try binding to a specific interface instead of 0.0.0.0. Sofia SIP chooses an > arbitrary interface for out-going requests when you bind to 0.0.0.0 > > http://www.mail-archive.com/sofia-sip-devel@lists.sourceforge.net/msg04427.html > http://www.mail-

Re: [Sofia-sip-devel] Starting with Sofia SIP(registrating)

2013-11-12 Thread Andreas Wehrmann
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 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 c

Re: [Sofia-sip-devel] Cant using nua_invite to initial call.

2013-08-09 Thread Andreas Wehrmann
On 08/09/2013 11:21 AM, ThanhTruong wrote: > Hi , > > this is full loglevel for all and set to 9(max) I think. > > in this stack, i can receive invite, send/receive register, respond of > register. > > :( > But with invite, it is not live nua_register, nua_subscribe so, i am getting > this issue

Re: [Sofia-sip-devel] Cant using nua_invite to initial call.

2013-08-09 Thread Andreas Wehrmann
On 08/09/2013 10:57 AM, ThanhTruong wrote: > Hi sir, > > When I tried with your code, change to my sdp and get this log from > nua_invite. > nua_params.c:480 nua_stack_set_params() nua: nua_stack_set_params: entering > soa.c:282 soa_clone() soa_clone(static::0xe9bd050, 0xe490080, 0x2b52284121d0)

Re: [Sofia-sip-devel] Cant using nua_invite to initial call.

2013-08-09 Thread Andreas Wehrmann
have any example code to send invite > to one sip server ? (only how to use nua_invite to send one INVITE message to > one server) > > Thanks, > > > ThanhTruong > > > ____ > From: Andreas Wehrmann > To: ThanhTruong > Cc: "

Re: [Sofia-sip-devel] Cant using nua_invite to initial call.

2013-08-09 Thread Andreas Wehrmann
On 08/09/2013 09:48 AM, ThanhTruong wrote: > hi, > > I have enabled log level and see some log but cant know where is my issue ? > > nua_common.c:108 nh_create_handle() nua: nh_create_handle: entering > nua.c:633 nua_invite() nua: nua_invite: entering > nua_stack.c:529 nua_signal() nua(0x2b52184f5

Re: [Sofia-sip-devel] Cant using nua_invite to initial call.

2013-08-08 Thread Andreas Wehrmann
On 08/09/2013 06:32 AM, ThanhTruong wrote: > Hi all, > > I am back and have a stupid question that i cant send invite to SIP server > using nua_invite. > > i have tried : > > nua_invite (nh, NUTAG_URL (nua_url), > SOATAG_ADDRESS("127.0.0.1:8000"), > NUTAG_EARLY_MEDIA (1)

Re: [Sofia-sip-devel] sip register message construct

2013-06-13 Thread Andreas Wehrmann
On 06/13/2013 10:09 AM, Andreas Wehrmann wrote: > Hey there! > > Nothing to do with the problem but I just wanted to say that you can > simplify/strengthen > the code for building the auth string by doing it like this code: > > "sip" is of type , which is del

Re: [Sofia-sip-devel] sip register message construct

2013-06-13 Thread Andreas Wehrmann
On 06/13/2013 09:34 AM, ThanhTruong wrote: > > For handling register authentication in callback I used: > > if(evt == nua_r_register && (status == 401 || status == 407)) >{ > if (sip && sip->sip_www_authenticate && > sip->sip_www_authenticate->au_params

Re: [Sofia-sip-devel] How to get default SIP_FROM host

2012-09-02 Thread Andreas Wehrmann
On 09/03/2012 08:19 AM, Andreas Wehrmann wrote: > Hello everbody! > > If you create an outgoing request and don't provide a SIP FROM user, > sofia inserts one for you. > > Now, in my case I want to make an outgoing call and provide just the > user part (the calling number

[Sofia-sip-devel] How to get default SIP_FROM host

2012-09-02 Thread Andreas Wehrmann
Or is there a way to query the default host sofia would use? I tried to create a FROM user using the URI calling-number@0.0.0.0 hoping that sofia would replace the dummy address with the real address (like it does in SDP processing) but it wouldn't work. Regards, Andreas -- Dipl.-Ing. (F