I need to add some functions in my ser.cfg for nat
support.
I use my open(ser) as outbound proxy with two
interfaces ppp0 and eth0.
sip agents send requests to eth0.
I want my packets passing through the register and
invite blocks by fixing contact with a public ip.
All packets from private network must be sent to eth0.
Any suggestions
Harry
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com
Hi guys,
Let's meet for another *SER (i.e. openser/ser) pub event on Thursday September 24 around 18. To avoid confusion, we stay with the venue Beer Palace at Aker Brygge. (Yes, Oslo, Norway)
Suggestion for topic of the day ;-) : Ways of accessing header data and manipulate values from ser.cfg, including avps, avpops, textops... Do we need them all and isn't this really a big, complicated mess that is the result of ad-hoc needs for functionality?
People with limited travel budgets may input their opinions on the list ;-)
g-)
hello,
what's the write syntax for mhomed=yes or mhomed=1 ?
Harry
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com
All,
I'm trying to get SRV lookups to work with OpenSER 1.0.0. I've exhausted every avenue of documentation including newsgroups, various forums etc.
Using t_relay, OpenSER seems to be performing the correct DNS SRV queries and obtaining a list of hosts to try. Below are the relevant sections of my DNS zone file. We're talking UDP, and based on the priority and weights below, OpenSER should be basically doing a round-robin approach, and it seems to be.
The problem occurs when one of the hosts is not contactable. OpenSER simply stops and does not try the next host in it's list. I would have thought that for OpenSER to fully support SRV lookups, it should try each until it is successful. After all, that's a large part of the whole point of SRV records.
Does the t_relay() function have logic within itself to keep trying hosts until it gets a connection? What would be the definition a failure that would make it move onto the next host be anyway? Network failure certainly, but would a 'Not found' be considered a failure that would cause it to move on? Would anything other than an ACK be a failure?
Is there some variable I can set or some function I can call that causes t_relay() to retry all hosts in it's SRV list?
Without this feature, OpenSER's usefulness is very limited.
Help very much appreciated.
Doug
bil-pdev-3 IN A 192.168.10.4
proxy1 IN CNAME bil-pdev-3
proxy2 IN CNAME bil-pdev-3
proxy.bil.voip.com. IN NAPTR 50 50 "s" "SIPS+D2T" "" _sips._tcp.proxy.bil.voip.com.
proxy.bil.voip.com. IN NAPTR 60 60 "s" "SIP+D2U" "" _sip._udp.proxy.bil.voip.com.
proxy.bil.voip.com. IN NAPTR 70 40 "s" "SIP+D2T" "" _sip._tcp.proxy.bil.voip.com.
_sips._tcp.proxy.bil.voip.com. IN SRV 100 10 5061 proxy1.proxy.bil.voip.com.
_sips._tcp.proxy.bil.voip.com. IN SRV 100 10 5061 proxy2.proxy.bil.voip.com.
_sip._udp.proxy.bil.voip.com. IN SRV 100 10 5060 proxy1.proxy.bil.voip.com. ; This line and the next are SRV records being looked up
_sip._udp.proxy.bil.voip.com. IN SRV 100 10 5060 proxy2.proxy.bil.voip.com. ;
_sip._tcp.proxy.bil.voip.com. IN SRV 100 10 5060 proxy1.proxy.bil.voip.com.
_sip._tcp.proxy.bil.voip.com. IN SRV 100 10 5060 proxy2.proxy.bil.voip.com.
*._tcp IN SRV 0 0 0 .
*._udp IN SRV 0 0 0 .
;
Remarque : message transféré en pièce jointe.
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com
Hello Friends,
I am having openser, some sip clients registered on it.how do I have to configure openser.cfg and/or pstn.cfg.Inorder to make call from sip clients to outside number. I can call from outside number to my sip clients. but other way around is not working.
My mobile ---->-------->| PSTN GW |--------->------->|OPENSER|---------->--------->| SIP CLIENT| This is working fine
My mobile <-------<-------| PSTN GW |<-------<-------|OPENSER|<--------<----------| SIP CLIENT| This case is not working
I am not getting any log related to my outgoing call on openser , through ngrep.
Please help,
Regards
Lokesh
i'm finding it very difficult to find the entry & exit functions of the
parser & the stack
moreover anyb can plz tell me the parser initialization function name as
understanding the whole code is very tedious
thanks
nitin
I see....in this case you cannot use replace() as the public IP will all
the time be different (the public IP of nat).
Use the fix_nated_contact() function from nathelper module: if msg is
detected from behind nat, do fix_nated_contact() before fwd to *.
regards,
bogdan
harry gaillac wrote:
>In fact I meant:
>
>all private ip of the network replace with a pubil ip.
>what about substution ?
>
>if search("^Contact sip:user@private ip$)) {
> replace_all ("private ip", "public ip");
>};
>
>You understand my problem .
>
> asterisk
> ||
> Internet=[Ser/nat]==private network
>
>When ser receive REGISTER or INVITE the contact in sip
>hf would be fixed
>so asterisk would not record sip agent with AOR like
>sip:user@private ip.
>
>
>Harry
>
>--- Bogdan-Andrei Iancu <bogdan(a)voice-system.ro> a
>écrit :
>
>
>
>>Hi Harry,
>>
>>yes you can do this, but not that the change will
>>not be local visible
>>(in further script processing). the change will
>>actually apply only when
>>the message is sent out on the network.
>>
>>regards,
>>bogdan
>>
>>harry gaillac wrote:
>>
>>
>>
>>>Hello,
>>>
>>>How can I use textops module to rewrite all ip
>>>
>>>
>>private
>>
>>
>>>addresses in sip contact hf with a public ip
>>>
>>>I can't write the right regexp.
>>>
>>>if search("^Contact sip:user@private ip$)) {
>>>replace_all ("private ip", "public ip");
>>>};
>>>
>>>Harry
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>___________________________________________________________________________
>>
>>
>>
>>>Appel audio GRATUIT partout dans le monde avec le
>>>
>>>
>>nouveau Yahoo! Messenger
>>
>>
>>>Téléchargez cette version sur
>>>
>>>
>>http://fr.messenger.yahoo.com
>>
>>
>>>_______________________________________________
>>>Users mailing list
>>>Users(a)openser.org
>>>http://openser.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>>
>>>
>>>
>>
>>
>
>
>
>
>
>
>
>___________________________________________________________________________
>Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
>Téléchargez cette version sur http://fr.messenger.yahoo.com
>
>
Hello,
sorry I don't know. I never meet similar problem. Use google or try ask
on a PHP forum (e.g. http://news.php.net/)
regards
Karel
昂達 napsal(a):
> Hello Karel
> I have checked the apache log file in "/var/log/httpd/error_log"
> the file show this:
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------
> PHP Warning: PHP Startup: Unable to load dynamic library
> '/usr/lib/php/modules/classkit.so' - /usr/lib/php/modules/classkit.so:
> cannot open shared object file: Permission denied in Unknown on line 0
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Then i change classkit.so permission to "777" and change owner to "apache".
> But the error also exist.
> How to slove this problem ??
>
> Thank you so much
>
> 昂達,hunter1104(a)tw-airnet.net
> <mailto:<!--AID_FROMADDRESS_BEGIN-->hunter1104(a)tw-airnet.net<!--AID_FROMADDRESS_END-->>
> 2005-11-24
>
> ----- 收到以下來信內容 -----
> *寄件人:* Karel Kozlik <mailto:karel@iptel.org>
> *收件人:* hunter1104 <mailto:hunter1104@tw-airnet.net>
> *時 間:* 2005-11-22, 18:21:28
> *主 題:* Re: [Serusers] Problem with serweb...
>
> Hi,
> make sure if you are changeing right php.ini file. May be there is more
> php.ini files in your system in various locations or may be php is
> searching for php.ini in diferent directory.
>
> Also check log files:
> - syslog
> - apache log
> - php log
>
> for messages related to this problem.
>
> regards
> Karel
>
> 昂達 napsal(a):
> > Hello karel
> >
> > I have tried the method that you offered
> > In my phpinfo() , i haven't seen this:
> > ----------------------------------------
> > classkit support enabled
> > version 0.4
> > -----------------------------------------
> > but i have really installed classkit!
> > and put it in "/usr/lib/php/modules/"
> > i also set :
> > extension_dir = "/usr/lib/php/modules"
> > extension=classkit.so
> >
> > why it can not be loaded to php??
> >
> > regards
> > Hunter
Remarque : message transféré en pièce jointe.
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com