Hi, I have a question again.
When I use opvx-bristuff-0.4.0-RC3h,I can use G400P as a PSTN gateway described below:
add a user in /etc/asterisk/sip.conf
[bluemonster] //用户名
type=friend
secret=101 //密码
qualify=yes
nat=yes
host=dynamic
canreinvite=no
context=from-internal
add a context in /etc/asterisk/extensions.conf
[from-internal]
exten => _6. ,1,Dial(zap/1/${EXTEN},40)
exten => _6. ,2,Hangup
Then, if I call a cell phone number like 61592622xxxx through Linphone , the SIM card on G400P will call 1592622xxxx and bridge Linphone and the cell phone.
Now I have switched to chan_extra_1.1.0 ,and I just found the trick above doesn't work.
Asterisk CLI gave the following info:
=====================================================
[Jun 20 10:38:56] WARNING[32658]: channel.c:4232 ast_request: No channel type registered for 'zap'
[Jun 20 10:38:56] WARNING[32658]: app_dial.c:1747 dial_exec_full: Unable to create channel of type 'zap' (cause 66 - Channel not implemented)
=====================================================
How to register a zap channel in chan_extra?
A student from Huazhong University of Science and Technology
Hi,
[from-internal]
exten => _X.,1,Dial(extra/1/${EXTEN}) // dial what the number you want, and the call will be routed from channel 1 to the outside.
exten => _X.,2,Hangup
Hi,[from-internal]exten => _X.,1,Dial(extra/1/${EXTEN}) // dial what the number you want, and the call will be routed from channel 1 to the outside.exten => _X.,2,Hangup
Yes! It works.
A student from Huazhong University of Science and Technology