Hello open(ser) asterisk users
Here is what i expect to do :
Asterisk: registrar with public ip port=5050 open(ser): outbound proxy with public ip port=5060
Asterisk don't support IM and presence so i want to use SER because of it's a good proxy:
I want user agents behind nat send registration to asterisk because of it's an ipbx :-)
Look at this diagram when user agent behind nat send REGISTER to ser the contact field in sip header has a private address which one is forward to asterisk for registration.
When user agent are registered in asterisk AOR is sip:user@private ip so asterisk query "sip:user@private" behind nat (not possible).
How a session between two user agents behind nat could keep in the path
|register | | register | agent1 asterisk| |ser/nat box | | | 200 OK | | 200 OK | agent2
One box --------------------------- | ---------------- | | | asterisk pbx | | | ---------------- | | || | | ---------- ---------- | | SER |====|NAT box |==== private network | ---------- ---------- ---------------------------
Send me your questions if you don't understand what i expect to do .
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 Harry,
Am Dienstag, den 22.11.2005, 15:23 +0100 schrieb harry gaillac:
Look at this diagram when user agent behind nat send REGISTER to ser the contact field in sip header has a private address which one is forward to asterisk for registration.
When user agent are registered in asterisk AOR is sip:user@private ip so asterisk query "sip:user@private" behind nat (not possible).
You lost me here. Was that a question or a statement?
I might not be able to help, since my SER usage is totally diffent, but let me see if I got this right: - You want the SER to forward REGISTER messages to the Asterisk. - The user agents use private IP addresses. - You want the SER to perform NAT? (I'm guessing here)
How a session between two user agents behind nat could keep in the path
Since you a talking of a session, do you talk of calls now?
Could you perhaps post the parts of ser.cfg that deal with register requests?
Regards, Stefan
You lost me here. Was that a question or a statement?
I might not be able to help, since my SER usage is totally diffent, but let me see if I got this right:
- You want the SER to forward REGISTER messages to
the Asterisk.
- The user agents use private IP addresses.
- You want the SER to perform NAT? (I'm guessing
here)
How a session between two user agents behind nat
could
keep in the path
That is the question
Since you a talking of a session, do you talk of calls now?
yes
Could you perhaps post the parts of ser.cfg that deal with register requests?
I added this in register block rewritehostport("nxs.yi.org:5050"); t_relay_to_udp("nxs.yi.org","5050"); 5050 = asterisk port
Regards, Stefan
Serusers mailing list Serusers@iptel.org http://mail.iptel.org/mailman/listinfo/serusers
___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com
Let me get this straight
All you are doing is registering the devices with SER (below you have mentioned asterisk, and then you say they goto ser) Once they are registered to ser you wish to send them to asterisk...is this correct
If so, this does not seem to hard, NAT ius dealt with in ser, I use mediaproxy, others may use nathelper, so before you send to asterisk take care of NAT issues in SER and then send to asterisk.
Paste config, in pastebin, and also a ngrep of the call debug.
Iqbal
harry gaillac wrote:
Hello open(ser) asterisk users
Here is what i expect to do :
Asterisk: registrar with public ip port=5050 open(ser): outbound proxy with public ip port=5060
Asterisk don't support IM and presence so i want to use SER because of it's a good proxy:
I want user agents behind nat send registration to asterisk because of it's an ipbx :-)
Look at this diagram when user agent behind nat send REGISTER to ser the contact field in sip header has a private address which one is forward to asterisk for registration.
When user agent are registered in asterisk AOR is sip:user@private ip so asterisk query "sip:user@private" behind nat (not possible).
How a session between two user agents behind nat could keep in the path
|register | | register | agent1
asterisk| |ser/nat box | | | 200 OK | | 200 OK | agent2
One box --------------------------- | ---------------- | | | asterisk pbx | | | ---------------- | | || | | ---------- ---------- | | SER |====|NAT box |==== private network | ---------- ---------- ---------------------------
Send me your questions if you don't understand what i expect to do .
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@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
.
Let me get this straight
All you are doing is registering the devices with SER (below you have mentioned asterisk, and then you say they goto ser)
No to asterisk. Asterisk should handle INVITE, REGISTER via ser. SER should handle IM/presence
Once they are registered to ser you wish to send them to asterisk...is this correct
If so, this does not seem to hard, NAT ius dealt with in ser, I use mediaproxy, others may use nathelper, so before you send to asterisk take care of NAT issues in SER and then send to asterisk.
Paste config, in pastebin, and also a ngrep of the call debug.
Iqbal
harry gaillac wrote:
Hello open(ser) asterisk users
Here is what i expect to do :
Asterisk: registrar with public ip port=5050 open(ser): outbound proxy with public ip port=5060
Asterisk don't support IM and presence so i want to use SER because of it's a good proxy:
I want user agents behind nat send registration to asterisk because of it's an ipbx :-)
Look at this diagram when user agent behind nat
send
REGISTER to ser the contact field in sip header has a private
address
which one is forward to asterisk for registration.
When user agent are registered in asterisk AOR is sip:user@private ip so asterisk query "sip:user@private" behind nat (not possible).
How a session between two user agents behind nat
could
keep in the path
|register | | register |
agent1
asterisk| |ser/nat box | | | 200 OK | | 200 OK |
agent2
One box --------------------------- | ---------------- | | | asterisk pbx | | | ---------------- | | || | | ---------- ---------- | | SER |====|NAT box |==== private
network
| ---------- ---------- ---------------------------
Send me your questions if you don't understand what
i
expect to do .
Harry
Appel audio GRATUIT partout dans le monde avec le
nouveau Yahoo! Messenger
Téléchargez cette version sur
Users mailing list Users@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
okay, so ALL your users are registering to asterisk...is that correct.
If so the problem is howto accept users from behind a NAT into asterisk, or am I confusing things further.
If the above are true, where is SER in this, or are users hitting SER and you are sending the REGISTER from ser into asterisk.
Iqbal
harry gaillac wrote:
Let me get this straight
All you are doing is registering the devices with SER (below you have mentioned asterisk, and then you say they goto ser)
No to asterisk. Asterisk should handle INVITE, REGISTER via ser. SER should handle IM/presence
Once they are registered to ser you wish to send them to asterisk...is this correct
If so, this does not seem to hard, NAT ius dealt with in ser, I use mediaproxy, others may use nathelper, so before you send to asterisk take care of NAT issues in SER and then send to asterisk.
Paste config, in pastebin, and also a ngrep of the call debug.
Iqbal
harry gaillac wrote:
Hello open(ser) asterisk users
Here is what i expect to do :
Asterisk: registrar with public ip port=5050 open(ser): outbound proxy with public ip port=5060
Asterisk don't support IM and presence so i want to use SER because of it's a good proxy:
I want user agents behind nat send registration to asterisk because of it's an ipbx :-)
Look at this diagram when user agent behind nat
send
REGISTER to ser the contact field in sip header has a private
address
which one is forward to asterisk for registration.
When user agent are registered in asterisk AOR is sip:user@private ip so asterisk query "sip:user@private" behind nat (not possible).
How a session between two user agents behind nat
could
keep in the path
|register | | register |
agent1
asterisk| |ser/nat box | | | 200 OK | | 200 OK |
agent2
One box
| ---------------- | | | asterisk pbx | | | ---------------- | | || | | ---------- ---------- | | SER |====|NAT box |==== private
network
| ---------- ----------
Send me your questions if you don't understand what
i
expect to do .
Harry
Appel audio GRATUIT partout dans le monde avec le
nouveau Yahoo! Messenger
Téléchargez cette version sur
Users mailing list Users@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
.
okay, so ALL your users are registering to asterisk...is that correct.
Correct via ser as outbound sip proxy
If so the problem is howto accept users from behind a NAT into asterisk, or am I confusing things further.
the problem is in contact field. when user agents send register we have in sip hf Contact sip:user@privateip So asterisk store this AOR and try to contact agent via nat box instead of SER
If the above are true, where is SER in this, or are users hitting SER and you are sending the REGISTER from ser into asterisk.
SER is an outbound sip proxy which handle IM presence nat
Harry
One box
| ---------------- | | | asterisk pbx | | | ---------------- | | || | | ---------- ---------- | | SER |====|NAT box |==== private | ---------- ---------- |--------------------------
___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com
Okay almost there :-)
So UA ---> asterisk ---> SER ---> UA
is that it
harry gaillac wrote:
okay, so ALL your users are registering to asterisk...is that correct.
Correct via ser as outbound sip proxy
If so the problem is howto accept users from behind a NAT into asterisk, or am I confusing things further.
the problem is in contact field. when user agents send register we have in sip hf Contact sip:user@privateip So asterisk store this AOR and try to contact agent via nat box instead of SER
If the above are true, where is SER in this, or are users hitting SER and you are sending the REGISTER from ser into asterisk.
SER is an outbound sip proxy which handle IM presence nat
Harry
One box
| ---------------- | | | asterisk pbx | | | ---------------- | | || | | ---------- ---------- | | SER |====|NAT box |==== private | ---------- ---------- |--------------------------
___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com
.
Just one thing,
Register the Uas to asterisk also as outbound proxy. Asterisk will register to SER all the Uas.
We use this design:
Ua -->Asterisk(NAT)--> Ser(public Ip)--> where do you want to go
It works perfectly.
Maybe I miss something?
Olivier
-----Message d'origine----- De : serusers-bounces@iptel.org [mailto:serusers-bounces@iptel.org] De la part de Iqbal Envoyé : mardi 22 novembre 2005 16:52 À : harry gaillac Cc : serusers@iptel.org; asterisk-users@lists.digium.com; users@openser.org Objet : [Serusers] Re: [Users] open letter
Okay almost there :-)
So UA ---> asterisk ---> SER ---> UA
is that it
harry gaillac wrote:
okay, so ALL your users are registering to asterisk...is that correct.
Correct via ser as outbound sip proxy
If so the problem is howto accept users from behind a NAT into asterisk, or am I confusing things further.
the problem is in contact field. when user agents send register we have in sip hf Contact sip:user@privateip So asterisk store this AOR and try to contact agent via nat box instead of SER
If the above are true, where is SER in this, or are users hitting SER and you are sending the REGISTER from ser into asterisk.
SER is an outbound sip proxy which handle IM presence nat
Harry
One box
| ---------------- | | | asterisk pbx | | | ---------------- | | || | | ---------- ---------- | | SER |====|NAT box |==== private | ---------- ---------- |--------------------------
_______________________________________________________________________ ____ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com
.
_______________________________________________ Serusers mailing list Serusers@iptel.org http://mail.iptel.org/mailman/listinfo/serusers
I do it in reverse do all registration in SER since that is was it was designed for, and then pass to asterisk, and in 1.2 asterisk it has a slew of new features to help with SIP methods, having said that I havent got round to testing any :-)
iqbal
Olivier Taylor wrote:
Just one thing,
Register the Uas to asterisk also as outbound proxy. Asterisk will register to SER all the Uas.
We use this design:
Ua -->Asterisk(NAT)--> Ser(public Ip)--> where do you want to go
It works perfectly.
Maybe I miss something?
Olivier
-----Message d'origine----- De : serusers-bounces@iptel.org [mailto:serusers-bounces@iptel.org] De la part de Iqbal Envoyé : mardi 22 novembre 2005 16:52 À : harry gaillac Cc : serusers@iptel.org; asterisk-users@lists.digium.com; users@openser.org Objet : [Serusers] Re: [Users] open letter
Okay almost there :-)
So UA ---> asterisk ---> SER ---> UA
is that it
harry gaillac wrote:
okay, so ALL your users are registering to asterisk...is that correct.
Correct via ser as outbound sip proxy
If so the problem is howto accept users from behind a NAT into asterisk, or am I confusing things further.
the problem is in contact field. when user agents send register we have in sip hf Contact sip:user@privateip So asterisk store this AOR and try to contact agent via nat box instead of SER
If the above are true, where is SER in this, or are users hitting SER and you are sending the REGISTER from ser into asterisk.
SER is an outbound sip proxy which handle IM presence nat
Harry
One box
| ---------------- | | | asterisk pbx | | | ---------------- | | || | | ---------- ---------- | | SER |====|NAT box |==== private | ---------- ---------- |--------------------------
_______________________________________________________________________ ____ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com
.
Serusers mailing list Serusers@iptel.org http://mail.iptel.org/mailman/listinfo/serusers
.
Iqbal, could you post the relevant part of your ser cfg which deals with passing the registrations onto asterisk?
Everytime I try it, the IP asterisk registers with is the UA's natted IP rather than the SER machine's IP, which isn't useful to me.
I've been grappling with this very same problem for a long time now. Any help would be terribly appreciated.
kyle.
Iqbal wrote:
I do it in reverse do all registration in SER since that is was it was designed for, and then pass to asterisk, and in 1.2 asterisk it has a slew of new features to help with SIP methods, having said that I havent got round to testing any :-)
iqbal
Olivier Taylor wrote:
Just one thing,
Register the Uas to asterisk also as outbound proxy. Asterisk will register to SER all the Uas.
We use this design:
Ua -->Asterisk(NAT)--> Ser(public Ip)--> where do you want to go
It works perfectly.
Maybe I miss something?
Olivier
-----Message d'origine----- De : serusers-bounces@iptel.org [mailto:serusers-bounces@lists.iptel.org] De la part de Iqbal Envoyé : mardi 22 novembre 2005 16:52 À : harry gaillac Cc : serusers@lists.iptel.org; asterisk-users@lists.digium.com; users@openser.org Objet : [Serusers] Re: [Users] open letter
Okay almost there :-)
So UA ---> asterisk ---> SER ---> UA
is that it
harry gaillac wrote:
okay, so ALL your users are registering to asterisk...is that correct.
Correct via ser as outbound sip proxy
If so the problem is howto accept users from behind a NAT into asterisk, or am I confusing things further.
the problem is in contact field. when user agents send register we have in sip hf Contact sip:user@privateip So asterisk store this AOR and try to contact agent via nat box instead of SER
If the above are true, where is SER in this, or are users hitting SER and you are sending the REGISTER from ser into asterisk.
SER is an outbound sip proxy which handle IM presence nat
Harry
> One box > --------------------------- > | ---------------- | > | | asterisk pbx | | | ---------------- | > | || | > | ---------- ---------- > | | SER |====|NAT box |==== private > | ---------- ---------- |-------------------------- > >
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com
.
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
.
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
hello, Give me your price to enable my diagram ASAP --- harry gaillac gaillacharry@yahoo.fr a écrit :
Hello open(ser) asterisk users
Here is what i expect to do :
Asterisk: registrar with public ip port=5050 open(ser): outbound proxy with public ip port=5060
Asterisk don't support IM and presence so i want to use SER because of it's a good proxy:
I want user agents behind nat send registration to asterisk because of it's an ipbx :-)
Look at this diagram when user agent behind nat send REGISTER to ser the contact field in sip header has a private address which one is forward to asterisk for registration.
When user agent are registered in asterisk AOR is sip:user@private ip so asterisk query "sip:user@private" behind nat (not possible).
How a session between two user agents behind nat could keep in the path
|register | | register |
agent1 asterisk| |ser/nat box | | | 200 OK | | 200 OK | agent2
One box --------------------------- | ---------------- | | | asterisk pbx | | | ---------------- | | || | | ---------- ---------- | | SER |====|NAT box |==== private network | ---------- ---------- ---------------------------
Send me your questions if you don't understand what i expect to do .
Harry
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com
Serusers mailing list Serusers@iptel.org http://mail.iptel.org/mailman/listinfo/serusers
___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com
Sounds to me as what you want to do require 'a few' code changes to Asterisk. Maybe I am wrong, but this might take some work to get right.
Jan harry gaillac wrote:
Hello open(ser) asterisk users
Here is what i expect to do :
Asterisk: registrar with public ip port=5050 open(ser): outbound proxy with public ip port=5060
Asterisk don't support IM and presence so i want to use SER because of it's a good proxy:
I want user agents behind nat send registration to asterisk because of it's an ipbx :-)
Look at this diagram when user agent behind nat send REGISTER to ser the contact field in sip header has a private address which one is forward to asterisk for registration.
When user agent are registered in asterisk AOR is sip:user@private ip so asterisk query "sip:user@private" behind nat (not possible).
How a session between two user agents behind nat could keep in the path
|register | | register | agent1
asterisk| |ser/nat box | | | 200 OK | | 200 OK | agent2
One box --------------------------- | ---------------- | | | asterisk pbx | | | ---------------- | | || | | ---------- ---------- | | SER |====|NAT box |==== private network | ---------- ---------- ---------------------------
Send me your questions if you don't understand what i expect to do .
Harry
___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com _______________________________________________ --Bandwidth and Colocation sponsored by Easynews.com --
Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Could you tell me more please ?
You understand than with host=dynamic in sip.conf asterisk use contact field in SIP HF
Regards Harry
--- "janvb@caselaboratories.com" janvb@caselaboratories.com a écrit :
Sounds to me as what you want to do require 'a few' code changes to Asterisk. Maybe I am wrong, but this might take some work to get right.
Jan harry gaillac wrote:
Hello open(ser) asterisk users
Here is what i expect to do :
Asterisk: registrar with public ip port=5050 open(ser): outbound proxy with public ip port=5060
Asterisk don't support IM and presence so i want to use SER because of it's a good proxy:
I want user agents behind nat send registration to asterisk because of it's an ipbx :-)
Look at this diagram when user agent behind nat
send
REGISTER to ser the contact field in sip header has a private
address
which one is forward to asterisk for registration.
When user agent are registered in asterisk AOR is sip:user@private ip so asterisk query "sip:user@private" behind nat (not possible).
How a session between two user agents behind nat
could
keep in the path
|register | | register |
agent1
asterisk| |ser/nat box | | | 200 OK | | 200 OK |
agent2
One box --------------------------- | ---------------- | | | asterisk pbx | | | ---------------- | | || | | ---------- ---------- | | SER |====|NAT box |==== private
network
| ---------- ---------- ---------------------------
Send me your questions if you don't understand what
i
expect to do .
Harry
Appel audio GRATUIT partout dans le monde avec le
nouveau Yahoo! Messenger
Téléchargez cette version sur
--Bandwidth and Colocation sponsored by
Easynews.com --
Asterisk-Users mailing list Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
--Bandwidth and Colocation sponsored by Easynews.com
Asterisk-Users mailing list Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com