I know that this topic has been discussed already but i can t find a solution to that.
but i cannot see a video preview in my phones
I am using FreePBX 15 as a SIP server. Both doorphone and GXP phones are registered on the SIP server.
I ve enabled video support on FreepBX.
Granstream support says that
In invite you find link for video. FreePBX remove this line so phone have no idea where get video.
i ve apply the script in extensions_custom.conf and when i dial a a GXPphone from the web interface of gds 36710 i can see the video but if i call the extension of the ringroup where the GXP phones belong to i dont see anything.
I do not understand how you are sending the call to the doorphone context. If your GDS3710 dials to a ring group, you may need to send the call to this context macro-dial-ringall-predial-hook and add the Call-Info there.
Anyway, you should use a context similar to this one:
[from-internal-custom]
exten => 2007/2008,1,Log(NOTICE,GDS3710 is calling to extension ${EXTEN})
same => n,GoSub(func-set-sipheader,s,1(Call-Info,<https://IP_of_GDS3710:443/capture/8001>\;purpose=GDS-view))
2007 at this example is the destination (an extension or a ring group)
2008 is the extension of the GDS3710
I am telling the Asterisk to add the special Call-Info header for the Grandstream devices only when the extension of the GDS3710 will dial to the needed extension (or the ring group).