jean-marie.goupil@telintrans.fr
2004-May-03 02:59 UTC
[Asterisk-Users] Réf.: Re: [Asterisk-Users] Asterisk with UUI support ?
right, so far, here is what I've done: I succeed in take in a new variable the UUS1 field sent with the connection request for incoming calls. It was quite simple afterall... (I just had to find where the data CMSG->Useruserdata is coming in chan_capi.c) Now I would like to know where this field is instanciated for outgoing calls in order to control this step? I am looking for that but I don't really know in which file I need to search...(apparently, it is not in chan_capi.c) Can anyone help me?>Hi Again, > >jean-marie.goupil@telintrans.fr wrote: > >>Can you put this patch on line? (I don't think it's too big...) >> >> >Sorry, i simply don't have a patch, IIRC all i did was inserting >something like > >693a694 > CONNECT_REQ_USERUSERDATA(&CMSG) = "testing"; > >When i tested this a few month ago, it resulted in something like >"<40>esting" in the message, but now i can't even get this to work ;-(. >As i said, my C knowledge is very limited, it's more like cut&past :-) > >>In my mind, the main objective is to create a special field and force >>its value in chan_capi.c and check wether it goes through asterisk or >>not... What do you think of that? >> >> >Well, i guess the easyest way would be a (new) variable inside >sterisk,ie>${UUS1}, on an incoming call it would contain the message, and on an >outgoing call it could be set to the message we would like to send. > >Sorry i can't be of more help, but if you really want this feature, i >suggest you >talk to Klaus-Peter Junghanns <kpj@junghanns.net>, i think this would be >only a few lines of code. > >Regards,>>Christoph
(History: Getting my home asterisk system set up; one land-line, multiple SIP trunks; goal is to have a wife-proof transparent phone system) Just wanted to let everyone know that I got sipgate.de working with my asterisk system; relevant settings below: --account-- Sipgate number 8001234 (change to suit yours) Password "password" --network-- External static IP routes to internal 192.168.254.204 (static) --sip.conf-- [general] port=5060 bindaddr=192.168.254.204 externip=x.x.x.x ; insert your external IP here localnet=192.168.254.204 localmask=255.255.255.0 nat=yes register => 8001234:password@sipgate.de/99049 ; 99049 incoming/Germany [friend-sipgate] username=8001234 secret=password fromuser=8001234 fromdomain=sipgate.net type=friend nat=yes dtmfmode=rfc2833 canreinvite=no --extensions.conf-- exten => _01149.,1,Dial(SIP/0${EXTEN:5}@friend-sipgate,30) exten => _01149.,2,Congestion exten => 99049,1,Wait,1 exten => 99049,2,Answer exten => 99049,3,Dial(SIP/sipura2b,30) Hope this helps someone else. The "register" allowed me to receive incoming calls, but outgoing calls failed until I set the externip and nat settings.