Not able to get Video between 2 Asterisk Server Trunk setup

Hi,

I’m trying to configure trunk between tow server for video call which is not working.

Trunk code in sip.conf, in server A and server B is as below.

####Server-A sip.conf at the end of file.
[trunk_two]
type=friend
context=from-trunk
context=default
;nat=no
canreinvite=yes
host=172.16.16.250
insecure=invite
videosupport=yes
;disallow=all
;allow=ulaw
allow=h264
allow=g729
allow=h265
allow=vp8

####Server-B sip.conf at the end of file.

[trunk_one]
type=friend
context=from-trunk
context=default
nat=no
canreinvite=yes
host=172.16.16.21
insecure=invite
videosupport=yes
;disallow=all
;allow=ulaw
allow=h264
allow=g729
allow=h265
allow=vp8

Can some one help me, how to enable video call between two servers.

Rgards
Vasant B A

Start over with chan_pjsip. chan_sip is no longer in the next release of Asterisk. Also you have various settings that don’t gain you anything and make you less secure. Specifically change friend to peer and delete insecure.

Having G.729 as your only audio codec makes no sense, if you are going to use video. The only reason for using it is to save bandwidth, but the video will be the bandwidth hog.

Always start with disalllow=all.

Only one context line wll be used.

As Asterisk cannot transcode video, you would be better off choosing just one video codec.

We’d need the logs to understand what is not working.

Hi I changed the config file, But even not able to connect between two server call drops as soon received the call and from other it’s not getting connected.

Server A sip.conf
[trunk_two]
type=peer
context=default
;nat=no
canreinvite=yes
host=172.16.16.250
;insecure=invite
videosupport=yes
disallow=all
;allow=alaw
allow=h264
allow=g729
;allow=h265
;allow=vp8

Server A users.conf
[4001] ; This will be the legacy SIP client
type=peer
username=4001
host=dynamic
secret=124001
context=default
videosupport=yes
allow=!all,alaw,h263,h264,vp8

[4002] ; This will be the legacy SIP client
type=peer
username=4002
host=dynamic
secret=124001
context=default
videosupport=yes
allow=!all,alaw,h263,h264,vp8

