0

Yeastar S100 - Set Prefix 0 for Caller ID of Incoming Calls - SIP Trunk

Hello

I have a Yeastar S100 and I need to add the Prefix 0 in my incoming calls that come from a SIP trunk. I have seen some tutorials on this topic but are related to the MyPBX version and refer to Trunks BRI / PRI.

My question is if this configuration also has to be done via SSH and edit the file located /etc/asterisk/extensions.conf? If so, the similar configuration that I have in this file relative to the other tutorials that indicate how to do this is as follows:

[macro-inrouter_RO_RouteIN_22224022X]
exten = s,1,Set(CDR(userfield)=Inbound)
exten = s,n,Set(CALLERID(num)=${IF(${LEN(${CALLERID(num)})>0}?${CALLERID(num)}:Unknown)})
exten = s,n,Set(INROUTERNAME=RO_RouteIN_22224022X)
exten = s,n,Set(YSDETECTFAX=no)
exten = s,n,Set(YSARG=${ARG2})
exten = s,n,YsWalkContext(mobile-exten-callingrule,${CALLERID(num)},1,${CALLERID(num)},mobile)
exten = s,n,Gotoif(${YSEXISTCONTEXT}>0?mobile-exten-callingrule,${CALLERID(num)},1)
exten = s,n,Gotoif($[${LEN(${CLIPEXTENSION})}>1]?from-outside,${CLIPEXTENSION},1)
exten = s,n,Goto(did_exten_RO_RouteIN_22224022X_general,${YSARG},1)
exten = h,1,Hangup()

[did_exten_RO_RouteIN_22224022X_general]
exten = 222240220,1,Goto(from-outside,459000,1)
exten = 222240221,1,Goto(from-outside,459001,1)
exten = 222240222,1,Goto(from-outside,459002,1)
exten = 222240223,1,Goto(from-outside,459003,1)
exten = 222240224,1,Goto(from-outside,459004,1)
exten = 222240225,1,Goto(from-outside,459005,1)
exten = 222240226,1,Goto(from-outside,459006,1)
exten = 222240227,1,Goto(from-outside,459007,1)
exten = 222240228,1,Goto(from-outside,459008,1)
exten = 222240229,1,Goto(from-outside,459009,1)
[inrouter_RO_RouteIN_22224022X_feature_dest]

What configuration I need to add and in what position?

 

Regards,

 

 

2 comments

Please sign in to leave a comment.