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

From Kolmisoft Wiki
Jump to navigationJump to search
Line 65: Line 65:
===Troubleshooting===
===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.
If you hear "Congratulation from asterisk ...." message that means you forget to set '''context = mor''' in '''h323.conf''' file for your provider.

Revision as of 10:53, 31 July 2008

How to create H323 providers/gateways

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.
3. In h323.conf create section for this provider:

[nameofh323provider] 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 h323.conf

5. 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 h323.conf file for your provider.