Server - A log file
Mar 3 16:11:29] WARNING[8310][C-00000001] app_dial.c: Unable to create channel of type ‘SIP’ (cause 20 - Subscriber absent)
[Mar 3 16:11:29] WARNING[8310][C-00000001] app_dial.c: Unable to create channel of type ‘IAX2’ (cause 20 - Subscriber absent)
[Mar 3 16:11:29] WARNING[8310][C-00000001] channel.c: No channel type registered for ‘H323’
[Mar 3 16:11:29] WARNING[8310][C-00000001] app_dial.c: Unable to create channel of type ‘H323’ (cause 66 - Channel not implemented)
[Mar 3 16:11:29] WARNING[8310][C-00000001] channel.c: Unable to find a codec translation path: (gsm) → (h264|g729)
[Mar 3 16:11:29] WARNING[8310][C-00000001] file.c: Unable to open vm-theperson (format (h264|g729)): No such file or directory
[Mar 3 16:13:12] WARNING[8319][C-00000004] app_dial.c: Unable to create channel of type ‘SIP’ (cause 20 - Subscriber absent)
[Mar 3 16:13:12] WARNING[8319][C-00000004] app_dial.c: Unable to create channel of type ‘IAX2’ (cause 20 - Subscriber absent)
[Mar 3 16:13:12] WARNING[8319][C-00000004] channel.c: No channel type registered for ‘H323’
[Mar 3 16:13:12] WARNING[8319][C-00000004] app_dial.c: Unable to create channel of type ‘H323’ (cause 66 - Channel not implemented)
[Mar 3 16:13:12] WARNING[8319][C-00000004] channel.c: Unable to find a codec translation path: (gsm) → (h264|g729)
[Mar 3 16:13:12] WARNING[8319][C-00000004] file.c: Unable to open vm-theperson (format (h264|g729)): No such file or directory
[Mar 3 16:13:17] WARNING[8320][C-00000005] app_dial.c: Unable to create channel of type ‘SIP’ (cause 20 - Subscriber absent)
[Mar 3 16:13:17] WARNING[8320][C-00000005] app_dial.c: Unable to create channel of type ‘IAX2’ (cause 20 - Subscriber absent)
[Mar 3 16:13:17] WARNING[8320][C-00000005] channel.c: No channel type registered for ‘H323’
[Mar 3 16:13:17] WARNING[8320][C-00000005] app_dial.c: Unable to create channel of type ‘H323’ (cause 66 - Channel not implemented)
[Mar 3 16:13:17] WARNING[8320][C-00000005] channel.c: Unable to find a codec translation path: (gsm) → (h264|g729)
[Mar 3 16:13:17] WARNING[8320][C-00000005] file.c: Unable to open vm-theperson (format (h264|g729)): No such file or directory
^[[B[Mar 3 16:17:49] WARNING[8326][C-00000006] app_dial.c: Unable to create channel of type ‘SIP’ (cause 20 - Subscriber absent)
[Mar 3 16:17:49] WARNING[8326][C-00000006] app_dial.c: Unable to create channel of type ‘IAX2’ (cause 20 - Subscriber absent)
[Mar 3 16:17:49] WARNING[8326][C-00000006] channel.c: No channel type registered for ‘H323’
[Mar 3 16:17:49] WARNING[8326][C-00000006] app_dial.c: Unable to create channel of type ‘H323’ (cause 66 - Channel not implemented)
[Mar 3 16:17:50] WARNING[8326][C-00000006] channel.c: Unable to find a codec translation path: (gsm) → (h264|g729)
[Mar 3 16:17:50] WARNING[8326][C-00000006] file.c: Unable to open vm-theperson (format (h264|g729)): No such file or directory
[Mar 3 16:17:53] WARNING[8328][C-00000007] app_dial.c: Unable to create channel of type ‘SIP’ (cause 20 - Subscriber absent)
[Mar 3 16:17:53] WARNING[8328][C-00000007] app_dial.c: Unable to create channel of type ‘IAX2’ (cause 20 - Subscriber absent)
[Mar 3 16:17:53] WARNING[8328][C-00000007] channel.c: No channel type registered for ‘H323’
[Mar 3 16:17:53] WARNING[8328][C-00000007] app_dial.c: Unable to create channel of type ‘H323’ (cause 66 - Channel not implemented)
[Mar 3 16:17:53] WARNING[8328][C-00000007] channel.c: Unable to find a codec translation path: (gsm) → (h264|g729)
[Mar 3 16:17:53] WARNING[8328][C-00000007] file.c: Unable to open vm-theperson (format (h264|g729)): No such file or directory

Server-B sip.conf
[trunk_one]
type=peer
context=default
;nat=no
canreinvite=yes
host=172.16.16.21
;insecure=invite
videosupport=yes
disallow=all
allow=g729
allow=h264
;allow=alaw
;allow=h265
;allow=vp8

Server-B users.conf
[6001] ; This will be the legacy SIP client
type=peer
username=6001
host=dynamic
secret=126001
context=default
videosupport=yes
allow=!all,alaw,g729,h263p,h264,vp8

[6002] ; This will be the legacy SIP client
type=peer
username=6002
host=dynamic
secret=126001
context=default
videosupport=yes
allow=!all,alaw,g729,h263p,h264,vp8

Server B log file:
[Mar 3 16:11:29] WARNING[60216][C-00000001] channel.c: No path to translate from SIP/trunk_one-00000001 to SIP/6021-00000000
[Mar 3 16:11:29] WARNING[60216][C-00000001] app_dial.c: Had to drop call because I couldn’t make SIP/6021-00000000 compatible with SIP/trunk_one-00000001
[Mar 3 16:11:38] WARNING[60220][C-00000002] app_dial.c: Unable to create channel of type ‘IAX2’ (cause 20 - Subscriber absent)
[Mar 3 16:11:42] WARNING[60200][C-00000002] channel.c: Unable to find a codec translation path: (alaw|h264) → (g729)
[Mar 3 16:11:42] WARNING[60200][C-00000002] channel.c: Unable to find a codec translation path: (g729) → (alaw|h264)
[Mar 3 16:11:42] WARNING[60220][C-00000002] channel.c: No path to translate from SIP/6021-00000003 to SIP/trunk_one-00000002
[Mar 3 16:11:42] WARNING[60220][C-00000002] app_dial.c: Had to drop call because I couldn’t make SIP/trunk_one-00000002 compatible with SIP/6021-00000003
[Mar 3 16:12:55] WARNING[60227][C-00000003] app_dial.c: Unable to create channel of type ‘IAX2’ (cause 20 - Subscriber absent)
[Mar 3 16:13:00] WARNING[60200][C-00000003] channel.c: Unable to find a codec translation path: (alaw|h264) → (g729)
[Mar 3 16:13:00] WARNING[60200][C-00000003] channel.c: Unable to find a codec translation path: (g729) → (alaw|h264)
[Mar 3 16:13:00] WARNING[60227][C-00000003] channel.c: No path to translate from SIP/6021-00000005 to SIP/trunk_one-00000004
[Mar 3 16:13:00] WARNING[60227][C-00000003] app_dial.c: Had to drop call because I couldn’t make SIP/trunk_one-00000004 compatible with SIP/6021-00000005
[Mar 3 16:13:12] WARNING[60229][C-00000004] channel.c: No path to translate from SIP/trunk_one-00000007 to SIP/6021-00000006
[Mar 3 16:13:12] WARNING[60229][C-00000004] app_dial.c: Had to drop call because I couldn’t make SIP/6021-00000006 compatible with SIP/trunk_one-00000007
[Mar 3 16:13:18] WARNING[60230][C-00000005] channel.c: No path to translate from SIP/trunk_one-00000009 to SIP/6021-00000008
[Mar 3 16:13:18] WARNING[60230][C-00000005] app_dial.c: Had to drop call because I couldn’t make SIP/6021-00000008 compatible with SIP/trunk_one-00000009
[Mar 3 16:17:50] WARNING[60241][C-00000006] channel.c: No path to translate from SIP/trunk_one-0000000b to SIP/6021-0000000a
[Mar 3 16:17:50] WARNING[60241][C-00000006] app_dial.c: Had to drop call because I couldn’t make SIP/6021-0000000a compatible with SIP/trunk_one-0000000b
[Mar 3 16:17:53] WARNING[60243][C-00000007] channel.c: No path to translate from SIP/trunk_one-0000000d to SIP/6021-0000000c
[Mar 3 16:17:53] WARNING[60243][C-00000007] app_dial.c: Had to drop call because I couldn’t make SIP/6021-0000000c compatible with SIP/trunk_one-0000000d

Logs really need to be done at verbosity 3 or higher, so that one can see the dialplan.

One party only supports G.711 A-law for audio and the other only supports G.729 for audio, and you don’t have a G.729 codec module loaded and licensed.

Again, the codec is not both loaded and licensed.

As already noted, G.729 is a strange choice if you are using video. It give reduced audio quality and the video will dominate the bandwidth.

G.711 A-Law is the first choice for 6021, so it will be sending A-law, but you don’t have the G.729 codec loaded and licensed.

As already noted, it is a waste of time to try to get this working on chan_sip, as chan_sip is, essentially, dead.

You haven’t provided us with config files for these, and the channel driver or config file is missing for H323.

It looks to me as though H.264 is the only video codec you should be specifying. Everything on a call must use the same one, and the calling party is using H.264.

The device is either not configured, or has not registered.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.