Difference between revisions of "How to create H323 providers/devices in the MOR"

From Kolmisoft Wiki
Jump to navigationJump to search
(New page: ==How to create H323 providers== Zap and H323 does not have Realtime support in Asterisk. In order to configure them you should do following steps: 1. Create provider in GUI <br> 2. W...)
 
Line 3: Line 3:
  Zap and H323 does not have Realtime support in Asterisk. In order to configure them you should do following steps:  
  Zap and H323 does not have Realtime support in Asterisk. In order to configure them you should do following steps:  
   
   
1. Create provider in GUI <br>
# Create provider in GUI
2. Write down just created provider's device accountcode which can be found in provider's edit window in   
# Write down just created provider's device accountcode which can be found in provider's edit window in   
Device ID: field. <br>
Device ID: field.
3. '''h323.conf''' (ooh323.conf or similar) file look for context field. :
# In '''h323.conf''' create section for this provider:


;Sangoma A101 port 1 [slot:2 bus:2 span: 1]
[provider13]
switchtype=euroisdn
type=friend
context=from_pstn
host=213.244.81.141
group=0
fastStart=yes
signalling=pri_cpe
context=from_pstn
channel => 1-15
channel => 17-31


NOTE: context=from_pstn  
NOTE: context=from_pstn  

Revision as of 10:49, 31 July 2008

How to create H323 providers

Zap and H323 does not have Realtime support in Asterisk. In order to configure them you should do following steps: 

  1. Create provider in GUI
  2. Write down just created provider's device accountcode which can be found in provider's edit window in

Device ID: field.

  1. In h323.conf create section for this provider:

[provider13] type=friend host=213.244.81.141 fastStart=yes context=from_pstn

NOTE: context=from_pstn

4. In extensions.conf

[from_pstn]
exten => _X.,1,Set(CDR(ACCOUNTCODE)=X)
exten => _X.,2,Goto(mor,${EXTEN},1)

Where X(variable) is Device ID from Provider's settings, example:

Device id for providers.png

Here X == 1. (It is example! In your configuration X will have other value!)


NOTE: [from-pstn] is same context as in zapata.conf


5. Add accountcode = X to just created provider (peer/friend) in .conf file where X is the Device ID created in GUI
6. Reload Asterisk and you are ready to go!


H323 connection configuration example

Example configuration for 2 H323 gateways: MERA and QUINTUM

/etc/asterisk/h323.conf

[global]
userbyalias=no
[mera] type=friend host=23.45.67.89 fastStart=no context=from_mera
[quintum] type=friend host=192.168.10.5 fastStart=no context=from_quintum

/etc/asterisk/extensions.conf

[from_mera]
exten => _X.,1,Set(CDR(ACCOUNTCODE)=X)
exten => _X.,2,Goto(mor,${EXTEN},1)
[from_quintum] exten => _X.,1,Set(CDR(ACCOUNTCODE)=Y) exten => _X.,2,Goto(mor,${EXTEN},1)

Note accountcodes X and Y - they should be equal to devices ID in MOR GUI to tie this configuration with MOR.

Troubleshooting

If you hear "Congratulation from asterisk ...." message that means you forget to set context = mor in zapata.conf or h323.conf file for your provider.