can there be a dialplan so that I can dial all sip calls to zap and all zap calls to .
how do I identify if an incoming call is a sip call or a zap call???
can there be a dialplan so that I can dial all sip calls to zap and all zap calls to .
how do I identify if an incoming call is a sip call or a zap call???
Put them in different contexts in their respective config files. (zapata.conf and sip.conf) For Example:
In sip.conf set the context to incoming_sip and in zapata.conf set it to incoming_zap. Then you could do something like this non working example.
[code][incoming_sip]
exten => _NXXNXXXXXX,1,Dial(ZAP/…)
[incoming_zap]
exten => _NXXNXXXXXX,1,Dial(SIP/…)[/code]